-
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
13 changed files
with
212 additions
and
315 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
*** Settings *** | ||
Documentation Physical Node Keywords | ||
Library ../libs/keywords/common_keywords.py | ||
Library ../libs/keywords/host_keywords.py | ||
Library ../libs/keywords/network_keywords.py | ||
Library ../libs/keywords/volume_keywords.py | ||
Library ../libs/keywords/workload_keywords.py | ||
|
||
*** Keywords *** | ||
Reboot volume ${volume_id} volume node | ||
${volume_name} = generate_name_with_suffix volume ${volume_id} | ||
reboot_volume_node ${volume_name} | ||
|
||
Reboot volume ${volume_id} replica node | ||
${volume_name} = generate_name_with_suffix volume ${volume_id} | ||
reboot_replica_node ${volume_name} | ||
|
||
Reboot node ${idx} | ||
reboot_node_by_index ${idx} | ||
|
||
Restart all worker nodes | ||
reboot_all_worker_nodes | ||
|
||
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} | ||
|
||
Restart cluster | ||
reboot_all_nodes | ||
setup_control_plane_network_latency |
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,21 @@ | ||
*** Settings *** | ||
Documentation Longhorn Keywords | ||
Library ../libs/keywords/instancemanager_keywords.py | ||
Library ../libs/keywords/workload_keywords.py | ||
|
||
*** Variables *** | ||
@{longhorn_workloads} | ||
... csi-attacher | ||
... csi-provisioner | ||
... csi-resizer | ||
... csi-snapshotter | ||
... longhorn-driver-deployer | ||
... longhorn-csi-plugin | ||
... longhorn-manager | ||
... longhorn-ui | ||
|
||
*** Keywords *** | ||
Wait for longhorn ready | ||
wait_for_all_instance_manager_running | ||
wait_for_workloads_pods_running ${longhorn_workloads} longhorn-system |
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,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
Oops, something went wrong.