Debian Codegraph @

ansible_collections/community/vmware/tests/integration/targets/vmware_about_info/tasks/main.yml

raw
1 # Test code for the vmware_about_info module.
2 # Copyright: (c) 2018, Abhijeet Kasurde <[email protected]>
3 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
4
5 - import_role:
6 name: prepare_vmware_tests
7
8 - name: Get Details about VMware vCenter Server
9 vmware_about_info: &vmware_about_data
10 hostname: "{{ vcenter_hostname }}"
11 username: "{{ vcenter_username }}"
12 password: "{{ vcenter_password }}"
13 validate_certs: false
14 register: about
15
16 - assert:
17 that:
18 - about.about_info[item] is defined
19 with_items:
20 - api_type
21 - api_version
22 - build
23 - instance_uuid
24 - license_product_name
25 - license_product_version
26 - locale_build
27 - locale_version
28 - os_type
29 - product_full_name
30 - product_line_id
31 - product_name
32 - vendor
33 - version
34
35 - name: Get Details about VMware vCenter Server in check mode
36 vmware_about_info:
37 <<: *vmware_about_data
38 register: about
39 check_mode: true
40
41 - assert:
42 that:
43 - about.about_info[item] is defined
44 with_items:
45 - api_type
46 - api_version
47 - build
48 - instance_uuid
49 - license_product_name
50 - license_product_version
51 - locale_build
52 - locale_version
53 - os_type
54 - product_full_name
55 - product_line_id
56 - product_name
57 - vendor
58 - version