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

@@ -42,7 +42,7 @@ var _ = Describe("Monitoring", func() {
})
It("verify monitoring pods and all cluster nodes are available on influxdb using heapster.", func() {
if testContext.Provider != "gce" {
if !providerIs("gce") {
By(fmt.Sprintf("Skipping Monitoring test, which is only supported for provider gce (not %s)",
testContext.Provider))
return