Commit Graph

132 Commits (main)

Author SHA1 Message Date
Priyam Sahoo 1c9866e8d8
Added 'ip', 'ip_address' test plugins (#68)
Added 'ip', 'ip_address' test plugins

Reviewed-by: https://github.com/apps/ansible-zuul
2021-05-06 11:12:27 +00:00
Priyam Sahoo c09bbacdbc
Added 'in_any_network', 'in_network', 'in_one_network' test plugins (#66)
Added 'in_any_network', 'in_network', 'in_one_network' test plugins

Reviewed-by: https://github.com/apps/ansible-zuul
2021-05-03 14:22:35 +00:00
Ashwini Mhatre 43e77543d9
Add to_xml and from_xml filter plugin (#56)
Add to_xml and from_xml filter plugin

Reviewed-by: https://github.com/apps/ansible-zuul
2021-04-09 13:20:17 +00:00
Ganesh Nalawade f5dd4b80e7
Fix jsonschma input data validation (#50)
Fix jsonschma input data validation

Reviewed-by: https://github.com/apps/ansible-zuul
2021-03-15 09:00:44 +00:00
Ganesh Nalawade 4c531bb418
Fix cli_parse template_path read error (#51)
Fix cli_parse template_path read error

Reviewed-by: https://github.com/apps/ansible-zuul
2021-03-10 03:46:23 +00:00
Ganesh Nalawade 1ce477a85b
Fix cli_parse module to support netcommon sub-plugins (#45)
Fix cli_parse module to support netcommon sub-plugins

Reviewed-by: https://github.com/apps/ansible-zuul
2021-02-17 13:07:25 +00:00
Paul Belanger 67b4ae93f2
Add plugin_type for ansible-doc (#41)
Add plugin_type for ansible-doc

Reviewed-by: https://github.com/apps/ansible-zuul
2021-02-01 19:58:18 +00:00
Ganesh Nalawade 8aa8916e01
Move sub plugins under plugins/sub_plugins directory and common code in plugin_utils (#33)
Move sub plugins under plugins/sub_plugins directory and common code in plugin_utils

Reviewed-by: https://github.com/apps/ansible-zuul
2021-01-29 06:05:24 +00:00
Ganesh Nalawade dccab0d9f1
Ansible 3.0.0 collection inclusion releated changes (#32)
Ansible 3.0.0 collection inclusion releated changes

Reviewed-by: https://github.com/apps/ansible-zuul
2021-01-25 11:27:04 +00:00
Ganesh Nalawade f1954296eb
Add docs for cli_parse and fact_diff (#29)
Add docs for cli_parse and fact_diff

Reviewed-by: https://github.com/apps/ansible-zuul
2020-12-08 03:32:45 +00:00
Sandra McCann c9434fa95f
[1/2]docs copyedit for the ansible.utils collection (#26)
[1/2]docs copyedit for the ansible.utils collection

Reviewed-by: https://github.com/apps/ansible-zuul
2020-12-03 06:03:43 +00:00
Ganesh Nalawade a22cbd97b2
Add cli_parse module and plugins (#28)
Add cli_parse module and plugins

Reviewed-by: https://github.com/apps/ansible-zuul
2020-12-02 13:57:56 +00:00
Bradley A. Thornton 3d762f7800
CI cleanup (#23)
CI cleanup

Reviewed-by: https://github.com/apps/ansible-zuul
2020-10-30 21:36:30 +00:00
GomathiselviS 7f2b4e2b01
Testing CI (#21)
* DNM: Testing CI

* adding system-required

* removed .github

* Deleted .github

* build-ansible-collection

* removed build-ansible-collection

* Added integration job

* removed zuul.yaml

* testing

* Revert "removed zuul.yaml"

This reverts commit 6f64229926.

* removed nw integration job
2020-10-30 05:43:52 -07: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 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 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
cidrblock ac041e21a0 Move to common/utils.py 2020-10-13 08:50: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 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