-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: implement node network disconnection
Signed-off-by: Yang Chiu <yang.chiu@suse.com>
- Loading branch information
Showing
12 changed files
with
115 additions
and
56 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
*** Settings *** | ||
Documentation Common keywords | ||
Library ../libs/keywords/network_keywords.py | ||
Library ../libs/keywords/workload_keywords.py | ||
Library ../libs/keywords/volume_keywords.py | ||
|
||
*** Variables *** | ||
|
||
|
||
*** Keywords *** | ||
Disconnect volume node network of statefulset ${statefulset_id} for ${duration} seconds | ||
${workload_name} = generate_name_with_suffix statefulset ${statefulset_id} | ||
${volume_name} = get_workload_volume_name ${workload_name} | ||
${node_name} = get_volume_node ${volume_name} | ||
disconnect_node_network ${node_name} ${duration} |
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
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
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
*** Settings *** | ||
Documentation Negative Test Cases | ||
Resource ../keywords/volume.resource | ||
Resource ../keywords/statefulset.resource | ||
Resource ../keywords/workload.resource | ||
Resource ../keywords/common.resource | ||
Resource ../keywords/network.resource | ||
|
||
Test Setup Set test environment | ||
Test Teardown Cleanup test resources | ||
|
||
*** Variables *** | ||
${LOOP_COUNT} 1 | ||
${LATENCY_IN_MS} 0 | ||
${RETRY_COUNT} 300 | ||
${RETRY_INTERVAL} 1 | ||
|
||
*** Test Cases *** | ||
Disconnect Volume Node Network While Workload Heavy Writing | ||
Given Create statefulset 0 using RWO volume | ||
FOR ${i} IN RANGE ${LOOP_COUNT} | ||
And Keep writing data to pod of statefulset 0 | ||
When Disconnect volume node network of statefulset 0 for 10 seconds | ||
And Wait for volume of statefulset 0 healthy | ||
And Wait for statefulset 0 pods stable | ||
Then Check statefulset 0 works | ||
END | ||
|
||
Disconnect Volume Node Network For More Than Pod Eviction Timeout While Workload Heavy Writing | ||
Given Create statefulset 0 using RWO volume | ||
FOR ${i} IN RANGE ${LOOP_COUNT} | ||
And Keep writing data to pod of statefulset 0 | ||
When Disconnect volume node network of statefulset 0 for 360 seconds | ||
And Wait for volume of statefulset 0 healthy | ||
And Wait for statefulset 0 pods stable | ||
Then Check statefulset 0 works | ||
END |