Skip to content

Commit 878e589

Browse files
Use inventory for variables rather than vars files (#158)
* Use inventory for variables rather than vars files * escape dollar sign for template processing Signed-off-by: Stewart Francis <[email protected]> * Use a shared var in template for unique 5 char base Signed-off-by: Stewart Francis <[email protected]> * fix yamllint issues in template inventory Signed-off-by: Stewart Francis <[email protected]> * Run CMCI playbooks against all, use delegation, so we get host vars Signed-off-by: Stewart Francis <[email protected]> * remove references to inventory and vars Signed-off-by: Stewart Francis <[email protected]> * fix test issues Signed-off-by: Stewart Francis <[email protected]> * force creation of member Signed-off-by: Stewart Francis <[email protected]> * update tests to remove decho Signed-off-by: Stewart Francis <[email protected]> --------- Signed-off-by: Stewart Francis <[email protected]>
1 parent cd19c11 commit 878e589

31 files changed

+158
-150
lines changed

tests/integration/targets/cics_cmci/playbooks/cics_cmci_http.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Apache License, Version 2.0 (see https://opensource.org/licenses/Apache-2.0)
33
---
44
- name: CMCI HTTP Integration Test
5-
hosts: localhost
5+
hosts: all
66
gather_facts: false
77
vars:
88
csdgroup: "{{ cmci_program_name_1 }}"

tests/integration/targets/cics_cmci/playbooks/cics_cmci_https.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Apache License, Version 2.0 (see https://opensource.org/licenses/Apache-2.0)
33
---
44
- name: CMCI HTTPS Integration Test
5-
hosts: localhost
5+
hosts: all
66
gather_facts: false
77
vars:
88
csdgroup: "{{ cmci_program_name_1 }}"

tests/integration/targets/cics_cmci/playbooks/cics_cmci_module_defaults_cmci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Apache License, Version 2.0 (see https://opensource.org/licenses/Apache-2.0)
33
---
44
- name: CMCI Group Module_Default Integration Tests
5-
hosts: localhost
5+
hosts: all
66
gather_facts: false
77
vars:
88
csdgroup: "{{ cmci_program_name_1 }}"

tests/integration/targets/cics_cmci/playbooks/cics_cmci_module_defaults_cmci_group.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Apache License, Version 2.0 (see https://opensource.org/licenses/Apache-2.0)
33
---
44
- name: CMCI Group Module_Default Integration Tests
5-
hosts: localhost
5+
hosts: all
66
gather_facts: false
77
vars:
88
csdgroup: "{{ cmci_program_name_1 }}"

tests/integration/targets/cics_cmci/playbooks/cmci_bas_install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Sets Up a full BAS resource assignment deployment. Checks to see where programs will be installed and then
66
# installs to two regions with a target scope and one related scope. Uninstalls and deletes everything created after
77

8-
hosts: localhost
8+
hosts: all
99
gather_facts: false
1010
vars:
1111
program: "{{ cmci_program_name_1 }}"

tests/integration/targets/cics_cmci/playbooks/cmci_bas_install_error.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# installs to two regions with a target scope and one related scope. Then attempts to install again and checks an error
77
# occured with feedback and nested installerrors. Uninstalls and deletes everything created after
88

9-
hosts: localhost
9+
hosts: all
1010
gather_facts: false
1111
vars:
1212
file1: "{{ cmci_program_name_1 }}"

tests/integration/targets/cics_cmci/playbooks/cmci_bas_link.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
- name: CMCI BAS Link Integration Test
55
# Sets Up a Basic BAS Resource Description with one Resource Group containing one program definition and then cleans up
66

7-
hosts: localhost
7+
hosts: all
88
gather_facts: false
99
vars:
1010
program: "{{ cmci_program_name_1 }}"

tests/integration/targets/cics_cmci/playbooks/cmci_create_pipeline_failure.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
# Apache License, Version 2.0 (see https://opensource.org/licenses/Apache-2.0)
33
---
44
- name: CMCI Create Pipeline Failure Integration Test
5-
hosts: localhost
5+
hosts: all
66
gather_facts: false
77

88
tasks:
99
- name: Test create pipeline failure
10+
delegate_to: localhost
1011
ibm.ibm_zos_cics.cmci_create:
1112
cmci_host: "{{ cmci_host }}"
1213
cmci_port: "{{ cmci_secure_port }}"

tests/integration/targets/cics_cmci/playbooks/cmci_incorrect_context.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
# Apache License, Version 2.0 (see https://opensource.org/licenses/Apache-2.0)
33
---
44
- name: CMCI Incorrect Context Integration Test
5-
hosts: localhost
5+
hosts: all
66
gather_facts: false
77

88
tasks:
99
- name: Test invalid context
10+
delegate_to: localhost
1011
ibm.ibm_zos_cics.cmci_get:
1112
cmci_host: "{{ cmci_host }}"
1213
cmci_port: "{{ cmci_secure_port }}"

tests/integration/targets/cics_cmci/playbooks/cmci_incorrect_host.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
# Apache License, Version 2.0 (see https://opensource.org/licenses/Apache-2.0)
33
---
44
- name: CMCI Incorrect Host Integration Test
5-
hosts: localhost
5+
hosts: all
66
gather_facts: false
77

88
tasks:
99
- name: Test invalid host
10+
delegate_to: localhost
1011
ibm.ibm_zos_cics.cmci_get:
1112
cmci_host: DOESNTEXIST
1213
cmci_port: "{{ cmci_secure_port }}"

0 commit comments

Comments
 (0)