Ensure that e2e tests run on gce|gke and are appropriately

skipped for other cloud providers.
This commit is contained in:
Robert Bailey
2015-04-18 15:30:10 -07:00
parent b37328a551
commit feb7abcada
9 changed files with 31 additions and 22 deletions

View File

@@ -32,7 +32,7 @@ var _ = Describe("MasterCerts", func() {
})
It("should have all expected certs on the master", func() {
if testContext.Provider != "gce" && testContext.Provider != "gke" {
if !providerIs("gce", "gke") {
By(fmt.Sprintf("Skipping MasterCerts test for cloud provider %s (only supported for gce and gke)", testContext.Provider))
return
}