Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/test_a_module/runme.yml

raw
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 - hosts: localhost
7 tasks:
8 - name: Test a_module
9 assert:
10 that:
11 # Modules/actions that do not exist
12 - "'foo_bar' is not community.general.a_module"
13 - "'foo.bar.baz' is not community.general.a_module"
14 # Short name and FQCN for builtin and other collections
15 - "'file' is community.general.a_module"
16 - "'set_fact' is community.general.a_module"
17 - "'ansible.builtin.file' is community.general.a_module"
18 - "'ansible.builtin.set_fact' is community.general.a_module"
19 - "'ansible.builtin.foo_bar' is not community.general.a_module"
20 - "'community.crypto.acme_certificate' is community.general.a_module"
21 - "'community.crypto.openssl_privatekey_pipe' is community.general.a_module"
22 - "'community.crypto.foo_bar' is not community.general.a_module"
23 # Modules from this collection (that exist or not)
24 - "'community.general.ufw' is community.general.a_module"
25 - "'community.general.foooo_really_does_not_exist' is not community.general.a_module"
26 # Local module
27 - "'local_module' is community.general.a_module"
28 # Local collection module (that exist or not)
29 - "'testns.testcoll.collection_module' is community.general.a_module"
30 - "'testns.testcoll.foobar' is not community.general.a_module"
31
32 - name: Test a_module in case of routing
33 assert:
34 that:
35 # Redirected module
36 - "'ufw' is community.general.a_module"
37 # Redirected module where target collection does not exist
38 # (the target collection must not have been installed in CI!)
39 - "'onyx_pfc_interface' is not community.general.a_module"
40 # Tombstoned module
41 - "'community.general.docker_image_facts' is not community.general.a_module"