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

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

Loading…
Cancel
Save