tests: consistent play naming everywhere

This commit is contained in:
David Wilson 2018-04-18 15:43:54 +01:00
parent d827bdb848
commit ce260933d9
33 changed files with 86 additions and 101 deletions

View File

@ -1,11 +1,9 @@
# Verify the behaviour of _low_level_execute_command().
- hosts: all
- name: integration/action__low_level_execute_command.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/action__low_level_execute_command.yml
assert:
that: true
# "echo -en" to test we actually hit bash shell too.
- name: Run raw module without sudo

View File

@ -1,11 +1,9 @@
- hosts: all
- name: integration/action/make_tmp_path.yml
hosts: all
any_errors_fatal: true
gather_facts: true
tasks:
- name: integration/action/make_tmp_path.yml
assert:
that: true
- action_passthrough:
method: _make_tmp_path

View File

@ -1,10 +1,8 @@
- hosts: all
- name: integration/action/remote_file_exists.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/action/remote_file_exists.yml
assert:
that: true
- file:
path: /tmp/does-not-exist

View File

@ -1,9 +1,10 @@
- hosts: all
- name: integration/action/transfer_data.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/action/transfer_data.yml
file:
- file:
path: /tmp/transfer-data
state: absent

View File

@ -1,9 +1,7 @@
- hosts: all
- name: integration/become/sudo_flags_failure.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/become/sudo_flags_failure.yml
assert:
that: true
- name: Verify behaviour for bad sudo flags.
shell: whoami

View File

@ -1,9 +1,7 @@
- hosts: all
- name: integration/become/sudo_nonexistent.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/become/sudo_nonexistent.yml
assert:
that: true
- name: Verify behaviour for non-existent accounts.
shell: whoami

View File

@ -1,11 +1,9 @@
# Verify passwordless sudo behaviour in various cases.
- hosts: all
- name: integration/become/sudo_basic.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/become/sudo_basic.yml
assert:
that: true
- name: Verify we aren't root
shell: whoami

View File

@ -1,11 +1,9 @@
# Verify passwordful sudo behaviour
- hosts: all
- name: integration/become/sudo_password.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/become/sudo_password.yml
assert:
that: true
- name: Ensure sudo password absent but required.
shell: whoami

View File

@ -1,11 +1,9 @@
# Verify requiretty support
- hosts: all
- name: integration/become/sudo_requiretty.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/become/sudo_requiretty.yml
assert:
that: true
- name: Verify we can login to a non-passworded requiretty account
shell: whoami

View File

@ -1,10 +1,10 @@
# Ensure 'local' connections are grabbed.
- hosts: all
- name: integration/connection_loader__local_blemished.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/connection_loader__local_blemished.yml
determine_strategy:
- determine_strategy:
- custom_python_detect_environment:
connection: local

View File

@ -1,10 +1,10 @@
# Ensure paramiko connections aren't grabbed.
- hosts: all
- name: integration/connection_loader__paramiko_unblemished.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/connection_loader__paramiko_unblemished.yml
custom_python_detect_environment:
- custom_python_detect_environment:
connection: paramiko
register: out

View File

@ -1,10 +1,10 @@
# Ensure 'ssh' connections are grabbed.
- hosts: all
- name: integration/connection_loader__ssh_blemished.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/connection_loader__ssh_blemished.yml
determine_strategy:
- determine_strategy:
- custom_python_detect_environment:
connection: ssh

View File

@ -1,15 +1,13 @@
# Verify a maximum number of contexts are possible on one machine.
- hosts: all
- name: integration/context_service/lru_one_target.yml
hosts: all
any_errors_fatal: true
vars:
max_interps: "{{lookup('env', 'MITOGEN_MAX_INTERPRETERS')}}"
ubound: "{{max_interps|int + 1}}"
tasks:
- name: integration/context_service/lru_one_target.yml
assert:
that: true
- name: Reset all connections
mitogen_shutdown_all:

View File

@ -2,12 +2,10 @@
# Test sudo_flags respects -E.
#
- hosts: all
- name: integration/playbook_semantics/become_flags.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/playbook_semantics/become_flags.yml
assert:
that: true
- name: "without -E"
become: true

View File

@ -1,4 +1,5 @@
- hosts: all
- name: integration/playbook_semantics/delegate_to.yml
hosts: all
any_errors_fatal: true
tasks:
#

View File

@ -1,6 +1,7 @@
# Ensure environment: is preserved during call.
- hosts: all
- name: integration/playbook_semantics/environment.yml
hosts: all
any_errors_fatal: true
tasks:
- shell: echo $SOME_ENV

View File

@ -1,12 +1,10 @@
# Verify with_items that modifies the execution environment still executes in
# the correct context.
- hosts: all
- name: integration/playbook_semantics/with_items.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/playbook_semantics/with_items.yml
assert:
that: true
- name: Spin up a few interpreters
shell: whoami

View File

