summaryrefslogtreecommitdiff
path: root/test/integration/targets/win_psrepository_info/tasks/empty.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/win_psrepository_info/tasks/empty.yml')
-rw-r--r--test/integration/targets/win_psrepository_info/tasks/empty.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/integration/targets/win_psrepository_info/tasks/empty.yml b/test/integration/targets/win_psrepository_info/tasks/empty.yml
new file mode 100644
index 0000000000..9bc6d4c644
--- /dev/null
+++ b/test/integration/targets/win_psrepository_info/tasks/empty.yml
@@ -0,0 +1,19 @@
+# This file is part of Ansible
+
+# Copyright: (c) 2020, Brian Scholer <@briantist>
+# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
+---
+- name: Tests against the empty set of repositories
+ block:
+ - name: Get repository info {{ suffix }}
+ win_psrepository_info:
+ register: repo_info
+
+ - name: Assert that the correct structure is returned {{ suffix }}
+ assert:
+ that:
+ - repo_info.repositories is defined
+ - repo_info.repositories is sequence()
+ - repo_info.repositories | length == 0
+ # block
+ check_mode: "{{ run_check_mode }}"