Check for no change in test_yum
This commit is contained in:
parent
f51e16014f
commit
8336cd7fa6
1 changed files with 22 additions and 1 deletions
|
@ -17,6 +17,16 @@
|
||||||
- "yum_result.rc == 0"
|
- "yum_result.rc == 0"
|
||||||
- "rpm_result.rc == 1"
|
- "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
|
# INSTALL
|
||||||
- name: install sos
|
- name: install sos
|
||||||
yum: name=sos state=present
|
yum: name=sos state=present
|
||||||
|
@ -47,3 +57,14 @@
|
||||||
- "'rc' in yum_result"
|
- "'rc' in yum_result"
|
||||||
- "'results' 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"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue