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:
Alan Rominger
2020-09-09 16:41:59 -04:00
parent a73323f3d6
commit 2e1f5cebb7
11 changed files with 63 additions and 38 deletions

View File

@@ -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