From b820d024fc3bf7029954d28b9aa05702a42fc6d3 Mon Sep 17 00:00:00 2001 From: Brendan Almonte Date: Wed, 24 May 2017 16:04:38 -0700 Subject: Add alternative syntax for upgrading all installed packages via apt (#25007) syntax: 'apt: name=* state=latest' feature #24189 --- test/integration/targets/apt/tasks/apt.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/integration/targets/apt') diff --git a/test/integration/targets/apt/tasks/apt.yml b/test/integration/targets/apt/tasks/apt.yml index d293f845fa..7aab018ec2 100644 --- a/test/integration/targets/apt/tasks/apt.yml +++ b/test/integration/targets/apt/tasks/apt.yml @@ -148,3 +148,15 @@ assert: that: - "dpkg_force.changed" + +# NEGATIVE: upgrade all packages while providing additional packages to install +- name: provide additional packages to install while upgrading all installed packages + apt: pkg=*,test state=latest + ignore_errors: True + register: apt_result + +- name: verify failure of upgrade packages and install + assert: + that: + - "not apt_result.changed" + - "apt_result.failed" -- cgit v1.2.1