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

@@ -97,11 +97,12 @@ var _ = Describe("kubectl", func() {
Describe("guestbook", func() {
var guestbookPath = filepath.Join(testContext.RepoRoot, "examples/guestbook")
if testContext.Provider != "gce" && testContext.Provider != "gke" {
By(fmt.Sprintf("Skipping guestbook, uses createExternalLoadBalancer, a (gce|gke) feature"))
}
It("should create and stop a working application", func() {
if !providerIs("gce", "gke") {
By(fmt.Sprintf("Skipping guestbook, uses createExternalLoadBalancer, a (gce|gke) feature"))
return
}
defer cleanup(guestbookPath, frontendSelector, redisMasterSelector, redisSlaveSelector)
By("creating all guestbook components")