From 89cee747d948b80e493cee79fa91ef836bd17065 Mon Sep 17 00:00:00 2001 From: Azul Date: Sun, 23 Feb 2014 10:46:39 +0000 Subject: [PATCH] replace test 'wget' package with 'hello' package --- test/integration/roles/test_apt/tasks/apt.yml | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/test/integration/roles/test_apt/tasks/apt.yml b/test/integration/roles/test_apt/tasks/apt.yml index 6ce8d2103f..151f531359 100644 --- a/test/integration/roles/test_apt/tasks/apt.yml +++ b/test/integration/roles/test_apt/tasks/apt.yml @@ -1,48 +1,48 @@ # UNINSTALL -- name: uninstall wget with apt - apt: pkg=wget state=absent purge=yes +- name: uninstall hello with apt + apt: pkg=hello state=absent purge=yes register: apt_result -- name: check wget with dpkg - shell: dpkg --get-selections | fgrep wget +- name: check hello with dpkg + shell: dpkg --get-selections | fgrep hello failed_when: False register: dpkg_result - debug: var=apt_result - debug: var=dpkg_result -- name: verify uninstallation of wget +- name: verify uninstallation of hello assert: - that: + that: - "'changed' in apt_result" - "dpkg_result.rc == 1" # UNINSTALL AGAIN -- name: uninstall wget with apt - apt: pkg=wget state=absent purge=yes +- name: uninstall hello with apt + apt: pkg=hello state=absent purge=yes register: apt_result - name: verify no change on re-uninstall assert: - that: + that: - "not apt_result.changed" # INSTALL -- name: install wget with apt - apt: name=wget state=present +- name: install hello with apt + apt: name=hello state=present register: apt_result -- name: check wget with dpkg - shell: dpkg --get-selections | fgrep wget +- name: check hello with dpkg + shell: dpkg --get-selections | fgrep hello failed_when: False register: dpkg_result - debug: var=apt_result - debug: var=dpkg_result -- name: verify installation of wget +- name: verify installation of hello assert: - that: + that: - "apt_result.changed" - "dpkg_result.rc == 0" @@ -53,17 +53,17 @@ - "'changed' in apt_result" - "'item' in apt_result" - "'stderr' in apt_result" - - "'stdout' in apt_result" - - "'stdout_lines' in apt_result" + - "'stdout' in apt_result" + - "'stdout_lines' in apt_result" # INSTALL AGAIN -- name: install wget with apt - apt: name=wget state=present +- name: install hello with apt + apt: name=hello state=present register: apt_result - name: verify no change on re-install assert: - that: + that: - "not apt_result.changed" - +