-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Radim Hrazdil <[email protected]>
- Loading branch information
Radim Hrazdil
committed
Mar 23, 2021
1 parent
ab9bc36
commit 4c4d12c
Showing
3 changed files
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -195,7 +195,7 @@ var _ = Describe("[rfe_id:3503][crit:medium][vendor:[email protected]][level:com | |
wg.Wait() | ||
}) | ||
|
||
It("[test_id:3795] should have one Failing the rest Aborted ConditionType set to true", func() { | ||
It("[test_id:3795] should have up to maxUnavailable Failing and the rest Aborted ConditionType set to true", func() { | ||
checkEnactmentCounts := func(policy string) { | ||
failingConditions := 0 | ||
abortedConditions := 0 | ||
|
@@ -210,8 +210,8 @@ var _ = Describe("[rfe_id:3503][crit:medium][vendor:[email protected]][level:com | |
abortedConditions++ | ||
} | ||
} | ||
Expect(failingConditions).To(Equal(1), "one node only should have failing enactment") | ||
Expect(abortedConditions).To(Equal(len(nodes)-1), "other nodes should have aborted enactment") | ||
Expect(failingConditions).To(BeNumerically("<=", maxUnavailableNodeCount()), "one node only should have failing enactment") | ||
Expect(abortedConditions).To(Equal(len(nodes)-failingConditions), "other nodes should have aborted enactment") | ||
} | ||
|
||
By("Check policy is at degraded state") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters