Skip to content

Commit

Permalink
dnf: add environment upgrade test
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrizek authored and abadger committed Sep 11, 2017
1 parent cfaea8a commit 0daacdc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/integration/targets/dnf/tasks/dnf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 0daacdc

Please sign in to comment.