You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/win_psrepository_info/tasks/empty.yml

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