From baec8cf95ac19e03336463ffe0bb5d49a2d008db Mon Sep 17 00:00:00 2001 From: Martin Krizek Date: Mon, 11 Sep 2017 19:16:49 +0200 Subject: [PATCH] dnf: add environment upgrade test (cherry picked from commit 0daacdccf82e5e69351a5bafc42a44e93b2c6947) --- test/integration/targets/dnf/tasks/dnf.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test/integration/targets/dnf/tasks/dnf.yml b/test/integration/targets/dnf/tasks/dnf.yml index a3496560ff8..174f8a4d7ef 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"