Skip to content

Commit

Permalink
Updated target in acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisjbell committed Jul 19, 2023
1 parent 2d11b57 commit 3c36e18
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions acceptance/call_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,18 @@ var _ = Describe("Scheduler Calls", func() {

Describe("create-call", func() {
It("test correct call creation", func() {
Expect(cf.Cf("create-call", appName, callName, `https://www.starkandwayne.com/`).
Expect(cf.Cf("create-call", appName, callName, `https://fivetwenty.io/`).
Wait(time.Second * 10)).To(Exit(0))

Expect(cf.Cf("calls").
Wait(time.Second * 1).Out.Contents()).
Should(ContainSubstring(callName))
})
})

Describe("schedule-call", func() {
It("test correct call scheduling", func() {
Expect(cf.Cf("create-call", appName, callName, `https://www.starkandwayne.com/`).
Expect(cf.Cf("create-call", appName, callName, `https://fivetwenty.io/`).
Wait(time.Second * 10)).To(Exit(0))

Expect(cf.Cf("schedule-call", callName, `15 * * * *`).
Expand All @@ -49,7 +53,7 @@ var _ = Describe("Scheduler Calls", func() {

Describe("run-call", func() {
It("test correct call manual execution", func() {
Expect(cf.Cf("create-call", appName, callName, `https://www.starkandwayne.com/`).
Expect(cf.Cf("create-call", appName, callName, `https://fivetwenty.io/`).
Wait(time.Second * 10)).To(Exit(0))

Expect(cf.Cf("run-call", callName).
Expand All @@ -60,7 +64,7 @@ var _ = Describe("Scheduler Calls", func() {

Describe("delete-call", func() {
It("test correct call deletion", func() {
Expect(cf.Cf("create-call", appName, callName, `https://www.starkandwayne.com/`).
Expect(cf.Cf("create-call", appName, callName, `https://fivetwenty.io/`).
Wait(time.Second * 10)).To(Exit(0))

Expect(cf.Cf("delete-call", callName).
Expand All @@ -78,7 +82,7 @@ var _ = Describe("Scheduler Calls", func() {

Describe("delete-call-schedule", func() {
It("test correct call schedule deletion", func() {
Expect(cf.Cf("create-call", appName, callName, `https://www.starkandwayne.com/`).
Expect(cf.Cf("create-call", appName, callName, `https://fivetwenty.io/`).
Wait(time.Second * 10)).To(Exit(0))

Expect(cf.Cf("schedule-call", callName, `15 * * * *`).
Expand Down

0 comments on commit 3c36e18

Please sign in to comment.