ansible/test/integration/targets/win_psrepository_info/tasks/empty.yml
Brian Scholer 9afe87139a
Add win_psrepository_info module (#67594)
* Add win_psrepository_info module

* Change return type

* Add tests for win_psrepository_info
2020-02-27 16:05:37 +10:00

19 lines
631 B
YAML

# 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 }}"