Skip to content

Commit

Permalink
Deduplicate tests from previous merge
Browse files Browse the repository at this point in the history
Co-authored-by: Greg Weresch <greg.weresch@broadcom.com>
  • Loading branch information
pivotalgeorge and weresch committed Aug 12, 2024
1 parent f0585b1 commit 6b58f13
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions command/v7/shared/app_summary_displayer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -817,45 +817,7 @@ var _ = Describe("app summary displayer", func() {
Expect(actualOut).To(MatchRegexp(`Canary deployment currently CANCELING \(since %s\)`, dateTimeRegexPattern))
Expect(testUI.Out).NotTo(Say(`promote the canary deployment`))
})
})
})
When("the deployment strategy is canary", func() {
When("the deployment is paused", func() {
BeforeEach(func() {
summary = v7action.DetailedApplicationSummary{
ApplicationSummary: v7action.ApplicationSummary{
Application: resources.Application{
Name: "some-app",
},
},
Deployment: resources.Deployment{
Strategy: constant.DeploymentStrategyCanary,
StatusValue: constant.DeploymentStatusValueActive,
StatusReason: constant.DeploymentStatusReasonPaused,
},
}
})

It("displays the message", func() {
Expect(testUI.Out).To(Say("Canary deployment currently PAUSED."))
Expect(testUI.Out).To(Say("Please run `cf continue-deployment some-app` to promote the canary deployment, or `cf cancel-deployment some-app` to rollback to the previous version."))
})
})

When("the deployment is cancelled", func() {
BeforeEach(func() {
summary = v7action.DetailedApplicationSummary{
Deployment: resources.Deployment{
Strategy: constant.DeploymentStrategyCanary,
StatusValue: constant.DeploymentStatusValueActive,
StatusReason: constant.DeploymentStatusReasonCanceling,
},
}
})

It("displays the message", func() {
Expect(testUI.Out).To(Say("Canary deployment currently CANCELING."))
})
})
})
})
Expand Down

0 comments on commit 6b58f13

Please sign in to comment.