mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-23 04:24:00 -07:00
Initial ansible-test implementation. (#18556)
This commit is contained in:
parent
d95eac16eb
commit
6bbd92e422
191 changed files with 5483 additions and 48 deletions
5
test/sanity/ansible-doc/skip.txt
Normal file
5
test/sanity/ansible-doc/skip.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
async_wrapper
|
||||
fireball
|
||||
win_dotnet_ngen
|
||||
xenserver_facts
|
||||
znode
|
|
@ -5,6 +5,7 @@ BASESTRING_USERS=$(grep -r basestring . \
|
|||
--exclude-dir .tox \
|
||||
| grep isinstance \
|
||||
| grep -v \
|
||||
-e test/results/ \
|
||||
-e lib/ansible/compat/six/_six.py \
|
||||
-e lib/ansible/module_utils/six.py \
|
||||
-e lib/ansible/modules/core/ \
|
||||
|
|
18
test/sanity/code-smell/pylint-ansible-test.sh
Executable file
18
test/sanity/code-smell/pylint-ansible-test.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd test/runner/
|
||||
|
||||
pylint --max-line-length=120 --reports=n ./*.py ./*/*.py \
|
||||
--jobs 2 \
|
||||
--rcfile /dev/null \
|
||||
--function-rgx '[a-z_][a-z0-9_]{2,40}$' \
|
||||
-d unused-import \
|
||||
-d too-few-public-methods \
|
||||
-d too-many-arguments \
|
||||
-d too-many-branches \
|
||||
-d too-many-locals \
|
||||
-d too-many-statements \
|
||||
-d too-many-nested-blocks \
|
||||
-d too-many-instance-attributes \
|
||||
-d too-many-lines \
|
||||
-d too-many-return-statements
|
1
test/sanity/code-smell/skip.txt
Normal file
1
test/sanity/code-smell/skip.txt
Normal file
|
@ -0,0 +1 @@
|
|||
inappropriately-private.sh
|
1
test/sanity/shellcheck/skip.txt
Normal file
1
test/sanity/shellcheck/skip.txt
Normal file
|
@ -0,0 +1 @@
|
|||
test/sanity/code-smell/boilerplate.sh
|
7
test/sanity/validate-modules/skip.txt
Normal file
7
test/sanity/validate-modules/skip.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
lib/ansible/modules/core/utilities/logic/async_status.py
|
||||
lib/ansible/modules/core/utilities/helper/_fireball.py
|
||||
lib/ansible/modules/core/utilities/helper/_accelerate.py
|
||||
lib/ansible/modules/core/test
|
||||
lib/ansible/modules/core/.github
|
||||
lib/ansible/modules/extras/test
|
||||
lib/ansible/modules/extras/.github
|
Loading…
Add table
Add a link
Reference in a new issue