@ -1,7 +1,7 @@
# Verify 'async: <timeout>' functions as desired.
- hosts: all
- name: integration/runner/async_job_timeout.yml
hosts: all
any_errors_fatal: true
tasks:

View File

@ -1,7 +1,8 @@
# Verify behaviour of a single asynchronous task, and presence of all output
# fields.
- hosts: all
- name: integration/runner/async_one_job.yml
hosts: all
any_errors_fatal: true
tasks:

View File

@ -1,4 +1,6 @@
- hosts: all
- name: integration/runner/async_two_simultaneous_jobs.yml
hosts: all
any_errors_fatal: true
tasks:

View File

@ -1,9 +1,10 @@
- hosts: all
- name: integration/runner__builtin_command_module.yml
hosts: all
any_errors_fatal: true
gather_facts: true
tasks:
- name: integration/runner__builtin_command_module.yml
command: hostname
- command: hostname
with_sequence: start=1 end={{end|default(1)}}
register: out

View File

@ -1,8 +1,9 @@
- hosts: all
- name: integration/runner__custom_bash_old_style_module.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/runner__custom_bash_old_style_module.yml
custom_bash_old_style_module:
- custom_bash_old_style_module:
foo: true
with_sequence: start=1 end={{end|default(1)}}
register: out

View File

@ -1,8 +1,8 @@
- hosts: all
- name: integration/runner__custom_bash_want_json_module.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/runner__custom_bash_want_json_module.yml
custom_bash_want_json_module:
- custom_bash_want_json_module:
foo: true
with_sequence: start=1 end={{end|default(1)}}
register: out

View File

@ -1,8 +1,8 @@
- hosts: all
- name: integration/runner__custom_binary_producing_json.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/runner__custom_binary_producing_json.yml
custom_binary_producing_json:
- custom_binary_producing_json:
foo: true
with_sequence: start=1 end={{end|default(1)}}
register: out

View File

@ -1,7 +1,7 @@
- hosts: all
- name: integration/runner__custom_binary_producing_junk.yml
hosts: all
tasks:
- name: integration/runner__custom_binary_producing_junk.yml
custom_binary_producing_junk:
- custom_binary_producing_junk:
foo: true
with_sequence: start=1 end={{end|default(1)}}
ignore_errors: true

View File

@ -1,7 +1,7 @@
- hosts: all
- name: integration/runner__custom_binary_single_null.yml
hosts: all
tasks:
- name: integration/runner__custom_binary_single_null.yml
custom_binary_single_null:
- custom_binary_single_null:
foo: true
with_sequence: start=1 end={{end|default(1)}}
ignore_errors: true

View File

@ -1,8 +1,8 @@
- hosts: all
- name: integration/runner__custom_perl_json_args_module.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/runner__custom_perl_json_args_module.yml
custom_perl_json_args_module:
- custom_perl_json_args_module:
foo: true
with_sequence: start=1 end={{end|default(1)}}
register: out

View File

@ -1,8 +1,8 @@
- hosts: all
- name: integration/runner__custom_perl_want_json_module.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/runner__custom_perl_want_json_module.yml
custom_perl_want_json_module:
- custom_perl_want_json_module:
foo: true
with_sequence: start=1 end={{end|default(1)}}
register: out

View File

@ -1,8 +1,8 @@
- hosts: all
- name: integration/runner__custom_python_json_args_module.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/runner__custom_python_json_args_module.yml
custom_python_json_args_module:
- custom_python_json_args_module:
foo: true
with_sequence: start=1 end={{end|default(1)}}
register: out

View File

@ -1,8 +1,8 @@
- hosts: all
- name: integration/runner__custom_python_new_style_module.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/runner__custom_python_new_style_module.yml
custom_python_new_style_module:
- custom_python_new_style_module:
foo: true
with_sequence: start=1 end={{end|default(1)}}
register: out

View File

@ -1,8 +1,8 @@
- hosts: all
- name: integration/runner__custom_python_want_json_module.yml
hosts: all
any_errors_fatal: true
tasks:
- name: integration/runner__custom_python_want_json_module.yml
custom_python_want_json_module:
- custom_python_want_json_module:
foo: true
with_sequence: start=1 end={{end|default(1)}}
register: out

View File

@ -1,12 +1,11 @@
- hosts: all
- name: integration/runner/forking_behaviour.yml
hosts: all
any_errors_fatal: true
tasks:
# Verify non-async jobs run in-process.
- debug: msg={{is_mitogen}}
- name: get process ID.
custom_python_detect_environment:
register: sync_proc1

View File

@ -3,12 +3,12 @@
# when generating temporary paths created by the runner.py code executing
# remotely.
#
- hosts: all
- name: integration/runner__remote_tmp.yml
hosts: all
any_errors_fatal: true
gather_facts: true
tasks:
- name: integration/runner__remote_tmp.yml
bash_return_paths:
- bash_return_paths:
register: output
- assert: