Skip to content

Commit 0104ab6

Browse files
committed
test
1 parent 94ec8e6 commit 0104ab6

File tree

188 files changed

+38003
-2208
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

188 files changed

+38003
-2208
lines changed

tests/fixtures/integration/actions/collections/test_direct_interactive_ee.py/test/13.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"compared_fixture": true
99
},
1010
"output": [
11-
"******** ERROR: TMUX EXEC TIMEOUT @ 300.0846390229999s @ 2025-09-10T12:59:06.728527+00:00 ********",
11+
"******** ERROR: TMUX EXEC TIMEOUT @ 300.08727891900344s @ 2025-09-11T11:30:36.365270+00:00 ********",
1212
" Name Version Shadowed Type Path",
1313
"0│ansible.builtin 2.18.7 False contained /usr/local/lib/python3.XX/site-packages/ansible",
1414
"1│company_name.coll_1 1.0.0 False bind_mount FIXTURES_COLLECTION_DIR/test_direct_interactive_ee.py/collections/ansible_collections/company_name/coll_1",

tests/fixtures/integration/actions/collections/test_direct_interactive_ee.py/test/14.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"compared_fixture": true
99
},
1010
"output": [
11-
"******** ERROR: TMUX EXEC TIMEOUT @ 300.00302101299167s @ 2025-09-10T13:04:06.749934+00:00 ********",
11+
"******** ERROR: TMUX EXEC TIMEOUT @ 300.0777964349836s @ 2025-09-11T11:35:36.450414+00:00 ********",
1212
" Name Version Shadowed Type Path",
1313
"0│ansible.builtin 2.18.7 False contained /usr/local/lib/python3.XX/site-packages/ansible",
1414
"1│company_name.coll_1 1.0.0 False bind_mount FIXTURES_COLLECTION_DIR/test_direct_interactive_ee.py/collections/ansible_collections/company_name/coll_1",

tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"output": [
1515
" Name Version Shadowed Type Path",
16-
"0│ansible.builtin 2.17.6 False contained /usr/local/lib/python3.XX/site-packages/ansible",
16+
"0│ansible.builtin 2.18.7 False contained /usr/local/lib/python3.XX/site-packages/ansible",
1717
"1│company_name.coll_1 1.0.0 False bind_mount /tmp/collections_to_volmount/ansible_collections/company_name/coll_1",
1818
"2│company_name.coll_2 2.0.0 False bind_mount /tmp/collections_to_volmount/ansible_collections/company_name/coll_2",
1919
"^b/PgUp page up ^f/PgDn page down ↑↓ scroll esc back [0-9] goto :help help"

tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/1.json

Lines changed: 158 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,163 @@
88
"compared_fixture": true
99
},
1010
"output": [
11-
" Company name.coll 1 Type Added Deprecated Description",
12-
"0│filter_1 filter 1.0.0 False This is test filter plugin",
13-
"1│lookup_1 lookup 1.0.0 False This is test lookup plugin",
14-
"2│mod_1 module 1.0.0 False This is a test module",
15-
"3│role_full role Unknown Unknown Complete sample role.",
16-
"4│role_minimum role Unknown Unknown Minimal sample role.",
17-
"^b/PgUp page up ^f/PgDn page down ↑↓ scroll esc back [0-9] goto :help help"
11+
"Image: ansible.builtin.add_host",
12+
"Description: Add a host (and alternatively a group) to the ansible-playbook in-memory inventory",
13+
" 0│---",
14+
" 1│additional_information: {}",
15+
" 2│collection_info:",
16+
" 3│ name: ansible.builtin",
17+
" 4│ path: /usr/local/lib/python3.XX/site-packages/ansible",
18+
" 5│ shadowed_by: []",
19+
" 6│ version: 2.18.7",
20+
" 7│doc:",
21+
" 8│ attributes:",
22+
" 9│ action:",
23+
" 10│ description: Indicates this has a corresponding action plugin so some parts",
24+
" 11│ of the options can be executed on the controller",
25+
" 12│ support: full",
26+
" 13│ async:",
27+
" 14│ description: Supports being used with the C(async) keyword",
28+
" 15│ support: none",
29+
" 16│ become:",
30+
" 17│ description: Is usable alongside become keywords",
31+
" 18│ support: none",
32+
" 19│ bypass_host_loop:",
33+
" 20│ description:",
34+
" 21│ - Forces a 'global' task that does not execute per host, this bypasses per host",
35+
" 22│ templating and serial, throttle and other loop considerations",
36+
" 23│ - Conditionals will work as if C(run_once) is being used, variables used will",
37+
" 24│ be from the first available host",
38+
" 25│ - This action will not work normally outside of lockstep strategies",
39+
" 26│ support: full",
40+
" 27│ bypass_task_loop:",
41+
" 28│ description: These tasks ignore the C(loop) and C(with_) keywords",
42+
" 29│ support: none",
43+
" 30│ check_mode:",
44+
" 31│ description: Can run in check_mode and return changed status prediction without",
45+
" 32│ modifying target, if not supported the action will be skipped.",
46+
" 33│ details: While this makes no changes to target systems the 'in memory' inventory",
47+
" 34│ will still be altered",
48+
" 35│ support: partial",
49+
" 36│ connection:",
50+
" 37│ description: Uses the target's configured connection information to execute",
51+
" 38│ code on it",
52+
" 39│ support: none",
53+
" 40│ core:",
54+
" 41│ description: This is a 'core engine' feature and is not implemented like most",
55+
" 42│ task actions, so it is not overridable in any way via the plugin system.",
56+
" 43│ details: While parts of this action are implemented in core, other parts are",
57+
" 44│ still available as normal plugins and can be partially overridden",
58+
" 45│ support: partial",
59+
" 46│ delegation:",
60+
" 47│ description: Can be used in conjunction with delegate_to and related keywords",
61+
" 48│ support: none",
62+
" 49│ diff_mode:",
63+
" 50│ description: Will return details on what has changed (or possibly needs changing",
64+
" 51│ in check_mode), when in diff mode",
65+
" 52│ support: none",
66+
" 53│ ignore_conditional:",
67+
" 54│ description: The action is not subject to conditional execution so it will ignore",
68+
" 55│ the C(when:) keyword",
69+
" 56│ support: none",
70+
" 57│ platform:",
71+
" 58│ description: Target OS/families that can be operated against",
72+
" 59│ platforms: all",
73+
" 60│ support: N/A",
74+
" 61│ tags:",
75+
" 62│ description: Allows for the 'tags' keyword to control the selection of this",
76+
" 63│ action for execution",
77+
" 64│ support: full",
78+
" 65│ until:",
79+
" 66│ description: Denotes if this action obeys until/retry/poll keywords",
80+
" 67│ support: none",
81+
" 68│ author:",
82+
" 69│ - Ansible Core Team",
83+
" 70│ - Seth Vidal (@skvidal)",
84+
" 71│ description:",
85+
" 72│ - Use variables to create new hosts and groups in inventory for use in later plays",
86+
" 73│ of the same playbook.",
87+
" 74│ - Takes variables so you can define the new hosts more fully.",
88+
" 75│ - This module is also supported for Windows targets.",
89+
" 76│ module: add_host",
90+
" 77│ notes:",
91+
" 78│ - The alias O(host) of the parameter O(name) is only available on Ansible 2.4 and",
92+
" 79│ newer.",
93+
" 80│ - Since Ansible 2.4, the C(inventory_dir) variable is now set to V(None) instead",
94+
" 81│ of the 'global inventory source', because you can now have multiple sources. An",
95+
" 82│ example was added that shows how to partially restore the previous behaviour.",
96+
" 83│ - Though this module does not change the remote host, we do provide C(changed) status",
97+
" 84│ as it can be useful for those trying to track inventory changes.",
98+
" 85│ - The hosts added will not bypass the C(--limit) from the command line, so both",
99+
" 86│ of those need to be in agreement to make them available as play targets. They",
100+
" 87│ are still available from hostvars and for delegation as a normal part of the inventory.",
101+
" 88│ options:",
102+
" 89│ groups:",
103+
" 90│ aliases:",
104+
" 91│ - group",
105+
" 92│ - groupname",
106+
" 93│ description:",
107+
" 94│ - The groups to add the hostname to.",
108+
" 95│ elements: str",
109+
" 96│ type: list",
110+
" 97│ name:",
111+
" 98│ aliases:",
112+
" 99│ - host",
113+
"100│ - hostname",
114+
"101│ description:",
115+
"102│ - The hostname/ip of the host to add to the inventory, can include a colon and",
116+
"103│ a port number.",
117+
"104│ required: true",
118+
"105│ type: str",
119+
"106│ seealso:",
120+
"107│ - module: ansible.builtin.group_by",
121+
"108│ short_description: Add a host (and alternatively a group) to the ansible-playbook",
122+
"109│ in-memory inventory",
123+
"110│ version_added: '0.9'",
124+
"111│ version_added_collection: ansible.builtin",
125+
"112│examples: |-",
126+
"113│ - name: Add host to group 'just_created' with variable foo=42",
127+
"114│ ansible.builtin.add_host:",
128+
"115│ name: '{{ ip_from_ec2 }}'",
129+
"116│ groups: just_created",
130+
"117│ foo: 42",
131+
"118│",
132+
"119│ - name: Add host to multiple groups",
133+
"120│ ansible.builtin.add_host:",
134+
"121│ hostname: '{{ new_ip }}'",
135+
"122│ groups:",
136+
"123│ - group1",
137+
"124│ - group2",
138+
"125│",
139+
"126│ - name: Add a host with a non-standard port local to your machines",
140+
"127│ ansible.builtin.add_host:",
141+
"128│ name: '{{ new_ip }}:{{ new_port }}'",
142+
"129│",
143+
"130│ - name: Add a host alias that we reach through a tunnel (Ansible 1.9 and older)",
144+
"131│ ansible.builtin.add_host:",
145+
"132│ hostname: '{{ new_ip }}'",
146+
"133│ ansible_ssh_host: '{{ inventory_hostname }}'",
147+
"134│ ansible_ssh_port: '{{ new_port }}'",
148+
"135│",
149+
"136│ - name: Add a host alias that we reach through a tunnel (Ansible 2.0 and newer)",
150+
"137│ ansible.builtin.add_host:",
151+
"138│ hostname: '{{ new_ip }}'",
152+
"139│ ansible_host: '{{ inventory_hostname }}'",
153+
"140│ ansible_port: '{{ new_port }}'",
154+
"141│",
155+
"142│ - name: Ensure inventory vars are set to the same value as the inventory_hostname has (close to pre Ansible 2.4 behaviour)",
156+
"143│ ansible.builtin.add_host:",
157+
"144│ hostname: charlie",
158+
"145│ inventory_dir: '{{ inventory_dir }}'",
159+
"146│",
160+
"147│ - name: Add all hosts running this playbook to the done group",
161+
"148│ ansible.builtin.add_host:",
162+
"149│ name: '{{ item }}'",
163+
"150│ groups: done",
164+
"151│ loop: \"{{ ansible_play_hosts }}\"",
165+
"152│full_name: ansible.builtin.add_host",
166+
"153│metadata: null",
167+
"154│returndocs: null",
168+
"^b/PgUp page up ^f/PgDn page down ↑↓ scroll esc back - previous + next [0-9] goto :help help"
18169
]
19170
}

