run gcp auth serially after all the other tests to avoid collision with CSI test
parent
88c62ad469
commit
ea77a19074
|
|
@ -121,7 +121,6 @@ func TestAddons(t *testing.T) {
|
|||
{"HelmTiller", validateHelmTillerAddon},
|
||||
{"Olm", validateOlmAddon},
|
||||
{"CSI", validateCSIDriverAndSnapshots},
|
||||
{"GCPAuth", validateGCPAuthAddon},
|
||||
}
|
||||
for _, tc := range tests {
|
||||
tc := tc
|
||||
|
|
@ -135,6 +134,25 @@ func TestAddons(t *testing.T) {
|
|||
}
|
||||
})
|
||||
|
||||
// Run other tests after to avoid collision
|
||||
t.Run("serial", func(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
validator validateFunc
|
||||
}{
|
||||
{"GCPAuth", validateGCPAuthAddon},
|
||||
}
|
||||
for _, tc := range tests {
|
||||
tc := tc
|
||||
if ctx.Err() == context.DeadlineExceeded {
|
||||
t.Fatalf("Unable to run more tests (deadline exceeded)")
|
||||
}
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
tc.validator(ctx, t, profile)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
t.Run("StoppedEnableDisable", func(t *testing.T) {
|
||||
// Assert that disable/enable works offline
|
||||
rr, err := Run(t, exec.CommandContext(ctx, Target(), "stop", "-p", profile))
|
||||
|
|
|
|||
Loading…
Reference in New Issue