summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/collections/test_collection_meta.yml
blob: 22a00b2197c60e010d10271e7a09e060e6916381 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
- hosts: localhost
  gather_facts: no
  collections:
  - testns.testcoll
  vars:
    # redirect connection
    ansible_connection: testns.testcoll.redirected_local
  tasks:
  - assert:
      that: ('data' | testns.testcoll.testfilter) == 'data_via_testfilter_from_userdir'

  # redirect module (multiple levels)
  - multilevel1:
  # redirect action
  - uses_redirected_action:
  # redirect import (consumed via action)
  - uses_redirected_import:
  # redirect lookup
  - assert:
      that: lookup('formerly_core_lookup') == 'mylookup_from_user_dir'
  # redirect filter
  - assert:
      that: ('yes' | formerly_core_filter) == True
  # legacy filter should mask redirected
  - assert:
      that: ('' | formerly_core_masked_filter) == 'hello from overridden formerly_core_masked_filter'
  # redirect test
  - assert:
      that:
      - "'stuff' is formerly_core_test('tuf')"
      - "'hello override' is formerly_core_masked_test"
  # redirect module (formerly internal)
  - formerly_core_ping:
  # redirect module from collection (with subdir)
  - testns.testcoll.module_subdir.subdir_ping_module:
  # redirect module_utils plugin (consumed via module)
  - uses_core_redirected_mu:
  # deprecated module (issues warning)
  - deprecated_ping:
  # redirect module (internal alias)
  - aliased_ping:
  # redirect module (cycle detection, fatal)
#  - looped_ping:

  # removed module (fatal)
#  - dead_ping: