summaryrefslogtreecommitdiff
path: root/test/integration/targets/dpkg_selections/tasks/dpkg_selections.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/dpkg_selections/tasks/dpkg_selections.yaml')
-rw-r--r--test/integration/targets/dpkg_selections/tasks/dpkg_selections.yaml12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/integration/targets/dpkg_selections/tasks/dpkg_selections.yaml b/test/integration/targets/dpkg_selections/tasks/dpkg_selections.yaml
index 080db262..016d7716 100644
--- a/test/integration/targets/dpkg_selections/tasks/dpkg_selections.yaml
+++ b/test/integration/targets/dpkg_selections/tasks/dpkg_selections.yaml
@@ -87,3 +87,15 @@
apt:
name: hello
state: absent
+
+- name: Try to select non-existent package
+ dpkg_selections:
+ name: kernel
+ selection: hold
+ ignore_errors: yes
+ register: result
+
+- name: Check that module fails for non-existent package
+ assert:
+ that:
+ - "'Failed to find package' in result.msg"