mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
cd27982959
* fixing the exception import from tower modules * Adding tests for checking tower modules are failing with correct msg * fixed failing tests * fixed failing test in tower_team
23 lines
643 B
YAML
23 lines
643 B
YAML
- name: Launch a Job Template
|
|
tower_job_launch:
|
|
job_template: "Demo Job Template"
|
|
inventory: "Demo Inventory"
|
|
credential: "Demo Credential"
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- "result is changed"
|
|
- "result.status == 'pending'"
|
|
|
|
- name: Check module fails with correct msg
|
|
tower_job_launch:
|
|
job_template: "Non Existing Job Template"
|
|
inventory: "Test Inventory"
|
|
credential: "Test Credential"
|
|
register: result
|
|
ignore_errors: true
|
|
|
|
- assert:
|
|
that:
|
|
- "result.msg =='Unable to launch job, job_template/Non Existing Job Template was not found: The requested object could not be found.'"
|