f0ec10dbc3
* Initial import of modified version of alikins' code * Add unit testing for new Role methods * Fix validate_arg_spec module for sanity test. Add test_include_role_fails.yml integration test from orig PR. * Add testing of suboptions * Use new ArgumentSpecValidator class instead of AnsibleModule * fix for roles with no tasks, use FQ name of new plugin * Add role dep warning
15 lines
342 B
Bash
Executable file
15 lines
342 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eux
|
|
|
|
# Various simple role scenarios
|
|
ansible-playbook test.yml -i ../../inventory "$@"
|
|
|
|
# More complex role test
|
|
ansible-playbook test_complex_role_fails.yml -i ../../inventory "$@"
|
|
|
|
# Test play level role will fail
|
|
set +e
|
|
ansible-playbook test_play_level_role_fails.yml -i ../../inventory "$@"
|
|
test $? -ne 0
|
|
set -e
|