Commit Graph

41 Commits (1807ee7c7b27f767f0e8b851d4f77aa8918a2720)

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 a727928e3d
Show params in use for lookup and filter plugins (#18)
* Dedicated DOCUMENTATION for get_path

* Comment out cross collection example

* Remove sanity exception, unneeded

* Remove extra empty lines

* Dedicated DOCUMENTATION for index_of filter plugin

* Dedicated DOCUMENTATION for to_paths filter plugin

* Add rst docs for filter plugins, update README

* lint and pep8 fixes

* filter plugin doc update for wantlist

* Because doc keys are sorted, add example of options in use

* Update docs

Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-21 11:22:30 -07:00
Bradley A. Thornton 3c42f13b30
Split filter docs (#17)
* Dedicated DOCUMENTATION for get_path

* Comment out cross collection example

* Remove sanity exception, unneeded

* Remove extra empty lines

* Dedicated DOCUMENTATION for index_of filter plugin

* Dedicated DOCUMENTATION for to_paths filter plugin

* Add rst docs for filter plugins, update README

* lint and pep8 fixes

* filter plugin doc update for wantlist

Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-21 10:45:34 -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 188463f7be
update_fact plugin + units (#10)
* update_fact plugin + units

* Update README, add doc

* Add some update_fact integration tests

* Add missing test for not (index_of)

* Update fact doc updates

* Update rst from doc

* Examples as yaml

* Some developer notes (#11)

Co-authored-by: cidrblock <brad@thethorntons.net>

* Updated self._task.args from updated_data provided back from aav

* Argspec default fix (#12)

* Return data updated with default values from aav.validate()

* Update aav docs

Co-authored-by: cidrblock <brad@thethorntons.net>

* update_fact plugin + units

* Update README, add doc

* Add some update_fact integration tests

* Add missing test for not (index_of)

* Update fact doc updates

* Update rst from doc

* Examples as yaml

* Updated self._task.args from updated_data provided back from aav

* recheck

* 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>

* update_fact plugin + units

* Update README, add doc

* Add some update_fact integration tests

* Update fact doc updates

* Update rst from doc

* Examples as yaml

* Updated self._task.args from updated_data provided back from aav

* recheck

Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-20 12:32:35 -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 3011554520
Some developer notes (#11)
Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-20 05:35:36 -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 12333c2386
Simple doc updates (#8)
Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-15 06:58:59 -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
Bradley A. Thornton 309ccb5563
Update merge_on_gate.yml (#7)
Fix to merge action
2020-10-15 12:37:54 +00:00
Bradley A. Thornton 97052314c8
modify readme (#5)
Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-13 21:23:50 +00:00
Bradley A. Thornton 2e14bcecc1
Merge pull request #4 from cidrblock/add_gate_merge
Add gate merge
2020-10-13 14:06:50 -07:00
Bradley A. Thornton ff18364f77
Merge branch 'main' into add_gate_merge 2020-10-13 13:58:30 -07:00
cidrblock b5bcdf7ac7 Add merge on gate 2020-10-13 13:56:57 -07:00
cidrblock 701299c3fe Add runs-on to publish 2020-10-13 13:55:38 -07:00
Bradley A. Thornton 54b694990d
Merge pull request #3 from cidrblock/sed_i
Add -i to sed to change galaxy.yml in place
2020-10-13 09:13:04 -07:00
cidrblock ff76404c23 Add -i to sed to change galaxy.yml in place 2020-10-13 09:11:57 -07:00
Bradley A. Thornton 31d89a89e1
Merge pull request #2 from cidrblock/ci_release
Add runs-on to publish
2020-10-13 09:08:34 -07:00
cidrblock e55c060086 Add runs-on to publish 2020-10-13 09:01:43 -07:00
Bradley A. Thornton c846a94883
Merge pull request #1 from cidrblock/to_dotbracket
Add get_path and to_paths lookup/filter plugins
2020-10-13 08:56:18 -07:00
cidrblock ac041e21a0 Move to common/utils.py 2020-10-13 08:50:48 -07:00
cidrblock 0c988dbb38 Fix sanity 2020-10-13 07:04:06 -07:00
cidrblock dadc33dc55 Auto-release 2020-10-13 06:52:48 -07:00
cidrblock 729f441e57 Line length to 160 2020-10-12 12:28:37 -07:00
cidrblock fc332195b3 Fix black errors 2020-10-12 12:18:10 -07:00
cidrblock 2c8602b3f9 Add diff to black 2020-10-12 12:11:35 -07:00
cidrblock 3fece8765a Move black to CI 2020-10-12 12:04:00 -07:00
cidrblock bdd4ef9c26 Add job for black 2020-10-12 11:59:40 -07:00
cidrblock 7e1e66587d Add integration tests 2020-10-12 11:36:17 -07:00
cidrblock 61cc491133 Test only top 1000 2020-10-09 12:32:48 -07:00
cidrblock e6734bf291 Additional CI fixes 2020-10-09 12:12:43 -07:00
cidrblock e3af5f5325 Disable integration tests until needed 2020-10-09 12:05:16 -07:00
cidrblock aa33905ce2 Remove testing aagainst devel 2020-10-09 12:01:19 -07:00
cidrblock a7faff9933 Fix CI 2020-10-09 11:57: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
Ganesh Nalawade 9672b6b361 Initial commit 2020-10-06 23:34:14 +05:30