summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/vmware_guest_screenshot
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/vmware_guest_screenshot')
-rw-r--r--test/integration/targets/vmware_guest_screenshot/aliases4
-rw-r--r--test/integration/targets/vmware_guest_screenshot/tasks/main.yml54
2 files changed, 0 insertions, 58 deletions
diff --git a/test/integration/targets/vmware_guest_screenshot/aliases b/test/integration/targets/vmware_guest_screenshot/aliases
deleted file mode 100644
index 62871ab8f0..0000000000
--- a/test/integration/targets/vmware_guest_screenshot/aliases
+++ /dev/null
@@ -1,4 +0,0 @@
-cloud/vcenter
-shippable/vcenter/group1
-needs/target/prepare_vmware_tests
-zuul/vmware/vcenter_1esxi
diff --git a/test/integration/targets/vmware_guest_screenshot/tasks/main.yml b/test/integration/targets/vmware_guest_screenshot/tasks/main.yml
deleted file mode 100644
index 30ccf6bfde..0000000000
--- a/test/integration/targets/vmware_guest_screenshot/tasks/main.yml
+++ /dev/null
@@ -1,54 +0,0 @@
-# Test code for the vmware_guest_screenshot module
-# Copyright: (c) 2019, Diane Wang (Tomorrow9) <dianew@vmware.com>
-# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
-
-- when: vcsim is not defined
- block:
- - import_role:
- name: prepare_vmware_tests
- vars:
- setup_attach_host: true
- setup_datastore: true
- setup_virtualmachines: true
-
- - name: set VM state to powered on
- vmware_guest:
- validate_certs: False
- hostname: "{{ vcenter_hostname }}"
- username: "{{ vcenter_username }}"
- password: "{{ vcenter_password }}"
- datacenter: "{{ dc1 }}"
- folder: "{{ virtual_machines[0].folder }}"
- name: "{{ virtual_machines[0].name }}"
- state: poweredon
-
- - name: take screenshot of virtual machine's console
- vmware_guest_screenshot:
- validate_certs: False
- hostname: "{{ vcenter_hostname }}"
- username: "{{ vcenter_username }}"
- password: "{{ vcenter_password }}"
- name: "{{ virtual_machines[0].name }}"
- register: take_screenshot
- - debug: var=take_screenshot
- - name: assert the screenshot captured
- assert:
- that:
- - "take_screenshot.changed == true"
-
- - name: take screenshot of virtual machine's console and download to local
- vmware_guest_screenshot:
- validate_certs: False
- hostname: "{{ vcenter_hostname }}"
- username: "{{ vcenter_username }}"
- password: "{{ vcenter_password }}"
- name: "{{ virtual_machines[0].name }}"
- local_path: "/tmp/screenshot_test.png"
- datacenter: "{{ dc1 }}"
- folder: "{{ virtual_machines[0].folder }}"
- register: take_screenshot
- - debug: var=take_screenshot
- - name: assert the screenshot captured
- assert:
- that:
- - "take_screenshot.changed == true"