-
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.
Test nns update timestamp currentState dependecy (#711)
The network configuration at nodes is chaning sometimes without human intervention (at kubevirtci some ipv6 routes disappear sometimes or appear sometimes). This change do a best effort and checks nns update timestamp according to currentState changed or not. Signed-off-by: Quique Llorente <[email protected]>
- Loading branch information
Showing
3 changed files
with
81 additions
and
42 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
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 |
---|---|---|
|
@@ -27,28 +27,19 @@ var _ = Describe("[rfe_id:3503][crit:medium][vendor:[email protected]][level:com | |
}) | ||
}) | ||
Context("and new interface is configured", func() { | ||
var ( | ||
expectedDummyName = "dummy0" | ||
) | ||
expectedDummyName := "dummy0" | ||
|
||
BeforeEach(func() { | ||
createDummyAtNodes(expectedDummyName) | ||
createDummyConnectionAtNodes(expectedDummyName) | ||
}) | ||
AfterEach(func() { | ||
deleteConnectionAtNodes(expectedDummyName) | ||
By("Make sure the dummy interface gets deleted") | ||
for _, node := range nodes { | ||
for _, iface := range interfacesNameForNode(node) { | ||
if iface == expectedDummyName { | ||
deleteDeviceAtNode(node, expectedDummyName) | ||
} | ||
} | ||
} | ||
deleteConnectionAndWait(nodes, expectedDummyName) | ||
}) | ||
It("[test_id:3794]should update node network state with it", func() { | ||
for _, nodeName := range nodes { | ||
Eventually(func() []string { | ||
return interfacesNameForNode(nodeName) | ||
}, node.NetworkStateRefresh, time.Second).Should(ContainElement(expectedDummyName)) | ||
}, 2*node.NetworkStateRefresh, time.Second).Should(ContainElement(expectedDummyName)) | ||
} | ||
}) | ||
}) | ||
|
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