Skip to content

Commit af8c745

Browse files
committed
Fixes for canary integration tests
1 parent 1272d35 commit af8c745

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

integration/v7/isolated/app_command_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ applications:
285285
session1 := helpers.CF("app", appName)
286286
Eventually(session1).Should(Say("Active deployment with status PAUSED"))
287287
Eventually(session1).Should(Say("strategy: canary"))
288-
Expect(session1).To(Say("canary-steps: 0/1"))
288+
Expect(session1).To(Say("canary-steps: 1/1"))
289289
Eventually(session1).Should(Exit(0))
290290
})
291291
})

integration/v7/isolated/copy_source_command_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ var _ = Describe("copy-source command", func() {
391391
Eventually(session).Should(Say("Active deployment with status PAUSED"))
392392
Eventually(session).Should(Say("strategy: canary"))
393393
Eventually(session).Should(Say("max-in-flight: 1"))
394-
Eventually(session).Should(Say("canary-steps: 1/2"))
394+
Eventually(session).Should(Say("canary-steps: 1/2"))
395395
Eventually(session).Should(Say("Please run `cf continue-deployment %s` to promote the canary deployment, or `cf cancel-deployment %s` to rollback to the previous version.", targetAppName, targetAppName))
396396
Eventually(session).Should(Exit(0))
397397

integration/v7/isolated/restage_command_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,10 @@ applications:
247247
})
248248
})
249249

250-
When("strategy canary is given with a non-default max-in-flight value and instance-weights", func() {
250+
When("strategy canary is given with a non-default max-in-flight value and instance-steps", func() {
251251
It("restages successfully and notes the max-in-flight value", func() {
252252
userName, _ := helpers.GetCredentials()
253-
session := helpers.CF("restage", appName, "--strategy", "canary", "--max-in-flight", "2", "--instance-weights", "1,20")
253+
session := helpers.CF("restage", appName, "--strategy", "canary", "--max-in-flight", "2", "--instance-steps", "1,20")
254254
Consistently(session.Err).ShouldNot(Say(`This action will cause app downtime\.`))
255255
Eventually(session).Should(Say(`Restaging app %s in org %s / space %s as %s\.\.\.`, appName, orgName, spaceName, userName))
256256
Eventually(session).Should(Say(`Creating deployment for app %s\.\.\.`, appName))

0 commit comments

Comments
 (0)