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:
Tim Gross 2020-04-13 10:25:24 -04:00 committed by GitHub
parent e6551455b9
commit ab3086a1f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 4 deletions

View file

@ -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

View file

@ -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",

View file

@ -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",

View file

@ -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'

View file

@ -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