diff options
author | Brian Scholer <1260690+briantist@users.noreply.github.com> | 2020-02-27 01:05:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 16:05:37 +1000 |
commit | 9afe87139a0916a42335d56c55ed3f3523e4168e (patch) | |
tree | 4eee6935e61afb60ef9af6cec7df28bbd26f8365 /test/integration/targets/win_psrepository_info/tasks/empty.yml | |
parent | 10feb24870bee04d845c21367d695385f01885db (diff) | |
download | ansible-9afe87139a0916a42335d56c55ed3f3523e4168e.tar.gz |
Add win_psrepository_info module (#67594)
* Add win_psrepository_info module
* Change return type
* Add tests for win_psrepository_info
Diffstat (limited to 'test/integration/targets/win_psrepository_info/tasks/empty.yml')
-rw-r--r-- | test/integration/targets/win_psrepository_info/tasks/empty.yml | 19 |
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 }}" |