Skip to content

Commit

Permalink
Fix message
Browse files Browse the repository at this point in the history
  • Loading branch information
maruina committed Jun 10, 2021
1 parent 40b7b44 commit 41699f9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions controllers/progressivesync_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ var _ = Describe("ProgressiveRollout Controller", func() {
ExpectStageStatus(ctx, prKey, "stage 0").Should(MatchStage(syncv1alpha1.StageStatus{
Name: "stage 0",
Phase: syncv1alpha1.PhaseProgressing,
Message: "stage 0 stage in progress",
Message: "stage in progress",
}))
ExpectStagesInStatus(ctx, prKey).Should(Equal(1))

Expand All @@ -350,7 +350,7 @@ var _ = Describe("ProgressiveRollout Controller", func() {
ExpectStageStatus(ctx, prKey, "stage 0").Should(MatchStage(syncv1alpha1.StageStatus{
Name: "stage 0",
Phase: syncv1alpha1.PhaseSucceeded,
Message: "stage 0 stage completed",
Message: "stage completed",
}))

By("progressing in second application")
Expand Down Expand Up @@ -475,7 +475,7 @@ var _ = Describe("ProgressiveRollout Controller", func() {
ExpectStageStatus(ctx, prKey, "stage 0").Should(MatchStage(syncv1alpha1.StageStatus{
Name: "stage 0",
Phase: syncv1alpha1.PhaseProgressing,
Message: "stage 0 stage in progress",
Message: "stage in progress",
}))
ExpectStagesInStatus(ctx, prKey).Should(Equal(1))

Expand All @@ -492,7 +492,7 @@ var _ = Describe("ProgressiveRollout Controller", func() {
ExpectStageStatus(ctx, prKey, "stage 0").Should(MatchStage(syncv1alpha1.StageStatus{
Name: "stage 0",
Phase: syncv1alpha1.PhaseFailed,
Message: "stage 0 stage failed",
Message: "stage failed",
}))

createdPR := syncv1alpha1.ProgressiveSync{}
Expand All @@ -502,7 +502,7 @@ var _ = Describe("ProgressiveRollout Controller", func() {
}).Should(Equal(1))
Expect(createdPR.ObjectMeta.Finalizers[0]).To(Equal(syncv1alpha1.ProgressiveSyncFinalizer))

expected := failedStagePR.NewStatusCondition(syncv1alpha1.CompletedCondition, metav1.ConditionTrue, syncv1alpha1.StagesFailedReason, "stage 0 stage failed")
expected := failedStagePR.NewStatusCondition(syncv1alpha1.CompletedCondition, metav1.ConditionTrue, syncv1alpha1.StagesFailedReason, "stage failed")
ExpectCondition(&failedStagePR, expected.Type).Should(HaveStatus(expected.Status, expected.Reason, expected.Message))

deletedPR := syncv1alpha1.ProgressiveSync{}
Expand Down

0 comments on commit 41699f9

Please sign in to comment.