Commit Graph

13 Commits (main)

Author SHA1 Message Date
Kate Case 462e4e7f71
Clean up test failures (#216)
* Fix arguments-renamed

* Handle changed behavior in 2.15
2022-10-13 11:01:42 -04:00
Bradley A. Thornton a0622d06ce
Add trailing comma support to pre-commit (#190) 2022-06-01 18:05:10 +05:30
Bradley A. Thornton 2541cb3f6a
Add isort, increase black line length (#189) 2022-05-26 13:18:57 -04:00
Sagar Paul 9294a2df8f
doc fixes (#134)
Minor documentation fixes

SUMMARY

Minor documentation fixes and updated doc-string

ISSUE TYPE


Docs Pull Request

Reviewed-by: Ashwini Mhatre <mashu97@gmail.com>
Reviewed-by: None <None>
2022-01-31 10:30:34 +00:00
Ashwini Mhatre 61a826c997
Update validate to use 2.11 ArgumentSpecValidator if available (#86)
Update validate to use 2.11 ArgumentSpecValidator if available

SUMMARY

fixes: #85

ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Bradley A. Thornton <bthornto@redhat.com>
Reviewed-by: Ashwini Mhatre <mashu97@gmail.com>
Reviewed-by: None <None>
2021-08-03 08:04:33 +00:00
stoned 0a2e083c9b
Make to_paths handles empty list and mapping (#58)
Make to_paths handles empty list and mapping

Reviewed-by: https://github.com/apps/ansible-zuul
2021-06-17 07:26:13 +00:00
Ganesh Nalawade 1807ee7c7b
Add validate action/lookup/filter/test plugin (#13)
* Initial commit

* Add validate lookup/filter/test plugin

*  Update agrspec validation logic
*  Add validate lookup/filter/test plugin

* minor updates

* remve unwanted code

* doc update

* update jsonschema validator plugin

* Add validate sub-plugin configurable option

* fix black failures

* fix ansible-test validate module issue

* fix santiy issues

* more santiy fixes

* remove GA black formatting

* add black

* fix black formatting

* fix black issues

* Add integration test and fix review comments

* add jsonschema to requirments

* fix ci issues

* update GA to install requirments

* fix GA to install requirments

* move ValidateBase to base file

* fix library not found issue in CI

* add unit test
2020-10-28 13:39:20 -07:00
Bradley A. Thornton 52118d8bb7
Make 'doc' the default schema format (#16)
Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-21 06:08:29 -07:00
Bradley A. Thornton bcddde229d
Plugin cleanup (#14)
* WIP

* Add argspec validation to plugins, restructure tests

* Update docs

* Pre PY3.8 compat changes

* Run black to fix quotes

* Seems the order of missing keys varies between 2.9 and 2.10

* More error ordering issues fixed during argspec validation

* More black, wrong version

Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-20 12:14:23 -07:00
Bradley A. Thornton 024daa9dfe
Argspec default fix (#12)
* Return data updated with default values from aav.validate()

* Update aav docs

Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-20 07:50:08 -07:00
Bradley A. Thornton 59eb835d96
Ansible arg spec validation using AnsibleModule (#9)
* Add argspec validator

* Add argspec validator

* Remove usused param

* lint fix

* Remove unneeded import

* Add sort_list tests

* Unit tests for dict_merge

* lint fix

* argspec unit tests

* Remove q

* Rerun black

* doc updates

Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-19 08:23:50 -07:00
Bradley A. Thornton 197b9d93b9
Add index_of plugin (#6)
* Add index_of filter/lookup plugin

* Update README

* Fix unittest import, black

* Remove true/false tests as ansible 2.9 uses jinja 2.10, need 2.11

* Add jinja > 2.11 to unit test requirements

* Reformat requirements file

* Limit unit to tests available in < jinja 2.11

* Reblack

* Remove float (j 2.11)

* Add integration tests, update docstring

* Comment out test using integer, requires jinja 2.11

* doc updates

Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-15 05:52:14 -07:00
cidrblock ac041e21a0 Move to common/utils.py 2020-10-13 08:50:48 -07:00