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

@@ -57,7 +57,7 @@ var _ = Describe("PD", func() {
})
It("should schedule a pod w/ a RW PD, remove it, then schedule it on another host", func() {
if testContext.Provider != "gce" && testContext.Provider != "aws" {
if !providerIs("gce", "aws") {
By(fmt.Sprintf("Skipping PD test, which is only supported for providers gce & aws (not %s)",
testContext.Provider))
return