Skip to content

Commit

Permalink
enhance linting with mocked roles and modules
Browse files Browse the repository at this point in the history
  • Loading branch information
cicharka committed May 22, 2024
1 parent 470ee81 commit 38c45e3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,19 @@ exclude_paths:
verbosity: 1

# # Mock modules or roles in order to pass ansible-playbook --syntax-check
# mock_modules:
mock_modules:
- cisco.catalystwan.wait_for_api_server
- azure.azcollection.azure_rm_account_info
# - zuul_return
# # note the foo.bar is invalid as being neither a module or a collection
# - fake_namespace.fake_collection.fake_module
# - fake_namespace.fake_collection.fake_module.fake_submodule
# mock_roles:
mock_roles:
- cisco.sdwan_deployment.aws_network_infrastructure
- cisco.sdwan_deployment.aws_teardown
- cisco.sdwan_deployment.azure_network_infrastructure
- cisco.sdwan_deployment.azure_teardown
- cisco.catalystwan.software_upgrades_remote
# - mocked_role
# - author.role_name # old standalone galaxy role
# - fake_namespace.fake_collection.fake_role # role within a collection
Expand Down
13 changes: 13 additions & 0 deletions meta/requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---

collections:
- name: amazon.aws
version: 6.5.0
- name: azure.azcollection
version: 1.19.0
- name: git@github.com:cisco-open/ansible-collection-catalystwan.git
type: git
version: main
- name: git@github.com:cisco-open/ansible-collection-sdwan-deployment.git
type: git
version: main

0 comments on commit 38c45e3

Please sign in to comment.