e2e: testing reliability (#7701)
* pin CSI plugin versions * ensure failing CSI tests clean up * allow NOMAD_SHA env var to override makefile
This commit is contained in:
parent
e6551455b9
commit
ab3086a1f4
|
@ -92,6 +92,7 @@ func (tc *CSIVolumesTest) TestEBSVolumeClaim(f *framework.F) {
|
|||
writeAllocs := e2eutil.RegisterAndWaitForAllocs(t, nomadClient,
|
||||
"csi/input/use-ebs-volume.nomad", writeJobID, "")
|
||||
writeAllocID := writeAllocs[0].ID
|
||||
tc.testJobIDs = append(tc.testJobIDs, writeJobID) // ensure failed tests clean up
|
||||
e2eutil.WaitForAllocRunning(t, nomadClient, writeAllocID)
|
||||
|
||||
// read data from volume and assert the writer wrote a file to it
|
||||
|
@ -177,6 +178,7 @@ func (tc *CSIVolumesTest) TestEFSVolumeClaim(f *framework.F) {
|
|||
writeAllocs := e2eutil.RegisterAndWaitForAllocs(t, nomadClient,
|
||||
"csi/input/use-efs-volume-write.nomad", writeJobID, "")
|
||||
writeAllocID := writeAllocs[0].ID
|
||||
tc.testJobIDs = append(tc.testJobIDs, writeJobID) // ensure failed tests clean up
|
||||
e2eutil.WaitForAllocRunning(t, nomadClient, writeAllocID)
|
||||
|
||||
// read data from volume and assert the writer wrote a file to it
|
||||
|
|
|
@ -15,7 +15,7 @@ job "plugin-aws-ebs-controller" {
|
|||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "amazon/aws-ebs-csi-driver:latest"
|
||||
image = "amazon/aws-ebs-csi-driver:v0.5.0"
|
||||
|
||||
args = [
|
||||
"controller",
|
||||
|
|
|
@ -19,7 +19,7 @@ job "plugin-aws-ebs-nodes" {
|
|||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "amazon/aws-ebs-csi-driver:latest"
|
||||
image = "amazon/aws-ebs-csi-driver:v0.5.0"
|
||||
|
||||
args = [
|
||||
"node",
|
||||
|
|
|
@ -19,7 +19,7 @@ job "plugin-aws-efs-nodes" {
|
|||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "amazon/aws-efs-csi-driver:latest"
|
||||
image = "amazon/aws-efs-csi-driver:v0.3.0"
|
||||
|
||||
# note: the EFS driver doesn't seem to respect the --endpoint
|
||||
# flag and always sets up the listener at '/tmp/csi.sock'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
NOMAD_SHA := $(shell git rev-parse HEAD)
|
||||
NOMAD_SHA ?= $(shell git rev-parse HEAD)
|
||||
|
||||
dev-cluster:
|
||||
terraform apply -auto-approve -var-file=terraform.tfvars.dev
|
||||
|
|
Loading…
Reference in a new issue