id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
13,600
test_alias_deprecation.py
ansible_ansible/test/integration/targets/module_utils/library/test_alias_deprecation.py
#!/usr/bin/python from __future__ import annotations from ansible.module_utils.basic import AnsibleModule # overridden from ansible.module_utils.ansible_release import data results = {"data": data} arg_spec = dict( foo=dict(type='str', aliases=['baz'], deprecated_aliases=[dict(name='baz', version='9.99')]) ) A...
378
Python
.py
10
35.9
96
0.760331
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,601
pure_json.py
ansible_ansible/test/integration/targets/module_utils/callback/pure_json.py
# (c) 2021 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ name: pure_json type: stdout short_description: only outputs the module results as json """ import json from ansible.plugins.call...
796
Python
.py
20
35.3
92
0.725849
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,602
copy.yml
ansible_ansible/test/integration/targets/plugin_filtering/copy.yml
--- - hosts: testhost gather_facts: False tasks: - copy: content: 'Testing 1... 2... 3...' dest: ./testing.txt - file: state: absent path: ./testing.txt
185
Python
.py
10
14.3
39
0.56
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,603
_module3.py
ansible_ansible/test/integration/targets/ansible-test-sanity-ansible-doc/ansible_collections/ns/col/plugins/modules/_module3.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: _module3 short_description: Another test module description: This is a test module that has not been deprecated. author: - Ansible Core Team "...
563
Python
.py
22
22.954545
92
0.700565
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,604
module1.py
ansible_ansible/test/integration/targets/ansible-test-sanity-ansible-doc/ansible_collections/ns/col/plugins/modules/module1.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: module1 short_description: Hello test module description: Hello test module. options: {} author: - Ansible Core Team """ EXAMPLES = """ - min...
539
Python
.py
23
20.869565
92
0.693676
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,605
module2.py
ansible_ansible/test/integration/targets/ansible-test-sanity-ansible-doc/ansible_collections/ns/col/plugins/modules/a/b/module2.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: module2 short_description: Hello test module description: Hello test module. options: {} author: - Ansible Core Team """ EXAMPLES = """ - min...
539
Python
.py
23
20.869565
92
0.693676
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,606
lookup1.py
ansible_ansible/test/integration/targets/ansible-test-sanity-ansible-doc/ansible_collections/ns/col/plugins/lookup/lookup1.py
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ name: lookup1 author: Ansible Core Team short_description: hello test lookup description: - Hello test lookup. options: {} """ EXAMPLES = """...
506
Python
.py
19
23.105263
92
0.693111
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,607
lookup2.py
ansible_ansible/test/integration/targets/ansible-test-sanity-ansible-doc/ansible_collections/ns/col/plugins/lookup/a/b/lookup2.py
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ name: lookup2 author: Ansible Core Team short_description: hello test lookup description: - Hello test lookup. options: {} """ EXAMPLES = """...
506
Python
.py
19
23.105263
92
0.693111
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,608
shell_no_failed.py
ansible_ansible/test/integration/targets/until/action_plugins/shell_no_failed.py
# Copyright: (c) 2017, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations from ansible.plugins.action import ActionBase class ActionModule(ActionBase): def run(self, tmp=None, task_vars=None): del tmp # tmp no...
1,228
Python
.py
21
34.619048
107
0.472939
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,609
test_filter.py
ansible_ansible/test/integration/targets/plugin_namespace/filter_plugins/test_filter.py
from __future__ import annotations def filter_name(a): return __name__ class FilterModule(object): def filters(self): filters = { 'filter_name': filter_name, } return filters
224
Python
.py
9
18.444444
39
0.609524
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,610
lookup_name.py
ansible_ansible/test/integration/targets/plugin_namespace/lookup_plugins/lookup_name.py
from __future__ import annotations from ansible.plugins.lookup import LookupBase class LookupModule(LookupBase): def run(self, terms, variables, **kwargs): return [__name__]
189
Python
.py
5
33.8
46
0.740331
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,611
test_test.py
ansible_ansible/test/integration/targets/plugin_namespace/test_plugins/test_test.py
from __future__ import annotations import re def test_name_ok(value): # test names are prefixed with a unique hash value to prevent shadowing of other plugins return bool(re.match(r'^ansible\.plugins\.test\.[0-9]+_test_test$', __name__)) class TestModule: def tests(self): return { '...
359
Python
.py
10
30.4
92
0.662791
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,612
ios_facts.py
ansible_ansible/test/integration/targets/gathering_facts/collections/ansible_collections/cisco/ios/plugins/modules/ios_facts.py
#!/usr/bin/python from __future__ import annotations DOCUMENTATION = """ --- module: ios_facts short_description: supporting network facts module description: - supporting network facts module for gather_facts + module_defaults tests options: gather_subset: description: - When supplied, this argument res...
1,143
Python
.py
32
30.71875
118
0.692029
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,613
file_utils.py
ansible_ansible/test/integration/targets/gathering_facts/library/file_utils.py
from __future__ import annotations from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.facts.utils import ( get_file_content, get_file_lines, get_mount_size, ) def main(): module = AnsibleModule( argument_spec=dict( test=dict(type='str', default='strip')...
1,440
Python
.py
38
30.894737
83
0.617986
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,614
none.py
ansible_ansible/test/integration/targets/gathering_facts/cache_plugins/none.py
# (c) 2014, Brian Coca, Josh Drake, et al # (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations from ansible.plugins.cache import BaseCacheModule DOCUMENTATION = """ cache: none short_description: write-only...
1,061
Python
.py
34
25.411765
92
0.643281
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,615
test_assertion.py
ansible_ansible/test/integration/targets/ansible-test-units-assertions/ansible_collections/ns/col/tests/unit/plugins/modules/test_assertion.py
from __future__ import annotations def test_assertion(): assert dict(yes=True) == dict(no=False)
103
Python
.py
3
31.333333
43
0.72449
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,616
ansible_release.py
ansible_ansible/test/integration/targets/module_utils_ansible_release/library/ansible_release.py
#!/usr/bin/python # Copyright: (c) 2021, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = r""" --- module: ansible_release short_description: Get ansible_release info from module_utils description: Get ansib...
816
Python
.py
30
24.433333
92
0.685972
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,617
module.py
ansible_ansible/test/integration/targets/no_log/library/module.py
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2019 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations from ansible.module_utils.basic import AnsibleModule def main(): module = AnsibleModule( argument...
1,165
Python
.py
37
18.513514
92
0.394291
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,618
action_sets_no_log.py
ansible_ansible/test/integration/targets/no_log/action_plugins/action_sets_no_log.py
from __future__ import annotations from ansible.plugins.action import ActionBase class ActionModule(ActionBase): def run(self, tmp=None, task_vars=None): return dict(changed=False, failed=False, msg="action result should be masked", _ansible_no_log="yeppers") # ensure that a truthy non-bool works here
319
Python
.py
5
59.8
157
0.762058
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,619
exercise_cache.py
ansible_ansible/test/integration/targets/inventory_cache/plugins/inventory/exercise_cache.py
# Copyright (c) 2022 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ inventory: exercise_cache short_description: run tests against the specified cache plugin description: - This plugi...
10,983
Python
.py
273
31.201465
116
0.577444
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,620
cache_host.py
ansible_ansible/test/integration/targets/inventory_cache/plugins/inventory/cache_host.py
# Copyright (c) 2021 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ inventory: cache_host short_description: add a host to inventory and cache it description: add a host to inventory and ca...
1,718
Python
.py
42
32.928571
92
0.654239
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,621
build.py
ansible_ansible/test/integration/targets/binary_modules/build.py
#!/usr/bin/env python """ Compile binary modules for this test for access from S3 at: https://ci-files.testing.ansible.com/test/integration/roles/test_binary_modules/ This avoids a test dependency on go and keeps the binaries out of the git repository. """ from __future__ import annotations import os import pathlib i...
1,435
Python
.py
32
39.5625
114
0.650646
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,622
ansible_test_service.py
ansible_ansible/test/integration/targets/service_facts/files/ansible_test_service.py
#!/usr/bin/env python # this is mostly based off of the code found here: # http://code.activestate.com/recipes/278731-creating-a-daemon-the-python-way/ from __future__ import annotations import os import resource import signal import time UMASK = 0 WORKDIR = "/" MAXFD = 1024 if (hasattr(os, "devnull")): REDIRE...
1,469
Python
.py
52
21.653846
78
0.580114
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,623
test_rc_1.py
ansible_ansible/test/integration/targets/win_exec_wrapper/action_plugins/test_rc_1.py
# Copyright: (c) 2023, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import json from ansible.plugins.action import ActionBase class ActionModule(ActionBase): def run(self, tmp=None, task_vars=None): super...
1,101
Python
.py
26
32.192308
92
0.598122
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,624
test.py
ansible_ansible/test/integration/targets/run_modules/library/test.py
#!/usr/bin/python from __future__ import annotations from ansible.module_utils.basic import AnsibleModule module = AnsibleModule(argument_spec=dict()) module.exit_json(**{'tempdir': module._remote_tmp})
207
Python
.py
5
39.6
52
0.787879
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,625
get_gid_for_group.py
ansible_ansible/test/integration/targets/group/files/get_gid_for_group.py
from __future__ import annotations import grp import sys def main(): group_name = None if len(sys.argv) >= 2: group_name = sys.argv[1] print(grp.getgrnam(group_name).gr_gid) if __name__ == '__main__': main()
239
Python
.py
10
19.8
42
0.626126
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,626
get_free_gid.py
ansible_ansible/test/integration/targets/group/files/get_free_gid.py
from __future__ import annotations import grp def main(): gids = [g.gr_gid for g in grp.getgrall()] # Start the gid numbering with 1 # FreeBSD doesn't support the usage of gid 0, it doesn't fail (rc=0) but instead a number in the normal # range is picked. i = 1 while True: if i not ...
423
Python
.py
15
22.2
107
0.586035
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,627
test_hello.py
ansible_ansible/test/integration/targets/ansible-test-docker/ansible_collections/ns/col/tests/unit/plugins/modules/test_hello.py
from __future__ import annotations from .....plugins.modules.hello import say_hello def test_say_hello(): assert say_hello('Ansibull') == dict(message='Hello Ansibull')
176
Python
.py
4
41.25
66
0.739645
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,628
test_my_util.py
ansible_ansible/test/integration/targets/ansible-test-docker/ansible_collections/ns/col/tests/unit/plugins/module_utils/test_my_util.py
from __future__ import annotations from .....plugins.module_utils.my_util import hello def test_hello(): assert hello('Ansibull') == 'Hello Ansibull'
157
Python
.py
4
36.5
51
0.733333
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,629
hello.py
ansible_ansible/test/integration/targets/ansible-test-docker/ansible_collections/ns/col/plugins/modules/hello.py
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ module: hello short_description: Hello test module description: Hello test module. options: name: description: Name to say hello to. type: str...
793
Python
.py
33
20.484848
92
0.67246
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,630
win_util_args.py
ansible_ansible/test/integration/targets/ansible-test-docker/ansible_collections/ns/col/plugins/modules/win_util_args.py
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2020 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['stableinterface'], 'supported_by': 'core'} DO...
727
Python
.py
32
19.4375
92
0.664244
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,631
my_util.py
ansible_ansible/test/integration/targets/ansible-test-docker/ansible_collections/ns/col/plugins/module_utils/my_util.py
from __future__ import annotations def hello(name): return 'Hello %s' % name
83
Python
.py
3
24.666667
34
0.705128
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,632
ps_util.py
ansible_ansible/test/integration/targets/ansible-test-docker/ansible_collections/ns/col/plugins/doc_fragments/ps_util.py
# -*- coding: utf-8 -*- # Copyright (c) 2020 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations class ModuleDocFragment: DOCUMENTATION = r""" options: option1: description: - Test description required: ye...
366
Python
.py
15
21.066667
92
0.693642
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,633
echoaction.py
ansible_ansible/test/integration/targets/module_defaults/collections/ansible_collections/testns/testcoll/plugins/action/echoaction.py
from __future__ import annotations from ansible.plugins.action import ActionBase class ActionModule(ActionBase): TRANSFERS_FILES = False _VALID_ARGS = frozenset() def run(self, tmp=None, task_vars=None): if task_vars is None: task_vars = dict() result = super(ActionModule, s...
432
Python
.py
11
32.545455
63
0.681159
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,634
ios.py
ansible_ansible/test/integration/targets/module_defaults/collections/ansible_collections/testns/testcoll/plugins/action/ios.py
# Copyright: (c) 2022, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations from ansible.plugins.action.normal import ActionModule as ActionBase class ActionModule(ActionBase): def run(self, tmp=None, task_vars=None): ...
445
Python
.py
9
44.555556
92
0.729604
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,635
vyos.py
ansible_ansible/test/integration/targets/module_defaults/collections/ansible_collections/testns/testcoll/plugins/action/vyos.py
# Copyright: (c) 2022, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations from ansible.plugins.action.normal import ActionModule as ActionBase class ActionModule(ActionBase): def run(self, tmp=None, task_vars=None): ...
446
Python
.py
9
44.666667
92
0.730233
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,636
eos.py
ansible_ansible/test/integration/targets/module_defaults/collections/ansible_collections/testns/testcoll/plugins/action/eos.py
# Copyright: (c) 2022, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations from ansible.plugins.action.normal import ActionModule as ActionBase class ActionModule(ActionBase): def run(self, tmp=None, task_vars=None): ...
445
Python
.py
9
44.555556
92
0.729604
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,637
module.py
ansible_ansible/test/integration/targets/module_defaults/collections/ansible_collections/testns/testcoll/plugins/modules/module.py
# -*- coding: utf-8 -*- # Copyright: (c) 2022, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = r""" --- module: module short_description: module to test module_defaults description: module to test module_...
700
Python
.py
24
25.583333
92
0.689189
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,638
ios_facts.py
ansible_ansible/test/integration/targets/module_defaults/collections/ansible_collections/testns/testcoll/plugins/modules/ios_facts.py
# -*- coding: utf-8 -*- # Copyright: (c) 2022, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = r""" --- module: ios_facts short_description: module to test module_defaults description: module to test modu...
691
Python
.py
24
25.208333
92
0.683409
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,639
echo1.py
ansible_ansible/test/integration/targets/module_defaults/collections/ansible_collections/testns/testcoll/plugins/modules/echo1.py
#!/usr/bin/python from __future__ import annotations from ansible_collections.testns.testcoll.plugins.module_utils.echo_impl import do_echo def main(): do_echo() if __name__ == '__main__': main()
209
Python
.py
7
27
86
0.71066
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,640
ping.py
ansible_ansible/test/integration/targets/module_defaults/collections/ansible_collections/testns/testcoll/plugins/modules/ping.py
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2016, Toshio Kuratomi <tkuratomi@ansible.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ --- module: ping ver...
2,169
Python
.py
66
29.257576
102
0.708194
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,641
metadata.py
ansible_ansible/test/integration/targets/module_defaults/collections/ansible_collections/testns/testcoll/plugins/modules/metadata.py
#!/usr/bin/python # -*- coding: utf-8 -*- # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ --- module: metadata version_added: 2.12 short_description: Test module with a specific name description: Test module with a s...
772
Python
.py
32
20.875
92
0.682692
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,642
eosfacts.py
ansible_ansible/test/integration/targets/module_defaults/collections/ansible_collections/testns/testcoll/plugins/modules/eosfacts.py
# -*- coding: utf-8 -*- # Copyright: (c) 2022, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = r""" --- module: eosfacts short_description: module to test module_defaults description: module to test modul...
687
Python
.py
24
25.041667
92
0.687596
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,643
vyosfacts.py
ansible_ansible/test/integration/targets/module_defaults/collections/ansible_collections/testns/testcoll/plugins/modules/vyosfacts.py
# -*- coding: utf-8 -*- # Copyright: (c) 2022, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = r""" --- module: vyosfacts short_description: module to test module_defaults description: module to test modu...
691
Python
.py
24
25.208333
92
0.689498
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,644
echo2.py
ansible_ansible/test/integration/targets/module_defaults/collections/ansible_collections/testns/testcoll/plugins/modules/echo2.py
#!/usr/bin/python from __future__ import annotations from ansible_collections.testns.testcoll.plugins.module_utils.echo_impl import do_echo def main(): do_echo() if __name__ == '__main__': main()
209
Python
.py
7
27
86
0.71066
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,645
echo_impl.py
ansible_ansible/test/integration/targets/module_defaults/collections/ansible_collections/testns/testcoll/plugins/module_utils/echo_impl.py
from __future__ import annotations import json from ansible.module_utils import basic from ansible.module_utils.basic import _load_params, AnsibleModule def do_echo(): p = _load_params() d = json.loads(basic._ANSIBLE_ARGS) d['ANSIBLE_MODULE_ARGS'] = {} basic._ANSIBLE_ARGS = json.dumps(d).encode('utf-...
401
Python
.py
11
33
66
0.718346
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,646
other_echoaction.py
ansible_ansible/test/integration/targets/module_defaults/collections/ansible_collections/testns/othercoll/plugins/action/other_echoaction.py
from __future__ import annotations from ansible_collections.testns.testcoll.plugins.action.echoaction import ActionModule as BaseAM class ActionModule(BaseAM): pass
172
Python
.py
4
40.25
96
0.842424
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,647
other_echo1.py
ansible_ansible/test/integration/targets/module_defaults/collections/ansible_collections/testns/othercoll/plugins/modules/other_echo1.py
#!/usr/bin/python from __future__ import annotations from ansible_collections.testns.testcoll.plugins.module_utils.echo_impl import do_echo def main(): do_echo() if __name__ == '__main__': main()
209
Python
.py
7
27
86
0.71066
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,648
test_module_defaults.py
ansible_ansible/test/integration/targets/module_defaults/library/test_module_defaults.py
#!/usr/bin/python from __future__ import annotations from ansible.module_utils.basic import AnsibleModule def main(): module = AnsibleModule( argument_spec=dict( arg1=dict(type='str', default='default1'), arg2=dict(type='str', default='default2'), arg3=dict(type='str',...
656
Python
.py
22
22.318182
54
0.580542
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,649
legacy_ping.py
ansible_ansible/test/integration/targets/module_defaults/library/legacy_ping.py
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2016, Toshio Kuratomi <tkuratomi@ansible.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ --- module: ping ver...
2,169
Python
.py
66
29.257576
102
0.708194
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,650
debug.py
ansible_ansible/test/integration/targets/module_defaults/action_plugins/debug.py
# Copyright 2012, Dag Wieers <dag@wieers.com> # Copyright 2016, Toshio Kuratomi <tkuratomi@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either versi...
3,323
Python
.py
65
40.861538
122
0.619914
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,651
test-cli.py
ansible_ansible/test/integration/targets/cli/test-cli.py
#!/usr/bin/env python # Copyright (c) 2019 Matt Martz <matt@sivel.net> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import os import pexpect os.environ['ANSIBLE_NOCOLOR'] = '1' out = pexpect.run( 'ansible localhost -m debug -a ms...
444
Python
.py
14
28.928571
92
0.656471
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,652
test_k_and_K.py
ansible_ansible/test/integration/targets/cli/test_k_and_K.py
#!/usr/bin/env python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import os import sys import pexpect os.environ['ANSIBLE_NOCOLOR'] = '1' out = pexpect.run( 'ansible -c ssh -i localhost, -u cliuser1 -e ansible_python_interprete...
582
Python
.py
18
28.944444
92
0.70018
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,653
check_pkg_resources.py
ansible_ansible/test/integration/targets/pkg_resources/lookup_plugins/check_pkg_resources.py
""" This test case verifies that pkg_resources imports from ansible plugins are functional. If pkg_resources is not installed this test will succeed. If pkg_resources is installed but is unable to function, this test will fail. One known failure case this test can detect is when ansible declares a __requires__ and th...
720
Python
.py
16
42.375
137
0.792264
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,654
deprecated.py
ansible_ansible/test/integration/targets/ansible-test-sanity-pylint/ansible_collections/ns/col/plugins/lookup/deprecated.py
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ name: deprecated short_description: lookup description: Lookup. author: - Ansible Core Team """ EXAMPLES = """#""" RETURN = """#""" from ansible.plugins.lookup import...
413
Python
.py
15
25.2
92
0.727041
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,655
callback_meta.py
ansible_ansible/test/integration/targets/ansible/callback_plugins/callback_meta.py
# (c) 2020 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations from ansible.plugins.callback import CallbackBase import os class CallbackModule(CallbackBase): CALLBACK_VERSION = 2.0 CALLBACK_TYPE = 'stdout' CALLB...
722
Python
.py
16
39.75
92
0.698571
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,656
bad_exec.py
ansible_ansible/test/integration/targets/ignore_unreachable/fake_connectors/bad_exec.py
from __future__ import annotations import ansible.plugins.connection.local as ansible_local from ansible.errors import AnsibleConnectionFailure from ansible.utils.display import Display display = Display() class Connection(ansible_local.Connection): def exec_command(self, cmd, in_data=None, sudoable=True): ...
464
Python
.py
9
47.888889
82
0.800443
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,657
bad_put_file.py
ansible_ansible/test/integration/targets/ignore_unreachable/fake_connectors/bad_put_file.py
from __future__ import annotations import ansible.plugins.connection.local as ansible_local from ansible.errors import AnsibleConnectionFailure from ansible.utils.display import Display display = Display() class Connection(ansible_local.Connection): def put_file(self, in_path, out_path): display.debug('...
435
Python
.py
9
44.666667
82
0.796209
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,658
junkping.py
ansible_ansible/test/integration/targets/async_extra_data/library/junkping.py
#!/usr/bin/python from __future__ import annotations import json def main(): print("junk_before_module_output") print(json.dumps(dict(changed=False, source='user'))) print("junk_after_module_output") if __name__ == '__main__': main()
255
Python
.py
9
25
57
0.676349
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,659
setup.py
ansible_ansible/test/integration/targets/pip/files/setup.py
#!/usr/bin/env python from __future__ import annotations from setuptools import setup, find_packages setup( name="ansible_test_pip_chdir", version="0", packages=find_packages(), entry_points={ 'console_scripts': [ 'ansible_test_pip_chdir = ansible_test_pip_chdir:main' ] ...
326
Python
.py
13
20.153846
66
0.651613
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,660
update-ignore.py
ansible_ansible/test/integration/targets/collection/update-ignore.py
#!/usr/bin/env python """Rewrite a sanity ignore file to expand Python versions for import ignores and write the file out with the correct Ansible version in the name.""" from __future__ import annotations import os import sys from ansible import release def main(): ansible_root = os.path.dirname(os.path.dirnam...
1,643
Python
.py
38
36.578947
148
0.655738
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,661
test-vars_prompt.py
ansible_ansible/test/integration/targets/builtin_vars_prompt/test-vars_prompt.py
#!/usr/bin/env python from __future__ import annotations import os import pexpect import sys from ansible.module_utils.six import PY2 if PY2: log_buffer = sys.stdout else: log_buffer = sys.stdout.buffer env_vars = { 'ANSIBLE_ROLES_PATH': './roles', 'ANSIBLE_NOCOLOR': 'True', 'ANSIBLE_RETRY_FILE...
3,527
Python
.py
106
27.122642
84
0.585344
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,662
test_test.py
ansible_ansible/test/integration/targets/collections_plugin_namespace/collection_root/ansible_collections/my_ns/my_col/plugins/test/test_test.py
from __future__ import annotations def test_name_ok(value): return __name__ == 'ansible_collections.my_ns.my_col.plugins.test.test_test' class TestModule: def tests(self): return { 'test_name_ok': test_name_ok, }
253
Python
.py
8
25.625
80
0.639004
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,663
lookup_name.py
ansible_ansible/test/integration/targets/collections_plugin_namespace/collection_root/ansible_collections/my_ns/my_col/plugins/lookup/lookup_name.py
from __future__ import annotations from ansible.plugins.lookup import LookupBase class LookupModule(LookupBase): def run(self, terms, variables, **kwargs): return [__name__]
189
Python
.py
5
33.8
46
0.740331
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,664
lookup_no_future_boilerplate.py
ansible_ansible/test/integration/targets/collections_plugin_namespace/collection_root/ansible_collections/my_ns/my_col/plugins/lookup/lookup_no_future_boilerplate.py
# do not add future boilerplate to this plugin # specifically, do not add absolute_import, as the purpose of this plugin is to test implicit relative imports on Python 2.x from __future__ import annotations from ansible.plugins.lookup import LookupBase class LookupModule(LookupBase): def run(self, terms, variabl...
361
Python
.py
7
48.428571
124
0.769231
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,665
test_filter.py
ansible_ansible/test/integration/targets/collections_plugin_namespace/collection_root/ansible_collections/my_ns/my_col/plugins/filter/test_filter.py
from __future__ import annotations def filter_name(a): return __name__ class FilterModule(object): def filters(self): filters = { 'filter_name': filter_name, } return filters
224
Python
.py
9
18.444444
39
0.609524
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,666
test.py
ansible_ansible/test/integration/targets/old_style_cache_plugins/plugins/inventory/test.py
# Copyright (c) 2019 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ name: test plugin_type: inventory short_description: test inventory source extends_documentation_fragment: - ...
1,923
Python
.py
41
38.170732
128
0.655228
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,667
configurable_redis.py
ansible_ansible/test/integration/targets/old_style_cache_plugins/plugins/cache/configurable_redis.py
# (c) 2014, Brian Coca, Josh Drake, et al # (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ cache: configurable_redis short_description: Use Redis DB for cache description: -...
4,605
Python
.py
121
30
134
0.620852
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,668
legacy_redis.py
ansible_ansible/test/integration/targets/old_style_cache_plugins/plugins/cache/legacy_redis.py
# (c) 2014, Brian Coca, Josh Drake, et al # (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ cache: redis short_description: Use Redis DB for cache description: - This cache u...
4,338
Python
.py
118
28.576271
134
0.612434
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,669
test_test.py
ansible_ansible/test/integration/targets/ansible-test-config/ansible_collections/ns/col/tests/unit/plugins/module_utils/test_test.py
from __future__ import annotations from ansible_collections.ns.col.plugins.module_utils import test def test_me(): assert test
134
Python
.py
4
30.75
64
0.795276
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,670
test.py
ansible_ansible/test/integration/targets/ansible-test-config/ansible_collections/ns/col/plugins/module_utils/test.py
from __future__ import annotations import sys import os def version_to_str(value): return '.'.join(str(v) for v in value) controller_min_python_version = tuple(int(v) for v in os.environ['ANSIBLE_CONTROLLER_MIN_PYTHON_VERSION'].split('.')) current_python_version = sys.version_info[:2] if current_python_versio...
615
Python
.py
10
57.1
151
0.741235
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,671
slurp.py
ansible_ansible/test/integration/targets/fetch/injection/library/slurp.py
#!/usr/bin/python from __future__ import annotations DOCUMENTATION = """ module: fakeslurp short_description: fake slurp module description: - this is a fake slurp module options: _notreal: description: really not a real slurp author: - me """ import json impor...
607
Python
.py
20
25.75
111
0.587219
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,672
ansible_test_service.py
ansible_ansible/test/integration/targets/service/files/ansible_test_service.py
#!/usr/bin/env python # this is mostly based off of the code found here: # http://code.activestate.com/recipes/278731-creating-a-daemon-the-python-way/ from __future__ import annotations import os import resource import signal import time UMASK = 0 WORKDIR = "/" MAXFD = 1024 if (hasattr(os, "devnull")): REDIRE...
1,469
Python
.py
52
21.653846
78
0.580114
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,673
testserver.py
ansible_ansible/test/integration/targets/uri/files/testserver.py
from __future__ import annotations import http.server import socketserver import sys if __name__ == '__main__': PORT = int(sys.argv[1]) class Handler(http.server.SimpleHTTPRequestHandler): pass Handler.extensions_map['.json'] = 'application/json' httpd = socketserver.TCPServer(("", PORT), Ha...
353
Python
.py
11
28.181818
56
0.704142
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,674
test_peercert.py
ansible_ansible/test/integration/targets/module_utils_urls/library/test_peercert.py
#!/usr/bin/python # Copyright: (c) 2020, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = r""" --- module: test_perrcert short_description: Test getting the peer certificate of a HTTP response description: T...
2,293
Python
.py
76
24.131579
92
0.612477
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,675
testserver.py
ansible_ansible/test/integration/targets/get_url/files/testserver.py
from __future__ import annotations import http.server import socketserver import sys if __name__ == '__main__': PORT = int(sys.argv[1]) class Handler(http.server.SimpleHTTPRequestHandler): pass Handler.extensions_map['.json'] = 'application/json' httpd = socketserver.TCPServer(("", PORT), Ha...
353
Python
.py
11
28.181818
56
0.704142
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,676
do-not-check-me.py
ansible_ansible/test/integration/targets/ansible-test-sanity-use-compat-six/ansible_collections/ns/col/do-not-check-me.py
from __future__ import annotations import six def do_stuff(): assert six.text_type
90
Python
.py
4
19.75
34
0.759036
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,677
check-me.py
ansible_ansible/test/integration/targets/ansible-test-sanity-use-compat-six/ansible_collections/ns/col/plugins/modules/check-me.py
from __future__ import annotations import six def do_stuff(): assert six.text_type
90
Python
.py
4
19.75
34
0.759036
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,678
testserver.py
ansible_ansible/test/integration/targets/ansible-galaxy/files/testserver.py
from __future__ import annotations import http.server import socketserver import ssl if __name__ == '__main__': Handler = http.server.SimpleHTTPRequestHandler context = ssl.SSLContext() context.load_cert_chain(certfile='./cert.pem', keyfile='./key.pem') httpd = socketserver.TCPServer(("", 4443), Handl...
422
Python
.py
11
34.909091
71
0.72549
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,679
convert_camelCase.py
ansible_ansible/test/integration/targets/dict_transformations/library/convert_camelCase.py
#!/usr/bin/python # -*- coding: utf-8 -*- # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ --- module: convert_camelCase short_description: test converting data to camelCase description: test converting data to camelC...
1,060
Python
.py
35
25.857143
92
0.698914
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,680
convert_snake_case.py
ansible_ansible/test/integration/targets/dict_transformations/library/convert_snake_case.py
#!/usr/bin/python # -*- coding: utf-8 -*- # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ --- module: convert_snake_case short_description: test converting data to snake_case description: test converting data to snak...
1,381
Python
.py
42
28.02381
96
0.688772
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,681
run-with-pty.py
ansible_ansible/test/integration/targets/fork_safe_stdio/run-with-pty.py
#!/usr/bin/env python """Run a command using a PTY.""" from __future__ import annotations import sys if sys.version_info < (3, 10): import vendored_pty as pty else: import pty sys.exit(1 if pty.spawn(sys.argv[1:]) else 0)
233
Python
.py
9
23.666667
45
0.705882
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,682
vendored_pty.py
ansible_ansible/test/integration/targets/fork_safe_stdio/vendored_pty.py
# Vendored copy of https://github.com/python/cpython/blob/3680ebed7f3e529d01996dd0318601f9f0d02b4b/Lib/pty.py # PSF License (see licenses/PSF-license.txt or https://opensource.org/licenses/Python-2.0) """Pseudo terminal utilities.""" # Bugs: No signal handling. Doesn't set slave termios and window size. # Only ...
5,448
Python
.py
160
26.65
109
0.605934
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,683
spewstdio.py
ansible_ansible/test/integration/targets/fork_safe_stdio/callback_plugins/spewstdio.py
from __future__ import annotations import atexit import os import sys from ansible.plugins.callback import CallbackBase from ansible.utils.display import Display from threading import Thread # This callback plugin reliably triggers the deadlock from https://github.com/ansible/ansible-runner/issues/1164 when # run on...
2,450
Python
.py
43
50.465116
117
0.727615
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,684
foo-py26.txt
ansible_ansible/test/integration/targets/template/files/foo-py26.txt
templated_var_loaded { "bool": true, "multi_part": "1Foo", "null_type": null, "number": 5, "string_num": "5" }
132
Python
.py
8
12.875
25
0.552846
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,685
myplugin.py
ansible_ansible/test/integration/targets/template/role_filter/filter_plugins/myplugin.py
#!/usr/bin/env python from __future__ import annotations class FilterModule(object): def filters(self): return {'parse_ip': self.parse_ip} def parse_ip(self, ip): return ip
201
Python
.py
7
23.714286
42
0.668421
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,686
test.py
ansible_ansible/test/integration/targets/ansible-test-integration-targets/test.py
#!/usr/bin/env python from __future__ import annotations import subprocess import unittest class OptionsTest(unittest.TestCase): options = ( 'unsupported', 'disabled', 'unstable', 'destructive', ) def test_options(self): for option in self.options: wit...
2,132
Python
.py
36
47.666667
153
0.601727
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,687
tmpdir.py
ansible_ansible/test/integration/targets/become_unprivileged/action_plugins/tmpdir.py
from __future__ import annotations from ansible.plugins.action import ActionBase class ActionModule(ActionBase): def run(self, tmp=None, task_vars=None): result = super(ActionModule, self).run(tmp, task_vars) result.update(self._execute_module('ping', task_vars=task_vars)) result['tmpdir...
378
Python
.py
8
41.25
72
0.715847
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,688
async_test.py
ansible_ansible/test/integration/targets/async/library/async_test.py
from __future__ import annotations import json import sys from ansible.module_utils.basic import AnsibleModule def main(): if "--interactive" in sys.argv: import ansible.module_utils.basic ansible.module_utils.basic._ANSIBLE_ARGS = json.dumps(dict( ANSIBLE_MODULE_ARGS=dict( ...
1,117
Python
.py
33
25.484848
67
0.616464
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,689
test_throttle.py
ansible_ansible/test/integration/targets/throttle/test_throttle.py
#!/usr/bin/env python from __future__ import annotations import os import sys import time # read the args from sys.argv throttledir, inventory_hostname, max_throttle = sys.argv[1:] # format/create additional vars max_throttle = int(max_throttle) throttledir = os.path.expanduser(throttledir) throttlefile = os.path.jo...
1,022
Python
.py
30
29.766667
96
0.707786
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,690
ini_dupes.py
ansible_ansible/test/integration/targets/ansible-config/files/ini_dupes.py
#!/usr/bin/env python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import configparser import sys ini_file = sys.argv[1] c = configparser.ConfigParser(strict=True, inline_comment_prefixes=(';',)) c.read_file(open(ini_file))
311
Python
.py
8
37.375
92
0.762542
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,691
77788.py
ansible_ansible/test/integration/targets/templating_lookups/template_lookups/mock_lookup_plugins/77788.py
from __future__ import annotations from ansible.plugins.lookup import LookupBase class LookupModule(LookupBase): def run(self, terms, variables, **kwargs): return {'one': 1, 'two': 2}
199
Python
.py
5
35.8
46
0.722513
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,692
test_module.py
ansible_ansible/test/integration/targets/ansible-galaxy-collection/files/test_module.py
# -*- coding: utf-8 -*- # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2016, Toshio Kuratomi <tkuratomi@ansible.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ --- module: ping version_added: histor...
2,089
Python
.py
63
29.365079
103
0.70398
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,693
build_bad_tar.py
ansible_ansible/test/integration/targets/ansible-galaxy-collection/files/build_bad_tar.py
#!/usr/bin/env python # Copyright: (c) 2020, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import hashlib import io import json import os import sys import tarfile from ansible.module_utils.common.file import S_IRWXU_RX...
2,320
Python
.py
70
26.685714
92
0.597048
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,694
reset_pulp.py
ansible_ansible/test/integration/targets/ansible-galaxy-collection/library/reset_pulp.py
#!/usr/bin/python # Copyright: (c) 2020, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ --- module: reset_pulp short_description: Resets pulp back to the initial state description: - See short_descrip...
8,200
Python
.py
182
40.214286
123
0.695494
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,695
setup_collections.py
ansible_ansible/test/integration/targets/ansible-galaxy-collection/library/setup_collections.py
#!/usr/bin/python # Copyright: (c) 2020, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations ANSIBLE_METADATA = { 'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community' } DOCUMENTATION = ""...
9,457
Python
.py
240
31.708333
136
0.625041
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,696
missing_required_lib.py
ansible_ansible/test/integration/targets/missing_required_lib/library/missing_required_lib.py
#!/usr/bin/python # Copyright: (c) 2020, Matt Martz <matt@sivel.net> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations from ansible.module_utils.basic import AnsibleModule, missing_required_lib try: import ansible_missing_lib # pylint...
915
Python
.py
29
25.344828
92
0.602958
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,697
remote_is_local.py
ansible_ansible/test/integration/targets/connection_remote_is_local/connection_plugins/remote_is_local.py
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations DOCUMENTATION = """ name: remote_is_local short_description: remote is local description: - remote_is_local author: ansible (@core) version_added: historical ...
646
Python
.py
17
33.294118
103
0.736334
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,698
venv-pythons.py
ansible_ansible/test/integration/targets/ansible-test/venv-pythons.py
#!/usr/bin/env python """Return target Python options for use with ansible-test.""" from __future__ import annotations import argparse import os import shutil import subprocess import sys from ansible import release def main(): parser = argparse.ArgumentParser() parser.add_argument('--only-versions', action...
1,456
Python
.py
35
33.685714
103
0.632217
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
13,699
ansible-var-precedence-check.py
ansible_ansible/test/integration/targets/var_precedence/ansible-var-precedence-check.py
#!/usr/bin/env python # A tool to check the order of precedence for ansible variables # https://github.com/ansible/ansible/blob/devel/test/integration/test_var_precedence.yml from __future__ import annotations import json import os import sys import shutil import stat import subprocess import tempfile import yaml fr...
18,705
Python
.py
461
29.629067
136
0.546716
ansible/ansible
62,258
23,791
861
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)