Commit Graph

13 Commits (4d6c11e6879a6347ec6124c7f9358d84b621a58a)

Author SHA1 Message Date
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 c20ba34c7d
Fact diff (#15)
* Add fact_diff action

* Formatting

* Update docs

* Add skip_lines

* Update docs

* black

* bug fix

* Add units for fact_diff

* Initial changes to support plugin architecture

* Restructure docstring

* Integration test fix

* Wrap diff plugin with try/except

* Fix integration test

* Restructure code to allow for plugin failure test

* Examples, docs

* Fix debug statement

* Update examples

* Minor doc updates

* Minor doc updates

* Minor doc updates

* Add change log

Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-23 04:48:16 -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
cidrblock fc332195b3 Fix black errors 2020-10-12 12:18:10 -07:00
cidrblock 7e1e66587d Add integration tests 2020-10-12 11:36:17 -07:00
cidrblock 187b776c3f Add units 2020-10-09 11:43:22 -07:00
cidrblock 9d3a6cad0a get_path and to_paths 2020-10-09 10:07:26 -07:00
cidrblock 0ffadc48c6 init_commit 2020-10-08 15:01:46 -07:00