Skip to content

Commit

Permalink
chore: add test cases for Rollout timeout when paused or aborted
Browse files Browse the repository at this point in the history
Signed-off-by: Li Wang <[email protected]>
  • Loading branch information
wangli1030 committed Aug 28, 2024
1 parent e60c150 commit 648aa25
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions utils/conditions/rollouts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,22 @@ func TestRolloutTimedOut(t *testing.T) {
},
expected: true,
},
{
name: "Rollout has not time out when paused",
progressDeadlineSeconds: 5,
newStatus: v1alpha1.RolloutStatus{
Conditions: conditions(RolloutPausedReason, before),
},
expected: false,
},
{
name: "Rollout has not time out when aborted",
progressDeadlineSeconds: 5,
newStatus: v1alpha1.RolloutStatus{
Conditions: conditions(RolloutAbortedReason, before),
},
expected: false,
},
}
for i := range tests {
test := tests[i]
Expand Down

0 comments on commit 648aa25

Please sign in to comment.