mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 14:30:12 +01:00
feat(e2e-test): Add e2e-tests for zfs-localpv (#298)
Signed-off-by: w3aman <aman.gupta@mayadata.io>
This commit is contained in:
parent
53f872fcf1
commit
4e73638b5a
137 changed files with 8745 additions and 0 deletions
20
e2e-tests/chaoslib/vmware_chaos/vm_power_operations.yml
Normal file
20
e2e-tests/chaoslib/vmware_chaos/vm_power_operations.yml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
# This util can handle 'power on' and 'power off' operations on VMware based virtual machines.
|
||||
# The parameters required by this util are
|
||||
# - ESX IP
|
||||
# - ESX root Password
|
||||
# - The target virtual machine name
|
||||
# - Operation, either 'on' or 'off'
|
||||
#
|
||||
- name: Obtain the VM ID
|
||||
shell: sshpass -p {{ esx_pwd }} ssh -o StrictHostKeyChecking=no root@{{ esx_ip }} vim-cmd vmsvc/getallvms | awk '{print $1 " " $2}' | grep {{ target_node }} | awk '{print $1}'
|
||||
args:
|
||||
executable: /bin/bash
|
||||
register: id
|
||||
|
||||
- name: Perform operation on the target vm
|
||||
shell: sshpass -p {{ esx_pwd }} ssh -o StrictHostKeyChecking=no root@{{ esx_ip }} vim-cmd vmsvc/power.{{operation}} {{ id.stdout }}
|
||||
args:
|
||||
executable: /bin/bash
|
||||
register: result
|
||||
failed_when: "result.rc != 0"
|
||||
Loading…
Add table
Add a link
Reference in a new issue