File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed
integration/targets/cics_cmci/playbooks Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 3
3
---
4
4
- name : CMCI Incorrect Host Integration Test
5
5
hosts : localhost
6
- gather_facts : true
6
+ gather_facts : false
7
7
8
8
tasks :
9
9
- name : Test invalid host
23
23
ansible.builtin.assert :
24
24
that :
25
25
- result.failed is false
26
- - ' {{ result.msg[:76] == "Error performing CMCI request: <urllib3.connection.HTTPSConnection object at" }}'
26
+ - ' {{ result.msg[:51] == "Error performing CMCI request: <urllib3.connection." }}'
27
+ - ' {{ result.msg[-25:] == "Name or service not known" }}'
Original file line number Diff line number Diff line change 22
22
ansible.builtin.assert :
23
23
that :
24
24
- result.failed is false
25
- - ' {{ result.msg[:76 ] == "Error performing CMCI request: <urllib3.connection.HTTPSConnection object at " }}'
25
+ - ' {{ result.msg[:51 ] == "Error performing CMCI request: <urllib3.connection." }}'
26
26
- ' {{ result.msg[-18:] == "Connection refused" }}'
Original file line number Diff line number Diff line change 1
1
# (c) Copyright IBM Corp. 2021
2
2
# Apache License, Version 2.0 (see https://opensource.org/licenses/Apache-2.0)
3
3
---
4
- - name : CMCI Incorrect Scope Integration Test
4
+ - name : CMCI Incorrect Scheme Integration Test
5
5
hosts : localhost
6
6
gather_facts : true
7
7
vars :
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ def test_unknown_host(monkeypatch):
92
92
if sys .version_info .major <= 2 :
93
93
assert exc_info .value .args [0 ]['msg' ].__contains__ ('Failed to establish a new connection' )
94
94
else :
95
- assert exc_info .value .args [0 ]['msg' ].__contains__ ('( [Errno -2] Name or service not known) ' )
95
+ assert exc_info .value .args [0 ]['msg' ].__contains__ ('[Errno -2] Name or service not known' )
96
96
97
97
98
98
def test_invalid_port_type (cmci_module ): # type: (CMCITestHelper) -> None
You can’t perform that action at this time.
0 commit comments