diff options
author | Ryan Petrello <lists@ryanpetrello.com> | 2018-03-16 13:28:19 -0400 |
---|---|---|
committer | Sam Doran <sdoran@ansible.com> | 2018-03-16 13:28:19 -0400 |
commit | 872a7b4a7a54133f8a060d6fc6050d195d08c780 (patch) | |
tree | e390add2cce37c121ee09975319c7a9f15cd8dbc /test/integration/targets/tower_job_wait/tasks/main.yml | |
parent | 594840c1d6004f826586c632f4d29e455a58c8c3 (diff) | |
download | ansible-872a7b4a7a54133f8a060d6fc6050d195d08c780.tar.gz |
add some Tower module integration tests (and fix a bug or two) (#37421)
* add additional test coverage for tower modules
* add test coverage for the tower_credential module
* add test coverage for the tower_user module
* fix a bug in py3 for tower_credential when ssh_key_data is specified
* add test coverage for tower_host, tower_label, and tower_project
* add test coverage for tower_inventory and tower_job_template
* add more test coverage for tower modules
- tower_job_launch
- tower_job_list
- tower_job_wait
- tower_job_cancel
* add a check mode/version assertion for tower module integration tests
* add test coverage for the tower_role module
* add test coverage for the tower_group module
* add more integration test edge cases for various tower modules
* give the job_wait module more time before failing
* randomize passwords in the tower_user and tower_group tests
Diffstat (limited to 'test/integration/targets/tower_job_wait/tasks/main.yml')
-rw-r--r-- | test/integration/targets/tower_job_wait/tasks/main.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/integration/targets/tower_job_wait/tasks/main.yml b/test/integration/targets/tower_job_wait/tasks/main.yml new file mode 100644 index 0000000000..904e6a5169 --- /dev/null +++ b/test/integration/targets/tower_job_wait/tasks/main.yml @@ -0,0 +1,16 @@ +- name: Launch a Job Template + tower_job_launch: + job_template: "Demo Job Template" + inventory: "Demo Inventory" + credential: "Demo Credential" + register: job + +- assert: + that: + - "job is changed" + - "job.status == 'pending'" + +- name: Wait for the Job to finish + tower_job_wait: + job_id: "{{ job.id }}" + timeout: 60 |