summaryrefslogtreecommitdiff
path: root/test/integration/targets/yum
diff options
context:
space:
mode:
authorMartin Krizek <martin.krizek@gmail.com>2017-08-14 14:38:51 +0200
committerGitHub <noreply@github.com>2017-08-14 14:38:51 +0200
commita01c38756d5b567630280ea0aa286ef7c42b674b (patch)
tree86f966be4bde6a32c300ab55e47c756927d8fe4c /test/integration/targets/yum
parent000df2709d92003a16d2f03a80d66724b74d6485 (diff)
downloadansible-a01c38756d5b567630280ea0aa286ef7c42b674b.tar.gz
Add one more yum group integration test and clean up (#28156)
Diffstat (limited to 'test/integration/targets/yum')
-rw-r--r--test/integration/targets/yum/tasks/yum.yml31
1 files changed, 22 insertions, 9 deletions
diff --git a/test/integration/targets/yum/tasks/yum.yml b/test/integration/targets/yum/tasks/yum.yml
index f212b2661b..43b468d0a9 100644
--- a/test/integration/targets/yum/tasks/yum.yml
+++ b/test/integration/targets/yum/tasks/yum.yml
@@ -8,9 +8,6 @@
failed_when: False
register: rpm_result
-- debug: var=yum_result
-- debug: var=rpm_result
-
- name: verify uninstallation of sos
assert:
that:
@@ -37,9 +34,6 @@
failed_when: False
register: rpm_result
-- debug: var=yum_result
-- debug: var=rpm_result
-
- name: verify installation of sos
assert:
that:
@@ -191,9 +185,6 @@
failed_when: False
register: rpm_result
-- debug: var=yum_result
-- debug: var=rpm_result
-
- name: verify installation of sos
assert:
that:
@@ -256,6 +247,28 @@
- "'rc' in yum_result"
- "'results' in yum_result"
+- name: install the group again but also with a package that is not yet installed
+ yum:
+ name:
+ - "@Development Tools"
+ - sos
+ state: present
+ register: yum_result
+
+- name: verify nothing changed
+ assert:
+ that:
+ - "yum_result.rc == 0"
+ - "yum_result.changed"
+
+- name: verify yum module outputs
+ assert:
+ that:
+ - "'changed' in yum_result"
+ - "'msg' in yum_result"
+ - "'rc' in yum_result"
+ - "'results' in yum_result"
+
- name: try to install non existing group
yum:
name: "@non-existing-group"