-
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.
refactor(negative): reorganize stress cpu/mem cases
Signed-off-by: Chin-Ya Huang <[email protected]>
- Loading branch information
Showing
4 changed files
with
56 additions
and
26 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
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,27 @@ | ||
*** Settings *** | ||
Documentation Negative Test Cases | ||
Resource ../keywords/node.resource | ||
Resource ../keywords/volume.resource | ||
Resource ../keywords/common.resource | ||
|
||
Test Setup Set test environment | ||
Test Teardown Cleanup test resources | ||
|
||
*** Variables *** | ||
${LOOP_COUNT} 1 | ||
${RETRY_COUNT} 300 | ||
${RETRY_INTERVAL} 1 | ||
|
||
*** Test Cases *** | ||
|
||
Stress Volume Node CPU When Replica Is Rebuilding | ||
Given Create a volume with 5 GB and 3 replicas | ||
And Write data to the volume | ||
|
||
FOR ${i} IN RANGE ${LOOP_COUNT} | ||
When Delete replica on volume node to trigger replica rebuilding | ||
And Stress volume node cpu | ||
|
||
Then Wait until replica on volume node rebuilt | ||
And Check data is intact | ||
END |
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,27 @@ | ||
*** Settings *** | ||
Documentation Negative Test Cases | ||
Resource ../keywords/node.resource | ||
Resource ../keywords/volume.resource | ||
Resource ../keywords/common.resource | ||
|
||
Test Setup Set test environment | ||
Test Teardown Cleanup test resources | ||
|
||
*** Variables *** | ||
${LOOP_COUNT} 1 | ||
${RETRY_COUNT} 300 | ||
${RETRY_INTERVAL} 1 | ||
|
||
*** Test Cases *** | ||
|
||
Stress Volume Node Memory When Replica Is Rebuilding | ||
Given Create a volume with 5 GB and 3 replicas | ||
And Write data to the volume | ||
|
||
FOR ${i} IN RANGE ${LOOP_COUNT} | ||
When Delete replica on volume node to trigger replica rebuilding | ||
And Stress volume node memory | ||
|
||
Then Wait until replica on volume node rebuilt | ||
And Check data is intact | ||
END |