mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 20:07:37 -02:30
Further refine error message and update integration tests
Fix test with spaces pep8 failure More test tweaks Even more test fixes
This commit is contained in:
@@ -12,13 +12,16 @@
|
||||
- name: Check module fails with correct msg
|
||||
tower_label:
|
||||
name: "Test Label"
|
||||
organization: "Non existing org"
|
||||
organization: "Non_existing_org"
|
||||
state: present
|
||||
register: result
|
||||
ignore_errors: true
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "'Non existing org was not found on the Tower server' in result.msg"
|
||||
- "result is failed"
|
||||
- "result is not changed"
|
||||
- "'Non_existing_org' in result.msg"
|
||||
- "result.total_results == 0"
|
||||
|
||||
# TODO: Deleting labels doesn't seem to work currently
|
||||
|
||||
Reference in New Issue
Block a user