From f51e16014f9652d741638c14b7f40f3f5af54621 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Thu, 20 Feb 2014 15:01:23 -0500 Subject: [PATCH] apt re-run verification --- .../integration/roles/test_apt/tasks/apt.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests_new/integration/roles/test_apt/tasks/apt.yml b/tests_new/integration/roles/test_apt/tasks/apt.yml index 85e002e101b..6ce8d2103f4 100644 --- a/tests_new/integration/roles/test_apt/tasks/apt.yml +++ b/tests_new/integration/roles/test_apt/tasks/apt.yml @@ -17,6 +17,16 @@ - "'changed' in apt_result" - "dpkg_result.rc == 1" +# UNINSTALL AGAIN +- name: uninstall wget with apt + apt: pkg=wget state=absent purge=yes + register: apt_result + +- name: verify no change on re-uninstall + assert: + that: + - "not apt_result.changed" + # INSTALL - name: install wget with apt apt: name=wget state=present @@ -45,3 +55,15 @@ - "'stderr' in apt_result" - "'stdout' in apt_result" - "'stdout_lines' in apt_result" + +# INSTALL AGAIN +- name: install wget with apt + apt: name=wget state=present + register: apt_result + +- name: verify no change on re-install + assert: + that: + - "not apt_result.changed" + +