Allow disabling waiting for a service account in e2e tests

This commit is contained in:
gmarek
2015-09-15 12:22:12 -04:00
parent 0902f80f8b
commit 96a90f45c3
4 changed files with 14 additions and 5 deletions

View File

@@ -67,9 +67,13 @@ func (f *Framework) beforeEach() {
f.Namespace = namespace
By("Waiting for a default service account to be provisioned in namespace")
err = waitForDefaultServiceAccountInNamespace(c, namespace.Name)
Expect(err).NotTo(HaveOccurred())
if testContext.VerifyServiceAccount {
By("Waiting for a default service account to be provisioned in namespace")
err = waitForDefaultServiceAccountInNamespace(c, namespace.Name)
Expect(err).NotTo(HaveOccurred())
} else {
Logf("Skipping waiting for service account")
}
}
// afterEach deletes the namespace, after reading its events.