From 8336cd7fa6a8ae1250d97f928b805ae815130eb2 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Thu, 20 Feb 2014 15:07:54 -0500 Subject: [PATCH] Check for no change in test_yum --- .../integration/roles/test_yum/tasks/yum.yml | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/tests_new/integration/roles/test_yum/tasks/yum.yml b/tests_new/integration/roles/test_yum/tasks/yum.yml index 80021cf2f6..7c0b089ace 100644 --- a/tests_new/integration/roles/test_yum/tasks/yum.yml +++ b/tests_new/integration/roles/test_yum/tasks/yum.yml @@ -17,6 +17,16 @@ - "yum_result.rc == 0" - "rpm_result.rc == 1" +# UNINSTALL AGAIN +- name: uninstall sos again + yum: name=sos state=removed + register: yum_result + +- name: verify no change on re-uninstall + assert: + that: + - "not yum_result.changed" + # INSTALL - name: install sos yum: name=sos state=present @@ -46,4 +56,15 @@ - "'msg' in yum_result" - "'rc' in yum_result" - "'results' in yum_result" - + +# INSTALL AGAIN +- name: install sos again + yum: name=sos state=present + register: yum_result + +- name: verify no change on second install + assert: + that: + - "not yum_result.changed" + +