tests: use assert_equal in more places.

issue510
David Wilson 6 years ago
parent d72567b15b
commit 1b8748a8d9

@ -26,52 +26,52 @@
- assert_equal:
left: out.result
right: [
{
'kwargs': {
'check_host_keys': 'ignore',
'connect_timeout': 10,
'hostname': 'alias-host',
'identities_only': False,
'identity_file': null,
'password': null,
'port': null,
'python_path': null,
'ssh_args': [
'-o',
'ForwardAgent=yes',
'-o',
'ControlMaster=auto',
'-o',
'ControlPersist=60s',
],
'ssh_debug_level': null,
'ssh_path': 'ssh',
'username': 'alias-userx',
},
'method': 'ssh',
{
'kwargs': {
'check_host_keys': 'ignore',
'connect_timeout': 10,
'hostname': 'alias-host',
'identities_only': False,
'identity_file': null,
'password': null,
'port': null,
'python_path': null,
'ssh_args': [
'-o',
'ForwardAgent=yes',
'-o',
'ControlMaster=auto',
'-o',
'ControlPersist=60s',
],
'ssh_debug_level': null,
'ssh_path': 'ssh',
'username': 'alias-user',
},
{
'kwargs': {
'check_host_keys': 'ignore',
'connect_timeout': 10,
'hostname': 'cd-normal-alias',
'identities_only': False,
'identity_file': null,
'password': null,
'port': null,
'python_path': null,
'ssh_args': [
'-o',
'ForwardAgent=yes',
'-o',
'ControlMaster=auto',
'-o',
'ControlPersist=60s',
],
'ssh_debug_level': null,
'ssh_path': 'ssh',
'username': null,
},
'method': 'ssh',
}
]
'method': 'ssh',
},
{
'kwargs': {
'check_host_keys': 'ignore',
'connect_timeout': 10,
'hostname': 'cd-normal-alias',
'identities_only': False,
'identity_file': null,
'password': null,
'port': null,
'python_path': null,
'ssh_args': [
'-o',
'ForwardAgent=yes',
'-o',
'ControlMaster=auto',
'-o',
'ControlPersist=60s',
],
'ssh_debug_level': null,
'ssh_path': 'ssh',
'username': null,
},
'method': 'ssh',
}
]

@ -1,6 +1,6 @@
# 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
gather_facts: false
tasks:
@ -10,19 +10,19 @@
- mitogen_get_stack:
register: out
- assert:
that: |
out.result == [
{
'kwargs': {
'container': 'dtc-container-1',
'docker_path': None,
'kind': 'lxc',
'lxc_info_path': None,
'machinectl_path': None,
'python_path': ['/usr/bin/python'],
'username': None,
},
'method': 'setns',
},
]
- assert_equal:
left: out.result
right: [
{
'kwargs': {
'container': 'dtc-container-1',
'docker_path': null,
'kind': 'lxc',
'lxc_info_path': null,
'machinectl_path': null,
'python_path': ['/usr/bin/python'],
'username': null,
},
'method': 'setns',
},
]

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

Loading…
Cancel
Save