Skip to content

Commit

Permalink
sync up with master
Browse files Browse the repository at this point in the history
  • Loading branch information
Onsi Fakhouri committed May 7, 2014
1 parent 639d7f0 commit 0630bd6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions diego/lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
. "github.com/onsi/gomega/gbytes"
. "github.com/onsi/gomega/gexec"

. "github.com/cloudfoundry-incubator/cf-test-helpers/cf"
. "github.com/cloudfoundry-incubator/cf-test-helpers/generator"
. "github.com/cloudfoundry/cf-acceptance-tests/helpers"
. "github.com/pivotal-cf-experimental/cf-test-helpers/cf"
. "github.com/pivotal-cf-experimental/cf-test-helpers/generator"
)

var _ = Describe("Application staging with Diego", func() {
Expand All @@ -29,7 +29,7 @@ var _ = Describe("Application staging with Diego", func() {

Describe("pushing", func() {
It("makes the app reachable via its bound route", func() {
Eventually(CurlFetcher(appName, "/", LoadConfig().AppsDomain), DefaultTimeout).Should(ContainSubstring("Hi, I'm Dora!"))
Expect(CurlAppRoot(appName)).To(ContainSubstring("Hi, I'm Dora!"))
})
})

Expand All @@ -39,7 +39,7 @@ var _ = Describe("Application staging with Diego", func() {
})

It("makes the app unreachable", func() {
Eventually(CurlFetcher(appName, "/", LoadConfig().AppsDomain), DefaultTimeout).Should(ContainSubstring("404"))
Expect(CurlAppRoot(appName)).To(ContainSubstring("404"))
})

Describe("and then starting", func() {
Expand All @@ -48,18 +48,18 @@ var _ = Describe("Application staging with Diego", func() {
})

It("makes the app reachable again", func() {
Eventually(CurlFetcher(appName, "/", LoadConfig().AppsDomain), DefaultTimeout).Should(ContainSubstring("Hi, I'm Dora!"))
Expect(CurlAppRoot(appName)).To(ContainSubstring("Hi, I'm Dora!"))
})
})
})

Describe("updating", func() {
It("is reflected through another push", func() {
Eventually(CurlFetcher(appName, "/", LoadConfig().AppsDomain), DefaultTimeout).Should(ContainSubstring("Hi, I'm Dora!"))
Expect(CurlAppRoot(appName)).To(ContainSubstring("Hi, I'm Dora!"))

Eventually(Cf("push", appName, "-p", NewAssets().HelloWorld), CFPushTimeout).Should(Exit(0))

Eventually(CurlFetcher(appName, "/", LoadConfig().AppsDomain), DefaultTimeout).Should(ContainSubstring("Hello, world!"))
Expect(CurlAppRoot(appName)).To(ContainSubstring("Hello, world!"))
})
})

Expand All @@ -70,7 +70,7 @@ var _ = Describe("Application staging with Diego", func() {

It("removes the application and makes the app unreachable", func() {
Eventually(Cf("app", appName), DefaultTimeout).Should(Say("not found"))
Eventually(CurlFetcher(appName, "/", LoadConfig().AppsDomain), DefaultTimeout).Should(ContainSubstring("404"))
Expect(CurlAppRoot(appName)).To(ContainSubstring("404"))
})
})
})
4 changes: 2 additions & 2 deletions diego/staging_failure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
. "github.com/onsi/gomega"
. "github.com/onsi/gomega/gexec"

. "github.com/cloudfoundry-incubator/cf-test-helpers/cf"
. "github.com/cloudfoundry-incubator/cf-test-helpers/generator"
. "github.com/cloudfoundry/cf-acceptance-tests/helpers"
. "github.com/pivotal-cf-experimental/cf-test-helpers/cf"
. "github.com/pivotal-cf-experimental/cf-test-helpers/generator"
)

var _ = Describe("When staging fails", func() {
Expand Down
4 changes: 2 additions & 2 deletions diego/staging_log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
. "github.com/onsi/gomega/gbytes"
. "github.com/onsi/gomega/gexec"

. "github.com/cloudfoundry-incubator/cf-test-helpers/cf"
. "github.com/cloudfoundry-incubator/cf-test-helpers/generator"
. "github.com/cloudfoundry/cf-acceptance-tests/helpers"
. "github.com/pivotal-cf-experimental/cf-test-helpers/cf"
. "github.com/pivotal-cf-experimental/cf-test-helpers/generator"
)

var _ = Describe("An application being staged with Diego", func() {
Expand Down

0 comments on commit 0630bd6

Please sign in to comment.