-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor collections action to use new runner API (#211)
Refactor collections action to use new runner API Reviewed-by: https://github.com/apps/ansible-zuul
- Loading branch information
Showing
69 changed files
with
1,828 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
tests/fixtures/common/collections/ansible_collections/testorg/coll_1/galaxy.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
authors: | ||
- Ansible team (ansible-navigator) | ||
license_file: LICENSE | ||
name: coll_1 | ||
namespace: testorg | ||
readme: README.md | ||
version: 1.0.0 |
8 changes: 8 additions & 0 deletions
8
tests/fixtures/common/collections/ansible_collections/testorg/coll_2/galaxy.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
authors: | ||
- Ansible team (ansible-navigator) | ||
license_file: LICENSE | ||
name: coll_2 | ||
namespace: testorg | ||
readme: README.md | ||
version: 2.0.0 |
42 changes: 42 additions & 0 deletions
42
...fixtures/common/collections/ansible_collections/testorg/coll_2/plugins/lookup/lookup_2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
""" | ||
The get_path lookup plugin | ||
""" | ||
from __future__ import absolute_import, division, print_function | ||
|
||
__metaclass__ = type | ||
|
||
|
||
DOCUMENTATION = """ | ||
name: lookup_2 | ||
author: test | ||
plugin_type: lookup | ||
version_added: "2.0.0" | ||
short_description: This is test lookup plugin | ||
description: | ||
- This is test lookup plugin | ||
options: | ||
foo: | ||
description: | ||
- Dummy option I(foo) | ||
type: str | ||
required: True | ||
bar: | ||
description: | ||
- Dummy option I(bar) | ||
default: candidate | ||
type: str | ||
notes: | ||
- This is a dummy lookup plugin | ||
""" | ||
|
||
EXAMPLES = """ | ||
- name: Retrieve a value deep inside a using a path | ||
ansible.builtin.set_fact: | ||
value: "{{ lookup('testorg.coll_2.lookup_2', var1, var2) }}" | ||
""" | ||
|
||
RETURN = """ | ||
_raw: | ||
description: | ||
- One or more zero-based indices of the matching list items. | ||
""" |
46 changes: 46 additions & 0 deletions
46
...s/fixtures/common/collections/ansible_collections/testorg/coll_2/plugins/modules/mod_2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
from __future__ import absolute_import, division, print_function | ||
|
||
__metaclass__ = type | ||
|
||
|
||
DOCUMENTATION = """ | ||
module: mod_2 | ||
author: | ||
- test | ||
short_description: This is a test module | ||
description: | ||
- This is a test module | ||
version_added: 2.0.0 | ||
options: | ||
foo: | ||
description: | ||
- Dummy option I(foo) | ||
type: str | ||
bar: | ||
description: | ||
- Dummy option I(bar) | ||
default: candidate | ||
type: str | ||
choices: | ||
- candidate | ||
- running | ||
aliases: | ||
- bam | ||
notes: | ||
- This is a dummy module | ||
""" | ||
|
||
EXAMPLES = """ | ||
- name: test task-1 | ||
testorg.coll_2.mod_2: | ||
foo: somevalue | ||
bar: candidate | ||
""" | ||
|
||
RETURN = """ | ||
baz: | ||
description: test return 1 | ||
returned: success | ||
type: list | ||
sample: ['a','b'] | ||
""" |
Oops, something went wrong.