-
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.
Now when a failing NNCP is applied, we accept NNCEs in two states: aborted and failed. Signed-off-by: Radim Hrazdil <[email protected]>
- Loading branch information
Radim Hrazdil
committed
Mar 25, 2021
1 parent
bffe21e
commit 4e4f9c9
Showing
3 changed files
with
11 additions
and
18 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("<=", maxUnavailableNodes()), "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