tests: add exact test for issue 251; closes #251.

issue510
David Wilson 6 years ago
parent 15182bb814
commit d6945443b7

@ -1,4 +1,5 @@
- import_playbook: delegate_to_template.yml - import_playbook: delegate_to_template.yml
- import_playbook: local_action.yml
- import_playbook: osa_container_standalone.yml - import_playbook: osa_container_standalone.yml
- import_playbook: osa_delegate_to_self.yml - import_playbook: osa_delegate_to_self.yml
- import_playbook: stack_construction.yml - import_playbook: stack_construction.yml

@ -0,0 +1,34 @@
# issue #251: local_action with mitogen_via= builds wrong stack.
- hosts: cd-newuser-normal-normal
tasks:
- meta: end_play
when: not is_mitogen
- local_action: mitogen_get_stack
become: true
register: out
- assert_equal:
left: out.result
right: [
{
'kwargs': {
'python_path': null
},
'method': 'local',
},
{
'enable_lru': true,
'kwargs': {
'connect_timeout': 10,
'python_path': null,
'password': null,
'username': 'root',
'sudo_path': null,
'sudo_args': ['-H', '-S', '-n'],
},
'method': 'sudo',
}
]
Loading…
Cancel
Save