diff options
author | Martin Krizek <martin.krizek@gmail.com> | 2017-09-11 19:16:49 +0200 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2017-09-11 11:45:10 -0700 |
commit | 0daacdccf82e5e69351a5bafc42a44e93b2c6947 (patch) | |
tree | e2ad24087f9a7138fc9ed3e1b1026e831f1c7ff5 /test/integration/targets/dnf | |
parent | cfaea8a05348326ab40c95754b218dd8814c8e2d (diff) | |
download | ansible-0daacdccf82e5e69351a5bafc42a44e93b2c6947.tar.gz |
dnf: add environment upgrade test
Diffstat (limited to 'test/integration/targets/dnf')
-rw-r--r-- | test/integration/targets/dnf/tasks/dnf.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/integration/targets/dnf/tasks/dnf.yml b/test/integration/targets/dnf/tasks/dnf.yml index a3496560ff..174f8a4d7e 100644 --- a/test/integration/targets/dnf/tasks/dnf.yml +++ b/test/integration/targets/dnf/tasks/dnf.yml @@ -390,3 +390,23 @@ that: - "'changed' in dnf_result" - "'msg' in dnf_result" + +# ENVIRONMENT UPGRADE +# see commit de299ef77c03a64a8f515033a79ac6b7db1bc710 +- name: install Web Server environment + dnf: + name: "@Web Server" + state: latest + register: dnf_result + +- name: verify installation of the environment + assert: + that: + - "not dnf_result.failed | default(False)" + - "dnf_result.changed" + +- name: verify dnf module outputs + assert: + that: + - "'changed' in dnf_result" + - "'results' in dnf_result" |