Skip to content

Commit

Permalink
Bump stack version in zero downtime test
Browse files Browse the repository at this point in the history
We're skipping non-default stack test because we believe we only have
one stack.

[#165733811](https://www.pivotaltracker.com/story/show/165733811)

Co-authored-by: Will Murphy <wmurphy@pivotal.io>
  • Loading branch information
bwasmith and willmurphyscode committed May 1, 2019
1 parent df55043 commit 5de0f0d
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions integration/v6/experimental/v3_zdt_push_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,27 +509,21 @@ var _ = Describe("v3-zdt-push command", func() {
It("uses the specified stack", func() {
var session *Session
helpers.WithHelloWorldApp(func(appDir string) {
session = helpers.CustomCF(helpers.CFEnv{WorkingDirectory: appDir}, "v3-zdt-push", appName, "-s", "cflinuxfs2")
session = helpers.CustomCF(helpers.CFEnv{WorkingDirectory: appDir}, "v3-zdt-push", appName, "-s", "cflinuxfs3")
Eventually(session).Should(Exit(0))
})
Eventually(session).Should(Say(`name:\s+%s`, appName))
Eventually(session).Should(Say(`requested state:\s+started`))
Eventually(session).Should(Say(`routes:\s+%s\.%s`, appName, domainName))
Eventually(session).Should(Say(`stack:\s+cflinuxfs2`))
Eventually(session).Should(Say(`stack:\s+cflinuxfs3`))
})
})

When("a non-default stack is specified", func() {
It("uses the specified stack", func() {
var session *Session
helpers.WithHelloWorldApp(func(appDir string) {
session = helpers.CustomCF(helpers.CFEnv{WorkingDirectory: appDir}, "v3-zdt-push", appName, "-s", "cflinuxfs2")
Eventually(session).Should(Exit(0))
})
Eventually(session).Should(Say(`name:\s+%s`, appName))
Eventually(session).Should(Say(`requested state:\s+started`))
Eventually(session).Should(Say(`routes:\s+%s\.%s`, appName, domainName))
Eventually(session).Should(Say(`stack:\s+cflinuxfs2`))

Skip("we have only one stack")

})
})

Expand All @@ -539,7 +533,7 @@ var _ = Describe("v3-zdt-push command", func() {
It("creates the app with the specified stack and buildpack", func() {
var session *Session
helpers.WithHelloWorldApp(func(appDir string) {
session = helpers.CustomCF(helpers.CFEnv{WorkingDirectory: appDir}, "v3-zdt-push", appName, "-b", "https://github.com/cloudfoundry/staticfile-buildpack", "-s", "cflinuxfs2")
session = helpers.CustomCF(helpers.CFEnv{WorkingDirectory: appDir}, "v3-zdt-push", appName, "-b", "https://github.com/cloudfoundry/staticfile-buildpack", "-s", "cflinuxfs3")
Eventually(session).Should(Exit(0))
})
// TODO: assert specific error text when it is written
Expand Down

0 comments on commit 5de0f0d

Please sign in to comment.