jctanner
f11b1454bb
prepare for future ansibot collection changes ( #68944 )
2020-04-14 13:11:05 -04:00
jctanner
c067beecda
disable bot notification spam ( #68460 )
...
* disable bot notification spam
* add new key to botmeta sanity
2020-03-25 11:45:53 -04:00
Matt Clay
b26ceb57ce
Remove file exists check from botmeta sanity test.
...
Many of the paths in botmeta will no longer exist after migration, making this check pointless.
2020-03-04 14:03:09 -08:00
John R Barker
322a4dc691
BOTMETA migrated_to should be namespace.collection ( #64029 )
2019-12-03 19:20:58 +00:00
Martin Krizek
c4b83619a6
botmeta sanity: check migrated_to on non-existing file ( #64551 )
2019-11-07 14:12:10 -05:00
John R Barker
1e8765f0d9
BOTMETA support migrated_to ( #63952 )
...
* BOTMETA support migrated_to
Allow BOTMETA to define if this part of the codebase has moved
into a Collection on Galaxy.
See also https://github.com/ansible/ansible/pull/63935
* Enforce migrated_to URL format
* pep8
2019-10-28 11:02:31 +00:00
Matt Clay
18867847f4
Split up "code smell" sanity tests. ( #60174 )
...
* Relocate ansible-only sanity tests.
* Get "code smell" sanity tests from multiple dirs.
- `test/lib/ansible_test/_data/sanity/code-smell/` - General purpose tests used for both Ansible and Ansible Collections.
- `test/sanity/code-smell/` - Tests specific to Ansible, will not be used for Ansible Collections.
2019-08-06 17:17:57 -07:00
Matt Clay
d651bda123
Relocate ansible-test code. ( #60147 )
...
* Initial move of `test/runner/` content.
`test/runner/lib/` -> `test/lib/ansible_test/_internal/`
`test/runner/` -> `test/lib/ansible_test/_internal/data/`
* Initial move of `test/sanity/` content.
`test/sanity/` -> `test/lib/ansible_test/_internal/data/sanity/` (except `test/sanity/ignore.txt`)
* Initial move of `test/units/pytest/` content.
`test/units/pytest/` -> `test/lib/ansible_test/_internal/data/pytest/`
* Follow-up move of `test/runner/unit/` content.
`test/lib/ansible_test/_internal/data/unit/` -> `test/lib/ansible_test/tests/unit/`
* Initial move of `ansible.cfg` content.
`test/units/ansible.cfg` -> `test/lib/ansible_test/_internal/data/units/ansible.cfg`
`test/env/ansible.cfg` -> `test/lib/ansible_test/_internal/data/env/ansible.cfg`
* Follow-up move of `data` directory.
`test/lib/ansible_test/_internal/data/` -> `test/lib/ansible_test/_data/`
* Update import statements.
* Add missing __init__.py for unit tests.
* Fix path references and miscellaneous issues.
2019-08-06 14:43:29 -07:00
Matt Clay
6645054329
Code cleanup for test infrastructure. ( #59046 )
...
* Remove useless object inheritance in test code.
* Remove unnecessary pass statements from test code.
* Comment on why certain pylint rules are ignored.
* Add more pylint test contexts.
* Fix import order.
* Remove unused variables.
* Remove unnecessary pass statement.
* Fix bad continuations.
* Remove unnecessary elif.
* Allow legitimate broad except statements.
* Allow legitimate protected access.
* Clean up names to make pylint pass.
2019-07-12 13:17:20 -07:00
Matt Clay
3f2b766d10
Add future and metaclass boilerplate to test code.
...
Continue to ignore:
- test/integration/
- test/legacy/
- test/units/
2019-07-12 09:18:24 -07:00
Jordan Borean
7bce6818eb
Added supershipit to botmeta sanity test ( #50219 )
2018-12-21 10:36:43 +10:00
John R Barker
e7da4975cc
Botmeta validate path macros ( #48980 )
...
BOTMETA validation - use path macros
Rather than hard coding the list of path macros, read them directly from
BOTMETA
2018-11-21 11:15:56 +00:00
John R Barker
f4f5d941e5
botmeta support: core ( #45917 )
...
* botmeta enforce `support: core`
2018-09-25 18:37:01 +01:00
Matt Clay
e7426e3795
Minor cleanup of code-smell tests. ( #45658 )
...
* Minor cleanup of code-smell tests.
* Add exception handling for YAML load.
2018-09-14 11:12:06 -07:00
John R Barker
822236810e
BOTMETA Validator + Bulk tidyup, support:(core,community,network) ( #44903 )
...
plugins/ is COMMUNITY
Set sensible defaults for directories
support:network for the platforms that we Networking SUPPORTS,
everything else is COMMUNITY
Mark other support:network (ansible-connection, etc)
Infoblox is support:core
contrib/ by definition should be support:community
Remove duplicated labels
Make yamllint happy(ier)
Adds sanity test to ensure BOTMETA.yml is valid
2018-09-14 12:33:23 +01:00