fix(tooling): fixed molecule setup linked to previous path changes
This commit is contained in:
parent
a710ec9644
commit
170f972185
5 changed files with 16 additions and 13 deletions
|
@ -3,7 +3,7 @@ version: '3'
|
|||
tasks:
|
||||
modules:
|
||||
desc: run `ansible-test sanity` on collections to find common issues for modules and collections
|
||||
dir: collections/ansible_collections
|
||||
dir: ansible_collections
|
||||
vars:
|
||||
ANSIBLE_COLLECTIONS:
|
||||
sh: find -mindepth 2 -maxdepth 2 -type d
|
||||
|
@ -11,7 +11,7 @@ tasks:
|
|||
- for: { var: ANSIBLE_COLLECTIONS }
|
||||
task: 'test:module:sanity'
|
||||
vars:
|
||||
COLLECTION_PATH: 'collections/ansible_collections/{{.ITEM}}'
|
||||
COLLECTION_PATH: 'ansible_collections/{{.ITEM}}'
|
||||
|
||||
module:sanity:
|
||||
internal: true
|
||||
|
@ -21,7 +21,7 @@ tasks:
|
|||
|
||||
collections:
|
||||
desc: run molecule tests for all roles and collections.
|
||||
dir: collections/ansible_collections
|
||||
dir: ansible_collections
|
||||
vars:
|
||||
ANSIBLE_COLLECTIONS:
|
||||
sh: find -mindepth 2 -maxdepth 2 -type d
|
||||
|
@ -29,7 +29,7 @@ tasks:
|
|||
- for: { var: ANSIBLE_COLLECTIONS }
|
||||
task: 'test:collection:molecule'
|
||||
vars:
|
||||
COLLECTION_PATH: 'collections/ansible_collections/{{.ITEM}}'
|
||||
COLLECTION_PATH: 'ansible_collections/{{.ITEM}}'
|
||||
|
||||
collection:molecule:
|
||||
internal: true
|
||||
|
@ -40,7 +40,7 @@ tasks:
|
|||
module:github_artifact:
|
||||
desc: run a module from the collection for testing purposes
|
||||
vars:
|
||||
PLUGINS_DIR: '{{.ROOT_DIR}}/collections/ansible_collections/nullified/infrastructure/plugins'
|
||||
PLUGINS_DIR: '{{.ROOT_DIR}}/ansible_collections/nullified/infrastructure/plugins'
|
||||
cmd: |
|
||||
{{.PYTHON_WRAPPER}} python3 {{.PLUGINS_DIR}}/modules/github_artifact.py {{.PLUGINS_DIR}}/tests/github_artifact.json |
|
||||
{{.PYTHON_WRAPPER}} python3 -m json.tool | {{.PYTHON_WRAPPER}} pygmentize -l json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue