File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
tests/integration/targets/cics_cmci/playbooks Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 5
5
collections :
6
6
- ibm.ibm_zos_cics
7
7
hosts : ' localhost'
8
- gather_facts : ' false'
8
+ gather_facts : ' true'
9
+
10
+ vars :
11
+ mac_message : >-
12
+ .*nodename nor servname provided, or not known$
13
+ linux_message : >-
14
+ .*Name or service not known$
15
+ error_message : " {{ mac_message if ansible_system == 'Darwin' else linux_message }}"
9
16
10
17
tasks :
11
18
- name : test invalid host
30
37
that :
31
38
- result.failed is false
32
39
- ' {{ result.msg[:76] == "Error performing CMCI request: <urllib3.connection.HTTPSConnection object at" }}'
33
- - ' {{ result.msg[-92:] == "Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known" }}'
40
+ - ' {{ result.msg is match(error_message) }}'
Original file line number Diff line number Diff line change 29
29
that :
30
30
- result.failed is false
31
31
- ' {{ result.msg[:76] == "Error performing CMCI request: <urllib3.connection.HTTPSConnection object at" }}'
32
- - ' {{ result.msg[-67 :] == "Failed to establish a new connection: [Errno 61] Connection refused" }}'
32
+ - ' {{ result.msg[-18 :] == "Connection refused" }}'
You can’t perform that action at this time.
0 commit comments