Commit Graph

20 Commits (main)

Author SHA1 Message Date
Mark0016 8cba2c3b9e
cli_parse: Fix finding relative template_path when used inside role/collection (#333)
* Fix finding relative template_path when provided

This allows parser.template_path to behave as expected inside roles or
collections when a path relative to the role/collection directory is
provided.

* add tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update tests

* add working tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* updates

* minor changes

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Delete tests/integration/inventory

* add tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add netcommon dependency

* changes

* delete tests as CI is failing

* changes

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: Mark Vasi <mark.vasi@embedit.com>
Co-authored-by: Ruchi Pakhle <ruchipakhle@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ruchi Pakhle <72685035+Ruchip16@users.noreply.github.com>
2024-07-25 22:07:08 +05:30
Vinay M db14f96453
Removed conditional check for deprecated ansible.netcommon.cli_parse (#362)
* Removed conditional check for deprecated ansible.netcommon.cli_parse

* remove warning when using netcommon parser
2024-07-25 20:04:11 +05:30
janorga 31c8097e53
fix cli_parse: require connection (#357)
* fix cli_parse: require connection

* add changelog fragment

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-03 20:31:55 +05:30
Ashwini Mhatre 8dc11de0a9
Avoid unnecessary use of a persistent connection (#326)
* Avoid unnecessary use of a persistent connection

* Address review comments

* Update add_require_Connection.yaml

---------

Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
2024-01-23 12:31:57 +05:30
pre-commit-ci[bot] 1c31436512
[pre-commit.ci] pre-commit autoupdate (#290)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/asottile/add-trailing-comma: v2.5.1 → v3.0.0](https://github.com/asottile/add-trailing-comma/compare/v2.5.1...v3.0.0)
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.9-for-vscode → v3.0.0](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.9-for-vscode...v3.0.0)
- [github.com/psf/black: 23.3.0 → 23.7.0](https://github.com/psf/black/compare/23.3.0...23.7.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-19 09:29:35 -04:00
Rohit Thakur 7de75fbd9e
add validated content plugin support (#201)
* add validated content plugin support

Signed-off-by: Rohit Thakur <rohitthakur2590@outlook.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Signed-off-by: Rohit Thakur <rohitthakur2590@outlook.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-03 14:43:04 +00:00
Kate Case e7143c16bd
Drop 2.7 shim (#202) 2022-08-24 09:28:22 -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
Nathaniel Case ad9d3e1399
New validate sub-plugin "config" (#112)
New validate sub-plugin "config"

SUMMARY


Implement ansible-collections/ansible.network#15 as a validate sub-plugin.
ISSUE TYPE


Feature Pull Request

COMPONENT NAME

validate

Reviewed-by: Ganesh Nalawade <None>
Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
Reviewed-by: Nathaniel Case <this.is@nathanielca.se>
Reviewed-by: None <None>
2022-01-28 00:02:36 +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
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 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
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 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