Skip to content

Commit 9584235

Browse files
committed
use vault cli tool from devcontainer
Signed-off-by: Andrew Twydell <[email protected]>
1 parent c01dd26 commit 9584235

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
---
44
- name: CMCI Incorrect Host Integration Test
55
hosts: localhost
6-
gather_facts: true
6+
gather_facts: false
77

88
tasks:
99
- name: Test invalid host
@@ -23,4 +23,5 @@
2323
ansible.builtin.assert:
2424
that:
2525
- 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" }}'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
ansible.builtin.assert:
2323
that:
2424
- 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." }}'
2626
- '{{ result.msg[-18:] == "Connection refused" }}'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# (c) Copyright IBM Corp. 2021
22
# Apache License, Version 2.0 (see https://opensource.org/licenses/Apache-2.0)
33
---
4-
- name: CMCI Incorrect Scope Integration Test
4+
- name: CMCI Incorrect Scheme Integration Test
55
hosts: localhost
66
gather_facts: true
77
vars:

tests/unit/modules/test_cmci_get.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def test_unknown_host(monkeypatch):
9292
if sys.version_info.major <= 2:
9393
assert exc_info.value.args[0]['msg'].__contains__('Failed to establish a new connection')
9494
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')
9696

9797

9898
def test_invalid_port_type(cmci_module): # type: (CMCITestHelper) -> None

0 commit comments

Comments
 (0)