"examples": start adding structure to regression tests.
parent
95ca29262a
commit
047458a8b3
@ -1,2 +1,2 @@
|
||||
modules/binary_producing_junk
|
||||
modules/binary_producing_json
|
||||
modules/custom_binary_producing_junk
|
||||
modules/custom_binary_producing_json
|
||||
|
@ -1,4 +1,4 @@
|
||||
|
||||
all: \
|
||||
modules/binary_producing_junk \
|
||||
modules/binary_producing_json
|
||||
modules/custom_binary_producing_junk \
|
||||
modules/custom_binary_producing_json
|
||||
|
@ -1,11 +1,7 @@
|
||||
---
|
||||
|
||||
# Verify the behaviour of _low_level_execute_command().
|
||||
|
||||
- hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
|
||||
# "echo -en" to test we actually hit bash shell too.
|
||||
- name: Run raw module without sudo
|
||||
raw: 'echo -en $((1 + 1))'
|
@ -1,5 +0,0 @@
|
||||
#!/bin/bash
|
||||
exec >/tmp/derp
|
||||
echo "$1"
|
||||
cat "$1"
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,6 +0,0 @@
|
||||
---
|
||||
|
||||
- hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- bin_bash_module:
|
@ -0,0 +1,27 @@
|
||||
# This must be run with FOO=2 set in the environment.
|
||||
|
||||
#
|
||||
# Test sudo_flags respects -E.
|
||||
#
|
||||
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: "without -E"
|
||||
become: true
|
||||
shell: "echo $FOO"
|
||||
register: out
|
||||
|
||||
- assert:
|
||||
that: "out.stdout == ''"
|
||||
|
||||
- hosts: all
|
||||
become_flags: -E
|
||||
tasks:
|
||||
- name: "with -E"
|
||||
become: true
|
||||
shell: "set"
|
||||
register: out2
|
||||
|
||||
- debug: msg={{out2}}
|
||||
- assert:
|
||||
that: "out2.stdout == '2'"
|
@ -1,9 +1,5 @@
|
||||
---
|
||||
|
||||
- hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
|
||||
#
|
||||
# delegate_to, no sudo
|
||||
#
|
@ -0,0 +1,9 @@
|
||||
- import_playbook: runner__builtin_command_module.yml
|
||||
- import_playbook: runner__custom_bash_old_style_module.yml
|
||||
- import_playbook: runner__custom_bash_want_json_module.yml
|
||||
- import_playbook: runner__custom_binary_producing_json.yml
|
||||
- import_playbook: runner__custom_binary_producing_junk.yml
|
||||
- import_playbook: runner__custom_binary_single_null.yml
|
||||
- import_playbook: runner__custom_python_json_args_module.yml
|
||||
- import_playbook: runner__custom_python_new_style_module.yml
|
||||
- import_playbook: runner__custom_python_want_json_module.yml
|
@ -1,8 +1,5 @@
|
||||
---
|
||||
|
||||
- hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: "Run hostname"
|
||||
command: hostname
|
||||
with_sequence: start=1 end=100
|
||||
with_sequence: start=1 end={{end|default(100)}}
|
@ -0,0 +1,5 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- custom_bash_old_style_module:
|
||||
foo: true
|
||||
with_sequence: start=1 end={{end|default(100)}}
|
@ -0,0 +1,5 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- custom_bash_want_json_module:
|
||||
foo: true
|
||||
with_sequence: start=1 end={{end|default(100)}}
|
@ -0,0 +1,5 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- custom_binary_producing_json:
|
||||
foo: true
|
||||
with_sequence: start=1 end={{end|default(100)}}
|
@ -0,0 +1,6 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- custom_binary_producing_junk:
|
||||
foo: true
|
||||
with_sequence: start=1 end={{end|default(100)}}
|
||||
ignore_errors: true
|
@ -0,0 +1,6 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- custom_binary_single_null:
|
||||
foo: true
|
||||
with_sequence: start=1 end={{end|default(100)}}
|
||||
ignore_errors: true
|
@ -0,0 +1,5 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- custom_python_json_args_module:
|
||||
foo: true
|
||||
with_sequence: start=1 end={{end|default(100)}}
|
@ -0,0 +1,5 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- custom_python_new_style_module:
|
||||
foo: true
|
||||
with_sequence: start=1 end={{end|default(100)}}
|
@ -0,0 +1,5 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- custom_python_want_json_module:
|
||||
foo: true
|
||||
with_sequence: start=1 end={{end|default(100)}}
|
Loading…
Reference in New Issue