Skip to content

Commit c85ce53

Browse files
authored
tox: run yamllint (#478)
tox: run yamllint Reviewed-by: https://github.com/apps/ansible-zuul
1 parent 80d10ae commit c85ce53

File tree

121 files changed

+587
-582
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+587
-582
lines changed

.yamllint.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
rules:
3+
truthy: enable

tests/integration/targets/inventory_vmware_vm_inventory/playbook/build_inventory_with_cache.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
vars:
77
content: |-
88
plugin: community.vmware.vmware_vm_inventory
9-
strict: False
10-
cache: True
9+
strict: false
10+
cache: true
1111
properties: [all]

tests/integration/targets/inventory_vmware_vm_inventory/playbook/build_inventory_without_cache.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
vars:
88
content: |-
99
plugin: community.vmware.vmware_vm_inventory
10-
strict: False
11-
cache: False
10+
strict: false
11+
cache: false
1212
properties: [all]
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
- name: Install dependencies
33
hosts: localhost
4-
gather_facts: no
4+
gather_facts: false
55
tasks:
66
- pip:
77
name: toml

tests/integration/targets/inventory_vmware_vm_inventory/playbook/prepare_vmware.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
- name: Prepare VMware folders for testing dynamic inventory folder support
33
hosts: localhost
4-
gather_facts: no
4+
gather_facts: false
55
module_defaults:
66
group/vmware:
77
hostname: '{{ vcenter_hostname }}'

tests/integration/targets/inventory_vmware_vm_inventory/playbook/test_inventory_cache.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
- name: Test inventory cache
33
hosts: localhost
4-
gather_facts: no
4+
gather_facts: false
55
tasks:
6-
- find:
6+
- find:
77
paths: "{{ lookup('env', 'ANSIBLE_CACHE_PLUGIN_CONNECTION') }}"
88
patterns: "community.vmware.vmware_vm_inventory*"
99
register: result
@@ -20,22 +20,22 @@
2020
- set_fact:
2121
cached_groups: "{{groups}}"
2222
cached_hostvars: "{{hostvars}}"
23-
23+
2424
- meta: refresh_inventory
2525

2626
- name: 'Compare groups'
2727
fail:
2828
msg: "{{ item.key }} not found in cached groups. Please debug."
2929
when: cached_groups[item.key] is not defined
30-
loop: "{{ q('dict', groups) }}"
30+
loop: "{{ q('dict', groups) }}"
3131
loop_control:
3232
label: "{{ item.key }}"
33-
33+
3434
- name: 'Compare hosts'
3535
fail:
3636
msg: "{{ item.key }} not found in cached hosts. Please debug."
3737
when: cached_hostvars[item.key] is not defined
38-
loop: "{{ q('dict', hostvars) }}"
38+
loop: "{{ q('dict', hostvars) }}"
3939
loop_control:
4040
label: "{{ item.key }}"
4141

tests/integration/targets/inventory_vmware_vm_inventory/playbook/test_options.yml

+33-33
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
vars:
99
content: |-
1010
plugin: community.vmware.vmware_vm_inventory
11-
strict: False
12-
with_nested_properties: False
11+
strict: false
12+
with_nested_properties: false
1313
properties:
1414
- config.name
1515
- runtime.powerState
@@ -33,8 +33,8 @@
3333
vars:
3434
content: |-
3535
plugin: community.vmware.vmware_vm_inventory
36-
strict: False
37-
with_nested_properties: False
36+
strict: false
37+
with_nested_properties: false
3838
properties: ['all']
3939
- name: Test properties(all) option are populate
4040
assert:
@@ -48,8 +48,8 @@
4848
vars:
4949
content: |-
5050
plugin: community.vmware.vmware_vm_inventory
51-
strict: False
52-
with_nested_properties: False
51+
strict: false
52+
with_nested_properties: false
5353
properties:
5454
- config
5555
- name: Test properties(config) option are populate
@@ -64,8 +64,8 @@
6464
vars:
6565
content: |-
6666
plugin: community.vmware.vmware_vm_inventory
67-
strict: False
68-
with_path: True
67+
strict: false
68+
with_path: true
6969
- name: Test path option
7070
assert:
7171
that:
@@ -76,7 +76,7 @@
7676
vars:
7777
content: |-
7878
plugin: community.vmware.vmware_vm_inventory
79-
strict: False
79+
strict: false
8080
with_path: my_center
8181
- name: Test path option with rooted path
8282
assert:
@@ -89,11 +89,11 @@
8989
vars:
9090
content: |-
9191
plugin: community.vmware.vmware_vm_inventory
92-
strict: False
92+
strict: false
9393
properties:
9494
- config.name
9595
- config.uuid
96-
with_nested_properties: True
96+
with_nested_properties: true
9797
- name: Test 'with_nested_properties' option
9898
assert:
9999
that:
@@ -105,14 +105,14 @@
105105
vars:
106106
content: |-
107107
plugin: community.vmware.vmware_vm_inventory
108-
strict: False
108+
strict: false
109109
properties:
110110
- config.name
111111
- config.uuid
112112
- runtime.powerState
113113
114-
with_nested_properties: False
115-
with_sanitized_property_name: True
114+
with_nested_properties: false
115+
with_sanitized_property_name: true
116116
- name: Test 'with_nested_properties' option
117117
assert:
118118
that:
@@ -124,8 +124,8 @@
124124
vars:
125125
content: |-
126126
plugin: community.vmware.vmware_vm_inventory
127-
strict: False
128-
with_nested_properties: True
127+
strict: false
128+
with_nested_properties: true
129129
properties:
130130
- config.name
131131
- config.uuid
@@ -147,8 +147,8 @@
147147
vars:
148148
content: |-
149149
plugin: community.vmware.vmware_vm_inventory
150-
strict: False
151-
with_nested_properties: True
150+
strict: false
151+
with_nested_properties: true
152152
properties:
153153
- config.name
154154
- runtime.powerState
@@ -167,8 +167,8 @@
167167
vars:
168168
content: |-
169169
plugin: community.vmware.vmware_vm_inventory
170-
strict: False
171-
with_nested_properties: True
170+
strict: false
171+
with_nested_properties: true
172172
properties:
173173
- config.uuid
174174
- config.guestId
@@ -200,9 +200,9 @@
200200
vars:
201201
content: |-
202202
plugin: community.vmware.vmware_vm_inventory
203-
strict: False
204-
with_nested_properties: True
205-
with_tags: True
203+
strict: false
204+
with_nested_properties: true
205+
with_tags: true
206206
properties:
207207
- config.name
208208
- config.uuid
@@ -222,8 +222,8 @@
222222
vars:
223223
content: |-
224224
plugin: community.vmware.vmware_vm_inventory
225-
strict: False
226-
with_nested_properties: True
225+
strict: false
226+
with_nested_properties: true
227227
properties:
228228
- config.vmxConfigChecksum
229229
- config.name
@@ -243,8 +243,8 @@
243243
vars:
244244
content: |-
245245
plugin: community.vmware.vmware_vm_inventory
246-
strict: False
247-
with_nested_properties: False
246+
strict: false
247+
with_nested_properties: false
248248
hostnames:
249249
- config.name
250250
properties:
@@ -265,8 +265,8 @@
265265
vars:
266266
content: |-
267267
plugin: community.vmware.vmware_vm_inventory
268-
strict: False
269-
with_nested_properties: False
268+
strict: false
269+
with_nested_properties: false
270270
hostnames:
271271
- config.name
272272
properties:
@@ -288,8 +288,8 @@
288288
vars:
289289
content: |-
290290
plugin: community.vmware.vmware_vm_inventory
291-
strict: False
292-
with_nested_properties: False
291+
strict: false
292+
with_nested_properties: false
293293
hostnames:
294294
- config.name
295295
properties:
@@ -315,8 +315,8 @@
315315
vars:
316316
content: |-
317317
plugin: community.vmware.vmware_vm_inventory
318-
strict: False
319-
with_nested_properties: False
318+
strict: false
319+
with_nested_properties: false
320320
hostnames:
321321
- config.name
322322
properties:

tests/integration/targets/prepare_vmware_tests/tasks/teardown_with_esxi.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
cluster_name: '{{ ccr1 }}'
55
rules:
66
- name: vvold
7-
enabled: False
7+
enabled: false
88
- name: CIMHttpServer
9-
enabled: True
9+
enabled: true
1010
allowed_hosts:
11-
all_ip: True
11+
all_ip: true
1212
- name: NFC
13-
enabled: True
13+
enabled: true
1414
allowed_hosts:
15-
all_ip: True
15+
all_ip: true
1616
ignore_errors: true
1717

1818
- name: Remove the VM prepared by prepare_vmware_tests

tests/integration/targets/vmware_category/tasks/associable_obj_types.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
hostname: '{{ vcenter_hostname }}'
5050
username: '{{ vcenter_username }}'
5151
password: '{{ vcenter_password }}'
52-
validate_certs: False
52+
validate_certs: false
5353
category_name: '{{ item.name }}'
5454
state: absent
5555
with_items: "{{ cat_data }}"
@@ -59,7 +59,7 @@
5959
hostname: '{{ vcenter_hostname }}'
6060
username: '{{ vcenter_username }}'
6161
password: '{{ vcenter_password }}'
62-
validate_certs: False
62+
validate_certs: false
6363
category_name: 'Sample_cate_0001'
6464
category_description: 'sample description'
6565
associable_object_types:
@@ -78,7 +78,7 @@
7878
hostname: '{{ vcenter_hostname }}'
7979
username: '{{ vcenter_username }}'
8080
password: '{{ vcenter_password }}'
81-
validate_certs: False
81+
validate_certs: false
8282
category_name: 'Sample_cate_0001'
8383
state: absent
8484
register: category_change

tests/integration/targets/vmware_cluster/tasks/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- &add_cluster
1212
name: add cluster
1313
vmware_cluster:
14-
validate_certs: False
14+
validate_certs: false
1515
hostname: "{{ vcenter_hostname }}"
1616
username: "{{ vcenter_username }}"
1717
password: "{{ vcenter_password }}"
@@ -41,7 +41,7 @@
4141
- &del_cluster
4242
name: delete cluster
4343
vmware_cluster:
44-
validate_certs: False
44+
validate_certs: false
4545
hostname: "{{ vcenter_hostname }}"
4646
username: "{{ vcenter_username }}"
4747
password: "{{ vcenter_password }}"

tests/integration/targets/vmware_cluster_drs/tasks/main.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Setup: Create test cluster
99
- name: Create test cluster
1010
vmware_cluster:
11-
validate_certs: False
11+
validate_certs: false
1212
hostname: "{{ vcenter_hostname }}"
1313
username: "{{ vcenter_username }}"
1414
password: "{{ vcenter_password }}"
@@ -19,7 +19,7 @@
1919
# Testcase 0001: Enable DRS
2020
- name: Enable DRS
2121
vmware_cluster_drs:
22-
validate_certs: False
22+
validate_certs: false
2323
hostname: "{{ vcenter_hostname }}"
2424
username: "{{ vcenter_username }}"
2525
password: "{{ vcenter_password }}"
@@ -36,13 +36,13 @@
3636
# Testcase 0002: Disable DRS
3737
- name: Disable DRS
3838
vmware_cluster_drs:
39-
validate_certs: False
39+
validate_certs: false
4040
hostname: "{{ vcenter_hostname }}"
4141
username: "{{ vcenter_username }}"
4242
password: "{{ vcenter_password }}"
4343
datacenter_name: "{{ dc1 }}"
4444
cluster_name: test_cluster_drs
45-
enable_drs: no
45+
enable_drs: false
4646
register: cluster_drs_result_0002
4747

4848
- name: Ensure DRS is disabled
@@ -54,7 +54,7 @@
5454
block:
5555
- name: Change advanced setting "TryBalanceVmsPerHost" (check-mode)
5656
vmware_cluster_drs: &change_balance_vms
57-
validate_certs: False
57+
validate_certs: false
5858
hostname: "{{ vcenter_hostname }}"
5959
username: "{{ vcenter_username }}"
6060
password: "{{ vcenter_password }}"
@@ -88,7 +88,7 @@
8888
# Delete test cluster
8989
- name: Delete test cluster
9090
vmware_cluster:
91-
validate_certs: False
91+
validate_certs: false
9292
hostname: "{{ vcenter_hostname }}"
9393
username: "{{ vcenter_username }}"
9494
password: "{{ vcenter_password }}"

0 commit comments

Comments
 (0)