From c267e1906ea0728caa92666e7edaeb99e7df759c Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Sat, 31 Oct 2015 13:00:53 -0400 Subject: [PATCH] removed invocation from tests as it is only available on very very verbose mode --- test/integration/roles/test_apt/tasks/apt.yml | 1 - .../roles/test_good_parsing/tasks/main.yml | 1 - .../integration/roles/test_subversion/tasks/main.yml | 12 ++++-------- test/integration/roles/test_yum/tasks/yum.yml | 11 +++++------ 4 files changed, 9 insertions(+), 16 deletions(-) diff --git a/test/integration/roles/test_apt/tasks/apt.yml b/test/integration/roles/test_apt/tasks/apt.yml index c02a1bd4a09..5d331b192da 100644 --- a/test/integration/roles/test_apt/tasks/apt.yml +++ b/test/integration/roles/test_apt/tasks/apt.yml @@ -63,7 +63,6 @@ - name: verify apt module outputs assert: that: - - "'invocation' in apt_result" - "'changed' in apt_result" - "'stderr' in apt_result" - "'stdout' in apt_result" diff --git a/test/integration/roles/test_good_parsing/tasks/main.yml b/test/integration/roles/test_good_parsing/tasks/main.yml index ed4a91d5603..46ec2db4a9e 100644 --- a/test/integration/roles/test_good_parsing/tasks/main.yml +++ b/test/integration/roles/test_good_parsing/tasks/main.yml @@ -162,7 +162,6 @@ - name: assert the task with variable module name ran assert: that: - - result.invocation.module_name == "debug" - result.msg == "this should be debugged" - name: test conditional includes diff --git a/test/integration/roles/test_subversion/tasks/main.yml b/test/integration/roles/test_subversion/tasks/main.yml index 796f2727a59..8b28688a9e8 100644 --- a/test/integration/roles/test_subversion/tasks/main.yml +++ b/test/integration/roles/test_subversion/tasks/main.yml @@ -41,15 +41,11 @@ # FIXME: the before/after logic here should be fixed to make them hashes, see GitHub 6078 # looks like this: { # "after": [ -# "Revision: 9", +# "Revision: 9", # "URL: https://github.com/jimi-c/test_role" -# ], -# "before": null, -# "changed": true, -# "invocation": { -# "module_args": "repo=https://github.com/jimi-c/test_role dest=~/ansible_testing/svn", -# "module_name": "subversion" -# }, +# ], +# "before": null, +# "changed": true, # "item": "" # } diff --git a/test/integration/roles/test_yum/tasks/yum.yml b/test/integration/roles/test_yum/tasks/yum.yml index 923717552b5..f6acbfef775 100644 --- a/test/integration/roles/test_yum/tasks/yum.yml +++ b/test/integration/roles/test_yum/tasks/yum.yml @@ -30,7 +30,7 @@ - name: verify uninstallation of sos assert: - that: + that: - "yum_result.rc == 0" - "rpm_result.rc == 1" @@ -41,7 +41,7 @@ - name: verify no change on re-uninstall assert: - that: + that: - "not yum_result.changed" # INSTALL @@ -59,7 +59,7 @@ - name: verify installation of sos assert: - that: + that: - "yum_result.rc == 0" - "yum_result.changed" - "rpm_result.rc == 0" @@ -67,7 +67,6 @@ - name: verify yum module outputs assert: that: - - "'invocation' in yum_result" - "'changed' in yum_result" - "'msg' in yum_result" - "'rc' in yum_result" @@ -80,9 +79,9 @@ - name: verify no change on second install assert: - that: + that: - "not yum_result.changed" - + # Multiple packages - name: uninstall sos and sharutils yum: name=sos,sharutils state=removed