diff options
author | jainnikhil30 <jainnikhil30@gmail.com> | 2019-01-09 20:01:21 +0530 |
---|---|---|
committer | René Moser <mail@renemoser.net> | 2019-01-09 15:31:21 +0100 |
commit | cd279829598e83a7bebaaf294253a57db3ad7931 (patch) | |
tree | 48eec050c42531e5732f6bc9c8e45e673f189f0f /test/integration/targets/tower_label | |
parent | d84e21dfc86e3a5a86f5c581069e11e8ed03254c (diff) | |
download | ansible-cd279829598e83a7bebaaf294253a57db3ad7931.tar.gz |
Fixing exception import for tower modules (#50447)
* 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
Diffstat (limited to 'test/integration/targets/tower_label')
-rw-r--r-- | test/integration/targets/tower_label/tasks/main.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/integration/targets/tower_label/tasks/main.yml b/test/integration/targets/tower_label/tasks/main.yml index f580c7c690..f86712b96a 100644 --- a/test/integration/targets/tower_label/tasks/main.yml +++ b/test/integration/targets/tower_label/tasks/main.yml @@ -4,4 +4,16 @@ organization: Default state: present +- name: Check module fails with correct msg + tower_label: + name: "Test Label" + organization: "Non existing org" + state: present + register: result + ignore_errors: true + +- assert: + that: + - "result.msg == 'Failed to update label, organization not found: The requested object could not be found.'" + # TODO: Deleting labels doesn't seem to work currently |