tests: use assert_equal in more places.

issue510
David Wilson 6 years ago
parent d72567b15b
commit 1b8748a8d9

@ -46,7 +46,7 @@
], ],
'ssh_debug_level': null, 'ssh_debug_level': null,
'ssh_path': 'ssh', 'ssh_path': 'ssh',
'username': 'alias-userx', 'username': 'alias-user',
}, },
'method': 'ssh', 'method': 'ssh',
}, },

@ -1,6 +1,6 @@
# Verify one OSA-style container has the correct config. # Verify one OSA-style container has the correct config.
- name: integration/connection_delegation/container_standalone.yml - name: integration/connection_delegation/osa_container_standalone.yml
hosts: dtc-container-1 hosts: dtc-container-1
gather_facts: false gather_facts: false
tasks: tasks:
@ -10,18 +10,18 @@
- mitogen_get_stack: - mitogen_get_stack:
register: out register: out
- assert: - assert_equal:
that: | left: out.result
out.result == [ right: [
{ {
'kwargs': { 'kwargs': {
'container': 'dtc-container-1', 'container': 'dtc-container-1',
'docker_path': None, 'docker_path': null,
'kind': 'lxc', 'kind': 'lxc',
'lxc_info_path': None, 'lxc_info_path': null,
'machinectl_path': None, 'machinectl_path': null,
'python_path': ['/usr/bin/python'], 'python_path': ['/usr/bin/python'],
'username': None, 'username': null,
}, },
'method': 'setns', 'method': 'setns',
}, },

@ -13,19 +13,19 @@
delegate_to: "{{target}}" delegate_to: "{{target}}"
register: out register: out
- assert: - assert_equal:
that: | left: out.result
out.result == [ right: [
{ {
'kwargs': { 'kwargs': {
'container': 'osa-container-1', 'container': 'osa-container-1',
'docker_path': None, 'docker_path': null,
'kind': 'lxc', 'kind': 'lxc',
'lxc_info_path': None, 'lxc_info_path': null,
'lxc_path': None, 'lxc_path': null,
'machinectl_path': None, 'machinectl_path': null,
'python_path': None, 'python_path': null,
'username': None, 'username': null,
}, },
'method': 'setns', 'method': 'setns',
}, },

Loading…
Cancel
Save