You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitogen/tests/ansible/integration/runner/custom_python_new_style_mod...

29 lines
777 B
YAML

- name: integration/runner/custom_python_new_style_module.yml
hosts: test-targets
any_errors_fatal: true
tasks:
# without Mitogen Ansible 2.10 hangs on this play
- meta: end_play
when: not is_mitogen
- custom_python_new_style_module:
foo: true
with_sequence: start=0 end={{end|default(1)}}
register: out
- assert:
that:
- "not out.changed"
- "not out.results[0].changed"
# Random breaking interface change since 2.7.x
#- "out.results[0].input[0].ANSIBLE_MODULE_ARGS.foo"
- "out.results[0].msg == 'Here is my input'"
# Verify sys.argv is not Unicode.
- custom_python_detect_environment:
register: out
- assert:
that:
- out.argv_types_correct