-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(negative): decouple stress operations from physical node operations
Signed-off-by: Yang Chiu <[email protected]>
- Loading branch information
1 parent
8bcdfa7
commit a2d12bc
Showing
7 changed files
with
46 additions
and
34 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,17 @@ | ||
*** Settings *** | ||
Documentation Stress Node Keywords | ||
Library ../libs/keywords/stress_keywords.py | ||
|
||
*** Keywords *** | ||
Stress the CPU of all ${role} nodes | ||
stress_node_cpu_by_role ${role} | ||
|
||
Stress the CPU of all volume nodes | ||
stress_node_cpu_by_volumes ${volume_list} | ||
|
||
Stress the memory of all ${role} nodes | ||
stress_node_memory_by_role ${role} | ||
|
||
Stress the memory of all volume nodes | ||
stress_node_memory_by_volumes ${volume_list} |
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,26 @@ | ||
from robot.libraries.BuiltIn import BuiltIn | ||
|
||
from node import Stress | ||
from node.utility import list_node_names_by_role | ||
from node.utility import list_node_names_by_volumes | ||
|
||
|
||
class stress_keywords: | ||
|
||
def __init__(self): | ||
self.stress = Stress() | ||
|
||
def cleanup_stress_helper(self): | ||
self.stress.cleanup() | ||
|
||
def stress_node_cpu_by_role(self, role): | ||
self.stress.cpu(list_node_names_by_role(role)) | ||
|
||
def stress_node_cpu_by_volumes(self, volume_names): | ||
self.stress.cpu(list_node_names_by_volumes(volume_names)) | ||
|
||
def stress_node_memory_by_role(self, role): | ||
self.stress.memory(list_node_names_by_role(role)) | ||
|
||
def stress_node_memory_by_volumes(self, volume_names): | ||
self.stress.memory(list_node_names_by_volumes(volume_names)) |
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