issue #294: stronger integration test
Run the tests in a brand new ansible-playbook invocation, and try both linear->mitogen->linear and mitogen->linear->mitogen.pull/298/head
parent
9a453d4753
commit
26ba3e4d83
@ -0,0 +1,45 @@
|
||||
|
||||
# issue #294: ensure running mixed vanilla/Mitogen succeeds.
|
||||
|
||||
- name: integration/strategy/_mixed_mitogen_vanilla.yml (mitogen_linear)
|
||||
hosts: test-targets
|
||||
any_errors_fatal: true
|
||||
strategy: mitogen_linear
|
||||
tasks:
|
||||
- custom_python_detect_environment:
|
||||
register: out
|
||||
- assert:
|
||||
that: out.mitogen_loaded
|
||||
|
||||
- determine_strategy:
|
||||
- assert:
|
||||
that: strategy == 'ansible.plugins.strategy.mitogen_linear.StrategyModule'
|
||||
|
||||
- name: integration/strategy/_mixed_mitogen_vanilla.yml (linear)
|
||||
hosts: test-targets
|
||||
any_errors_fatal: true
|
||||
strategy: linear
|
||||
tasks:
|
||||
- custom_python_detect_environment:
|
||||
register: out
|
||||
- assert:
|
||||
that: not out.mitogen_loaded
|
||||
|
||||
- determine_strategy:
|
||||
- assert:
|
||||
that: strategy == 'ansible.plugins.strategy.linear.StrategyModule'
|
||||
|
||||
|
||||
- name: integration/strategy/_mixed_mitogen_vanilla.yml (mitogen_linear)
|
||||
hosts: test-targets
|
||||
any_errors_fatal: true
|
||||
strategy: mitogen_linear
|
||||
tasks:
|
||||
- custom_python_detect_environment:
|
||||
register: out
|
||||
- assert:
|
||||
that: out.mitogen_loaded
|
||||
|
||||
- determine_strategy:
|
||||
- assert:
|
||||
that: strategy == 'ansible.plugins.strategy.mitogen_linear.StrategyModule'
|
||||
@ -1 +1 @@
|
||||
- import_playbook: mixed_vanilla_ansible.yml
|
||||
- import_playbook: mixed_vanilla_mitogen.yml
|
||||
|
||||
@ -0,0 +1,22 @@
|
||||
|
||||
- name: integration/strategy/mixed_vanilla_mitogen.yml (linear->mitogen->linear)
|
||||
hosts: test-targets
|
||||
any_errors_fatal: true
|
||||
tasks:
|
||||
- connection: local
|
||||
command: |
|
||||
ansible-playbook
|
||||
-i "{{inventory_file}}"
|
||||
integration/strategy/_mixed_mitogen_vanilla.yml
|
||||
args:
|
||||
chdir: ../..
|
||||
register: out
|
||||
|
||||
- connection: local
|
||||
command: |
|
||||
ansible-playbook
|
||||
-i "{{inventory_file}}"
|
||||
integration/strategy/_mixed_vanilla_mitogen.yml
|
||||
args:
|
||||
chdir: ../..
|
||||
register: out
|
||||
Loading…
Reference in New Issue