Skip to content

Commit d730db3

Browse files
Fix YAML indentation issues: assert blocks (6-space), list items alignment, config structures - reduced errors 122→111
1 parent 2b7c1b8 commit d730db3

File tree

1,121 files changed

+410333
-447
lines changed

Some content is hidden

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

1,121 files changed

+410333
-447
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
# ansible-lint configuration
3+
4+
# Exclude paths that shouldn't be linted
5+
exclude_paths:
6+
- .github/
7+
- .git/
8+
9+
# Skip specific rules
10+
skip_list:
11+
# Skip ignore-errors - used legitimately in test setup/cleanup tasks where
12+
# tasks may fail intentionally (e.g., version detection, cleanup operations)
13+
- ignore-errors

.ansible/collections/ansible_collections/cisco/dcnm/.ansible/.lock

Whitespace-only changes.
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
<!--- Please keep this note for the community --->
11+
12+
### Community Note
13+
14+
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
15+
* Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
16+
* If you are interested in working on this issue or have submitted a pull request, please leave a comment
17+
18+
<!--- Thank you for keeping this note for the community --->
19+
20+
### Ansible Version and collection version
21+
22+
<!--- Please run `ansible --version` to show the ansible version. --->
23+
24+
### DCNM version
25+
26+
* V x.x.x
27+
28+
### Affected module(s)
29+
30+
<!--- Please list the affected resources and data sources. --->
31+
32+
* dcnm_XXXXX
33+
34+
### Ansible Playbook
35+
36+
<!--- Information about code formatting: https://help.github.com/articles/basic-writing-and-formatting-syntax/#quoting-code --->
37+
38+
```yaml
39+
# Copy-paste your anisble playbook here
40+
```
41+
42+
### Debug Output
43+
44+
<!---
45+
Please provide a link to a GitHub Gist containing the complete debug output. Please do NOT paste the debug output in the issue; just paste a link to the Gist.
46+
47+
To obtain the debug output, use `ansible-playbook -vvv`
48+
--->
49+
50+
### Expected Behavior
51+
52+
<!--- What should have happened? --->
53+
54+
### Actual Behavior
55+
56+
<!--- What actually happened? --->
57+
58+
### Steps to Reproduce
59+
60+
<!--- Please list the steps required to reproduce the issue. --->
61+
62+
### References
63+
64+
<!---
65+
Information about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests
66+
67+
Are there any other GitHub issues (open or closed) or pull requests that should be linked here? Vendor documentation? For example:
68+
--->
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
<!--- Please keep this note for the community --->
11+
12+
### Community Note
13+
14+
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
15+
* Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
16+
* If you are interested in working on this issue or have submitted a pull request, please leave a comment
17+
18+
<!--- Thank you for keeping this note for the community --->
19+
20+
### Description
21+
22+
<!--- Please leave a helpful description of the feature request here. --->
23+
24+
### New or Affected modules(s):
25+
26+
<!--- Please list the new or affected modules --->
27+
28+
* dcnm_XXXXX
29+
30+
### DCNM version
31+
32+
* V x.x.x
33+
34+
### Potential ansible task config
35+
36+
<!--- Information about code formatting: https://help.github.com/articles/basic-writing-and-formatting-syntax/#quoting-code --->
37+
38+
```yaml
39+
# Copy-paste your ansible playbook
40+
```
41+
42+
### References
43+
44+
<!---
45+
Information about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests
46+
47+
Are there any other GitHub issues (open or closed) or pull requests that should be linked here? Vendor blog posts or documentation? For example:
48+
49+
--->
50+
51+
**Additional context**
52+
Add any other context or screenshots about the feature request here.
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the action will run.
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the develop branch
8+
push:
9+
branches: [ develop, main ]
10+
pull_request:
11+
branches: [ develop, main ]
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
# This workflow contains a single job called "build"
19+
build:
20+
name: Build DCNM collection
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
ansible: [2.15.13, 2.16.14, 2.17.12, 2.18.6]
25+
steps:
26+
- name: Check out code
27+
uses: actions/checkout@v2
28+
29+
- name: Set up Python "3.11"
30+
uses: actions/setup-python@v1
31+
with:
32+
python-version: "3.11"
33+
34+
- name: Install ansible-base (v${{ matrix.ansible }})
35+
run: pip install https://github.com/ansible/ansible/archive/v${{ matrix.ansible }}.tar.gz --disable-pip-version-check
36+
37+
- name: Build a DCNM collection tarball
38+
run: ansible-galaxy collection build --output-path "${GITHUB_WORKSPACE}/.cache/v${{ matrix.ansible }}/collection-tarballs"
39+
40+
- name: Store migrated collection artifacts
41+
uses: actions/[email protected]
42+
with:
43+
name: collection_v${{ matrix.ansible }}
44+
path: .cache/v${{ matrix.ansible }}/collection-tarballs
45+
overwrite: true
46+
47+
48+
sanity:
49+
name: Run ansible-sanity tests
50+
needs:
51+
- build
52+
runs-on: ubuntu-latest
53+
strategy:
54+
matrix:
55+
ansible: [2.15.13, 2.16.14, 2.17.12, 2.18.6]
56+
python: ["3.9", "3.10", "3.11"]
57+
exclude:
58+
- ansible: 2.16.14
59+
python: "3.9"
60+
- ansible: 2.17.12
61+
python: "3.9"
62+
- ansible: 2.18.6
63+
python: "3.9"
64+
- ansible: 2.18.6
65+
python: "3.10"
66+
steps:
67+
- name: Set up Python (v${{ matrix.python }})
68+
uses: actions/setup-python@v1
69+
with:
70+
python-version: ${{ matrix.python }}
71+
72+
- name: Install ansible-base (v${{ matrix.ansible }})
73+
run: pip install https://github.com/ansible/ansible/archive/v${{ matrix.ansible }}.tar.gz --disable-pip-version-check
74+
75+
- name: Download migrated collection artifacts
76+
uses: actions/[email protected]
77+
with:
78+
name: collection_v${{ matrix.ansible }}
79+
path: .cache/v${{ matrix.ansible }}/collection-tarballs
80+
81+
- name: Install the collection tarball
82+
run: ansible-galaxy collection install .cache/v${{ matrix.ansible }}/collection-tarballs/*.tar.gz
83+
84+
- name: Run sanity tests
85+
run: ansible-test sanity --docker --python ${{matrix.python}} -v --color --truncate 0
86+
working-directory: /home/runner/.ansible/collections/ansible_collections/cisco/dcnm
87+
88+
89+
unit-tests:
90+
name: Run DCNM Unit Tests
91+
needs:
92+
- build
93+
runs-on: ubuntu-latest
94+
strategy:
95+
matrix:
96+
ansible: [2.15.13, 2.16.14, 2.17.12, 2.18.6]
97+
steps:
98+
- name: Set up Python "3.11"
99+
uses: actions/setup-python@v1
100+
with:
101+
python-version: "3.11"
102+
103+
- name: Install ansible-base (v${{ matrix.ansible }})
104+
run: pip install https://github.com/ansible/ansible/archive/v${{ matrix.ansible }}.tar.gz --disable-pip-version-check
105+
106+
- name: Install coverage (v7.3.4)
107+
run: pip install coverage==7.3.4
108+
109+
- name: Install pytest (v7.4.4)
110+
run: pip install pytest==7.4.4
111+
112+
- name: Install requests
113+
run: pip install requests
114+
115+
- name: Download migrated collection artifacts
116+
uses: actions/[email protected]
117+
with:
118+
name: collection_v${{ matrix.ansible }}
119+
path: .cache/v${{ matrix.ansible }}/collection-tarballs
120+
121+
- name: Install the collection tarball
122+
run: ansible-galaxy collection install .cache/v${{ matrix.ansible }}/collection-tarballs/*.tar.gz
123+
124+
- name: Run DCNM Unit tests
125+
run: coverage run --source=. -m pytest tests/unit/. -vvvv
126+
working-directory: /home/runner/.ansible/collections/ansible_collections/cisco/dcnm
127+
env:
128+
PYTHONPATH: /home/runner/.ansible/collections
129+
130+
- name: Generate coverage report
131+
run: coverage report
132+
working-directory: /home/runner/.ansible/collections/ansible_collections/cisco/dcnm
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
MANIFEST
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
.pytest_cache/
49+
50+
# Translations
51+
*.mo
52+
*.pot
53+
54+
# Sphinx documentation
55+
docs/_build/
56+
57+
# PyBuilder
58+
target/
59+
60+
# Jupyter Notebook
61+
.ipynb_checkpoints
62+
63+
# pyenv
64+
.python-version
65+
66+
# Environments
67+
.env
68+
.venv
69+
env/
70+
venv/
71+
ENV/
72+
env.bak/
73+
venv.bak/
74+
75+
# mkdocs documentation
76+
/site
77+
78+
# mypy
79+
.mypy_cache/
80+
81+
# Ignore Integration Tests Files Directories
82+
tests/integration/targets/*/files.ansible/
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"python.testing.pytestArgs": ["tests"],
3+
"python.testing.unittestEnabled": false,
4+
"python.testing.pytestEnabled": true
5+
}

0 commit comments

Comments
 (0)