tests/fixtures/integration/actions/collections/test_direct_interactive_ee_with_volmount.py/test/10.json

Lines changed: 34 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,41 @@
88
"compared_fixture": true
99
},
1010
"output": [
11-
"Image: company_name.coll_1.role_minimum",
12-
"Description: Minimal sample role.",
11+
"Image: ansible.builtin.any",
12+
"Description: is any condition in a list true",
1313
" 0│---",
14-
" 1│argument_specs: {}",
15-
" 2│argument_specs_path: ''",
16-
" 3│defaults: {}",
17-
" 4│defaults_path: ''",
18-
" 5│full_name: company_name.coll_1.role_minimum",
19-
" 6│info:",
20-
" 7│ dependencies: []",
21-
" 8│ galaxy_info:",
22-
" 9│ author: Ansible team (ansible-navigator)",
23-
"10│ company: Ansible",
24-
"11│ description: Minimal sample role.",
25-
"12│ galaxy_tags:",
26-
"13│ - tag_1",
27-
"14│ - tag_2",
28-
"15│ license: LICENSE",
29-
"16│ min_ansible_version: 2.9.0",
30-
"17│ platforms:",
31-
"18│ - name: eos",
32-
"19│ versions:",
33-
"20│ - all",
34-
"21│info_path: /tmp/collections_to_volmount/ansible_collections/company_name/coll_1/roles/role_minimum/meta/main.yml",
35-
"22│readme: |-",
36-
"23│ # Role minimum",
37-
"24│",
38-
"25│ This is a role with:",
39-
"26│",
40-
"27│ - meta/main.yml",
41-
"28│ - README.md",
42-
"29│",
43-
"30│ This is a role without:",
44-
"31│",
45-
"32│ - defaults/main.yml",
46-
"33│ - meta/argument_spec.yml",
47-
"34│readme_path: /tmp/collections_to_volmount/ansible_collections/company_name/coll_1/roles/role_minimum/README.md",
48-
"35│short_name: role_minimum",
14+
" 1│additional_information: {}",
15+
" 2│collection_info:",
16+
" 3│ name: ansible.builtin",
17+
" 4│ path: /usr/local/lib/python3.XX/site-packages/ansible",
18+
" 5│ shadowed_by: []",
19+
" 6│ version: 2.18.7",
20+
" 7│doc:",
21+
" 8│ author: Ansible Core",
22+
" 9│ description:",
23+
"10│ - This test checks each condition in a list for truthiness.",
24+
"11│ - Same as the C(any) Python function.",
25+
"12│ name: any",
26+
"13│ options:",
27+
"14│ _input:",
28+
"15│ description: List of conditions, each can be a boolean or conditional expression",
29+
"16│ that results in a boolean value.",
30+
"17│ elements: raw",
31+
"18│ required: true",
32+
"19│ type: list",
33+
"20│ short_description: is any condition in a list true",
34+
"21│ version_added: '2.4'",
35+
"22│ version_added_collection: ansible.builtin",
36+
"23│examples: |-",
37+
"24│ varexpression: \"{{ 3 == 3 }}\"",
38+
"25│ # is any statement true?",
39+
"26│ {{ [false, booleanvar, varexpression] is any}}",
40+
"27│full_name: ansible.builtin.any",
41+
"28│metadata: null",
42+
"29│returndocs:",
43+
"30│ _value:",
44+
"31│ description: Returns V(True) if any element of the list was true, V(False) otherwise.",
45+
"32│ type: boolean",
4946
"^b/PgUp page up ^f/PgDn page down ↑↓ scroll esc back - previous + next [0-9] goto :help help"
5047
]
5148
}

0 commit comments

Comments
 (0)