-
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): adapt keywords to test
longhorn/longhorn-7034 Signed-off-by: Chin-Ya Huang <[email protected]>
- Loading branch information
Showing
10 changed files
with
168 additions
and
279 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 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 |
---|---|---|
@@ -1,68 +1,42 @@ | ||
*** Settings *** | ||
Documentation Physical Node Keywords | ||
Library ../libs/keywords/volume_keywords.py | ||
Library ../libs/keywords/common_keywords.py | ||
Library ../libs/keywords/instancemanager_keywords.py | ||
Library ../libs/keywords/network_keywords.py | ||
Library ../libs/keywords/node_keywords.py | ||
Library ../libs/keywords/volume_keywords.py | ||
Library ../libs/keywords/workload_keywords.py | ||
Library ../libs/keywords/network_keywords.py | ||
|
||
*** Keywords *** | ||
During replica rebuilding, reboot volume node | ||
Reboot volume ${volume_id} volume node | ||
${volume_name} = generate_name_with_suffix volume ${volume_id} | ||
reboot_volume_node ${volume_name} | ||
|
||
During replica rebuilding, reboot replica node | ||
Reboot volume ${volume_id} replica node | ||
${volume_name} = generate_name_with_suffix volume ${volume_id} | ||
reboot_replica_node ${volume_name} | ||
|
||
Reboot volume ${idx} volume node | ||
reboot_volume_node ${volume_list}[${idx}] | ||
FOR ${item} IN @{volume_list} | ||
wait for volume_attached ${item} | ||
END | ||
|
||
Reboot volume ${idx} replica node | ||
reboot_replica_node ${volume_list}[${idx}] | ||
FOR ${item} IN @{volume_list} | ||
wait for volume_attached ${item} | ||
END | ||
|
||
Reboot node ${idx} | ||
reboot_node_by_index ${idx} | ||
|
||
Restart all worker nodes | ||
reboot_all_worker_nodes | ||
|
||
Reboot volume node of statefulset ${idx} | ||
${volume_name} = get_workload_volume_name ${statefulset_list}[${idx}] | ||
${node_name} = get_replica_node_attached_to_volume ${volume_name} | ||
reboot_node_by_name ${node_name} | ||
|
||
Power off node ${idx} for ${power_off_time_in_min} mins | ||
reboot_node_by_index ${idx} ${power_off_time_in_min} | ||
|
||
Power off all worker nodes for ${power_off_time_in_min} mins | ||
reboot_all_worker_nodes ${power_off_time_in_min} | ||
|
||
Power off volume node of statefulset ${idx} for ${power_off_time_in_min} mins | ||
${volume_name} = get_workload_volume_name ${statefulset_list}[${idx}] | ||
${node_name} = get_replica_node_attached_to_volume ${volume_name} | ||
reboot_node_by_name ${node_name} ${power_off_time_in_min} | ||
|
||
Wait for longhorn ready | ||
wait_for_all_instance_manager_running | ||
FOR ${deployment} IN @{deployment_list} | ||
wait_for_workload_pod_stable ${deployment} | ||
END | ||
FOR ${statefulset} IN @{statefulset_list} | ||
wait_for_workload_pod_stable ${statefulset} | ||
END | ||
wait_for_workload_pods_stable deployment | ||
wait_for_workload_pods_stable statefulset | ||
|
||
Restart cluster | ||
reboot_all_nodes | ||
setup_control_plane_network_latency | ||
wait_for_all_instance_manager_running | ||
FOR ${deployment} IN @{deployment_list} | ||
wait_for_workload_pod_stable ${deployment} | ||
END | ||
FOR ${statefulset} IN @{statefulset_list} | ||
wait_for_workload_pod_stable ${statefulset} | ||
END | ||
wait_for_workload_pods_stable deployment | ||
wait_for_workload_pods_stable statefulset |
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,15 @@ | ||
*** Settings *** | ||
Documentation PersistentVolumeClaim Keywords | ||
Library Collections | ||
Library ../libs/keywords/common_keywords.py | ||
Library ../libs/keywords/persistentvolumeclaim_keywords.py | ||
|
||
*** Keywords *** | ||
Create persistentvolumeclaim ${claim_id} using ${volume_type} volume | ||
${claim_name} = generate_name_with_suffix claim ${claim_id} | ||
create_persistentvolumeclaim ${claim_name} ${volume_type} | ||
|
||
Create persistentvolumeclaim ${claim_id} using ${volume_type} volume with ${option} storageclass | ||
${claim_name} = generate_name_with_suffix claim ${claim_id} | ||
create_persistentvolumeclaim ${claim_name} ${volume_type} ${option} |
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 |
---|---|---|
@@ -1,17 +1,26 @@ | ||
*** Settings *** | ||
Documentation Stress Node Keywords | ||
Library ../libs/keywords/node_keywords.py | ||
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 CPU of all nodes with volume | ||
stress_node_cpu_of_all_volumes | ||
|
||
Stress the CPU of node with volume ${volume_id} | ||
${volume_name} = generate_name_with_suffix volume ${volume_id} | ||
stress_node_cpu_by_volume ${volume_name} | ||
|
||
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} | ||
Stress the memory of all nodes with volume | ||
stress_node_memory_of_all_volumes | ||
|
||
Stress the memory of node with volume ${volume_id} | ||
${volume_name} = generate_name_with_suffix volume ${volume_id} | ||
stress_node_memory_by_volume ${volume_name} |
Oops, something went wrong.