-
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(negative): add fs stress operations
Signed-off-by: Yang Chiu <yang.chiu@suse.com>
- Loading branch information
Showing
10 changed files
with
150 additions
and
10 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
*** Settings *** | ||
Documentation Negative Test Cases | ||
Resource ../keywords/common.resource | ||
Resource ../keywords/persistentvolumeclaim.resource | ||
Resource ../keywords/statefulset.resource | ||
Resource ../keywords/stress.resource | ||
Resource ../keywords/volume.resource | ||
Resource ../keywords/workload.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 Filesystem When Replica Is Rebuilding | ||
Given Create volume 0 with 5 GB and 3 replicas | ||
And Attach volume 0 | ||
And Write data to volume 0 | ||
And Stress filesystem of volume 0 volume node | ||
|
||
FOR ${i} IN RANGE ${LOOP_COUNT} | ||
When Delete volume 0 replica on volume node | ||
And Wait until volume 0 replica rebuilding started on volume node | ||
|
||
Then Wait until volume 0 replica rebuilding completed on volume node | ||
And Check volume 0 data is intact | ||
END | ||
|
||
Stress Volume Node Filesystem When Volume Is Detaching and Attaching | ||
Given Create volume 0 with 5 GB and 3 replicas | ||
And Attach volume 0 | ||
And Write data to volume 0 | ||
And Stress filesystem of volume 0 volume node | ||
|
||
FOR ${i} IN RANGE ${LOOP_COUNT} | ||
And Detach volume 0 | ||
And Attach volume 0 | ||
And Wait for volume 0 healthy | ||
And Check volume 0 data is intact | ||
END | ||
|
||
Stress Volume Node Filesystem When Volume Is Online Expanding | ||
Given Create statefulset 0 using RWO volume | ||
And Write 1024 MB data to file data.txt in statefulset 0 | ||
And Stress filesystem of statefulset 0 volume node | ||
|
||
FOR ${i} IN RANGE ${LOOP_COUNT} | ||
When Expand statefulset 0 volume by 100 MiB | ||
Then Wait for statefulset 0 volume size expanded | ||
|
||
And Check statefulset 0 data in file data.txt is intact | ||
END | ||
|
||
Stress Volume Node Filesystem When Volume Is Offline Expanding | ||
Given Create statefulset 0 using RWO volume | ||
And Write 1024 MB data to file data.txt in statefulset 0 | ||
And Stress filesystem of all worker nodes | ||
|
||
FOR ${i} IN RANGE ${LOOP_COUNT} | ||
And Scale down statefulset 0 to detach volume | ||
|
||
When Expand statefulset 0 volume by 100 MiB | ||
Then Wait for statefulset 0 volume size expanded | ||
|
||
And Scale up statefulset 0 to attach volume | ||
And Wait for volume of statefulset 0 healthy | ||
And Check statefulset 0 data in file data.txt 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