Commit Graph

319 Commits (8cba2c3b9edf653170fd523adbe99e02707f9ecf)

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
Vladimir Botka 6c1c3a4b81
remove_keys: Add complex integration tests. (#204)
* remove_keys: Add complex integration tests.

* Changelog

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

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

* fix lint

* fix more lint

* rewrite test

* fix lint

* fix lint again

* fix lint final

* fix lint warnings

* remove unnecessary file

* fix spacing

* added seprate file for vars

* fix intergration tests

---------

Co-authored-by: Vinay M <63404819+roverflow@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: roverflow <roverflow5@gmail.com>
2024-07-22 12:22:48 +05:30
Vladimir Botka 41339232c3
keep_keys: Add complex integration tests. (#203)
* keep_keys: Add complex integration tests.

* Changelog

* fix lint

* fix lint warnings

* fix final warning

* add seprate file for vars

---------

Co-authored-by: Vinay M <63404819+roverflow@users.noreply.github.com>
Co-authored-by: roverflow <roverflow5@gmail.com>
2024-07-22 12:10:55 +05:30
Giorgi Zeikidze 6425ea2299
add wildcard mask/hostmask to ipaddr filter doc page (#324)
* add wildcard mask/hostmask to ipaddr filter doc page

This might seem like an unnecessary addition but wildcard filter not being here has cost me couple of hours and a failed exam. I tried to follow convention as much as I could

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

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

* add changelog and add a note in readme

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

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

* add a note in readme check

* update readme

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

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

* correct the link

* correct the link

* correct the link

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

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

* Update changelogs/fragments/324.yaml

Co-authored-by: Sagar Paul <sagpaul@redhat.com>

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sagar Paul <sagpaul@redhat.com>
Co-authored-by: Ruchi Pakhle <72685035+Ruchip16@users.noreply.github.com>
Co-authored-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
Co-authored-by: Ruchi Pakhle <ruchipakhle@gmail.com>
2024-07-19 20:13:24 +05:30
Vladimir Botka 3aeb82204f
replace_keys: Add complex integration tests. (#200)
* replace_keys: Add complex integration tests.

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

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

* Changelog

* Add fail_msg to first test.

* some changes

* adds correct integration tests :D

* delete the inventory file

* use fqcn format

* delete the unwanted file

* fix integration test

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

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

* update

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ruchi Pakhle <ruchipakhle@gmail.com>
2024-07-19 15:46:44 +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
pre-commit-ci[bot] 827ce48ff5
[pre-commit.ci] pre-commit autoupdate (#356)
updates:
- [github.com/pycqa/flake8: 7.0.0 → 7.1.0](https://github.com/pycqa/flake8/compare/7.0.0...7.1.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-03 19:04:48 +05:30
pre-commit-ci[bot] 6e9dd77b43
[pre-commit.ci] pre-commit autoupdate (#327)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0)
- [github.com/psf/black: 23.12.1 → 24.4.2](https://github.com/psf/black/compare/23.12.1...24.4.2)

* [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>
Co-authored-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
2024-06-11 10:02:49 +05:30
Ruchi Pakhle 88acab517d
Prepare release v5.0.0 (#355)
* Prepare release v5.0.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>
2024-06-10 13:47:02 +00:00
Ruchi Pakhle 111b1158ec
Update ansible-core to 2.15.0 (#354)
* Update ansible-core to 2.15

* add release_summary

* [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-06-10 19:05:53 +05:30
Ruchi Pakhle 6b0a179bbe
update changelog.rst in Readme (#351) 2024-05-10 20:55:18 +05:30
Ruchi Pakhle cc2fc8b23f
Prepare release 4.1.0 (#350)
* Prepare release 4.1.0

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

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

* review changes

* [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-04-15 18:39:45 +05:30
Nilashish Chakraborty 9f790615c6
Update test-requirements.txt 2024-04-15 17:38:00 +05:30
Marcin Lewandowski fc3a2a116b
fix: netaddr fallback to is_private when is_global is not available (#348)
* fix: netaddr fallback to is_private when is_global is not available

* fix: adjust fallback logic to edge cases

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

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

* fix: address pylint errors

* fix: comment spacing in test task broken by prettier

* changelog update

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

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

---------

Co-authored-by: Marcin Lewandowski <mlewandowski@pl.ibm.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ruchi Pakhle <ruchipakhle@gmail.com>
2024-04-15 16:11:26 +05:30
Nilashish Chakraborty b0627b8d16
Update CHANGELOG.rst 2024-03-28 21:04:52 +05:30
Nilashish Chakraborty 70442f5b85
Fix CHANGELOG.rst (#345)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
2024-03-28 21:00:21 +05:30
Nilashish Chakraborty 8c852d0272
do not run linters through tox (#344)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
2024-03-28 19:29:13 +05:30
Nilashish Chakraborty bd78088e9d
remove unnecessary files (#343)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
2024-03-28 19:10:20 +05:30
Ruchi Pakhle 62f5a76d78
Prepare for major release 4.0.0 (#341)
* changelog PR

* update changelog

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

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

* Update CHANGELOG.rst

* Update CHANGELOG.rst

* Update CHANGELOG.rst

Co-authored-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
2024-03-28 12:31:52 +05:30
Ruchi Pakhle 1645351602
Remove Py27 compat files and update imports for magicmock and patch (#342)
* remove compat files and mock imports

* updates

* updates

* [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-03-28 11:30:53 +05:30
rizlas c176c23392
fix: netaddr is_private method deprecation (#338)
* fix: netaddr is_private method deprecation

* Update ipaddr.yaml

* Fix integretion test

* Update ipaddr.yaml

* Update main.yaml

* changelog: add changelog fragment about netaddr deprecation

* netaddr minimum version

---------

Co-authored-by: Ashwini Mhatre <amhatre@redhat.com>
2024-03-13 21:44:50 +05:30
Ashwini Mhatre 754bf36055
Undo changes done by https://github.com/ansible-collections/ansible.utils/pull/172 (#335)
* Undo changes done by https://github.com/ansible-collections/ansible.utils/pull/172

* Update bugfix_178.yaml

* Delete changelogs/fragments/bugfix_178.yaml

---------

Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
2024-03-01 11:36:54 +05:30
Ashwini Mhatre 133c461ce4
Fix nightly runs (#334)
* Fix nightly runs

* Update test-requirements.txt

* Update test-requirements.txt

* Update test-requirements.txt

* Update config.yaml

---------

Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
2024-02-16 15:49:45 +05:30
Ashwini Mhatre 2933ef2e37
Release 3.1.0 (#328)
* Release 3.1.0

* update galaxy version

---------

Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
Co-authored-by: KB-perByte <sagpaul@redhat.com>
2024-01-30 21:19:11 +05:30
Sagar Paul 786fa9891d
[GHA] Update reference for GitHub actions (#318)
* Update reference for GitHub actions

* tox lint file update

* Make names consistent

* ack - check_label

* check source

* fix utils ref

* update lint workflow

* test

* test again

* fix assert statement

* update workflows

* test change

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

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

* add back token refresh

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-30 19:25:26 +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
Ashwini Mhatre 92903a3a58
Enhance fact_diff to show common lines (#323)
* Enhance fact_diff to show common lines

* Add integration and unit tests

* Fix sanity

---------

Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
2024-01-16 17:55:39 +05:30
Akira Yokochi 259cb8b9e4
docs: Fixed validate lookup plugin and module filter examples in document (#325)
* fix validate examples

* [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-01-16 14:44:01 +05:30
Akira Yokochi 6842746a9d
docs: Fixed ipv6form filter document (#320)
* fix ipv6form doc

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

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

* add changelog fragment

* rename

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ashwini Mhatre <mashu97@gmail.com>
2024-01-04 14:57:55 +05:30
pre-commit-ci[bot] 35f20ca9c7
[pre-commit.ci] pre-commit autoupdate (#321)
updates:
- [github.com/pre-commit/mirrors-prettier: v4.0.0-alpha.4 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v4.0.0-alpha.4...v4.0.0-alpha.8)
- [github.com/PyCQA/isort: 5.13.0 → 5.13.2](https://github.com/PyCQA/isort/compare/5.13.0...5.13.2)
- [github.com/psf/black: 23.11.0 → 23.12.1](https://github.com/psf/black/compare/23.11.0...23.12.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-02 17:14:45 +05:30
pre-commit-ci[bot] 8168a2f343
[pre-commit.ci] pre-commit autoupdate (#319)
updates:
- [github.com/pre-commit/mirrors-prettier: v4.0.0-alpha.3 → v4.0.0-alpha.4](https://github.com/pre-commit/mirrors-prettier/compare/v4.0.0-alpha.3...v4.0.0-alpha.4)
- [github.com/PyCQA/isort: 5.12.0 → 5.13.0](https://github.com/PyCQA/isort/compare/5.12.0...5.13.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-13 18:38:13 +05:30
pre-commit-ci[bot] c3146b5b36
[pre-commit.ci] pre-commit autoupdate (#317)
updates:
- [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.3](https://github.com/pre-commit/mirrors-prettier/compare/v3.1.0...v4.0.0-alpha.3)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-06 18:47:23 +05:30
Ashwini Mhatre 23c7f10479
Prepare for release 3.0.0 (#316)
Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
2023-11-30 17:02:09 +05:30
Ashwini Mhatre 1424233e33
Prepare for major release (#315)
* Prepare for major release

* Add config.yml

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

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

* Update update_requires_ansible.yaml

---------

Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-30 15:56:37 +05:30
Sagar Paul 9b87f10f0d
fix lint - checkout before action (#309)
* fix lint - checkout before action

* Update tests.yml

* Create .ansible-lint

---------

Co-authored-by: Ashwini Mhatre <mashu97@gmail.com>
Co-authored-by: Ashwini Mhatre <amhatre@redhat.com>
2023-11-30 13:43:29 +05:30
Nilashish Chakraborty 0f8c4e1d45
Update tests.yml 2023-11-30 13:09:48 +05:30
Nilashish Chakraborty 344254fc96
Update tests.yml 2023-11-30 12:57:45 +05:30
Ashwini Mhatre 8d822ed9d7
Fix CI (#314)
* Fix syntax

* Fix tests

* Fix

* Fix

* Delete tests/integration/inventory

* Update module.yaml

* Update module.yaml

* Make config validate work after core updates

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>

* Fix tests

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>

* Another test fix and README update

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>

---------

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
Co-authored-by: NilashishC <nilashishchakraborty8@gmail.com>
2023-11-30 12:28:27 +05:30
Nilashish Chakraborty 4e88e4fe03
Rename test.yml to tests.yml 2023-11-29 11:34:36 +05:30
Ashwini Mhatre 1e63ff3682
Prepare for release 2.12.0 (#312)
Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
2023-11-27 17:18:28 +05:30
pre-commit-ci[bot] e0c809aa5a
[pre-commit.ci] pre-commit autoupdate (#301)
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0)
- [github.com/asottile/add-trailing-comma: v3.0.1 → v3.1.0](https://github.com/asottile/add-trailing-comma/compare/v3.0.1...v3.1.0)
- [github.com/pre-commit/mirrors-prettier: v3.0.0 → v3.1.0](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0...v3.1.0)
- [github.com/psf/black: 23.7.0 → 23.11.0](https://github.com/psf/black/compare/23.7.0...23.11.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
2023-11-24 12:14:31 +05:30
Nilashish Chakraborty 5c62ce663b
Update README.md 2023-11-24 11:43:15 +05:30
Nilashish Chakraborty f7c4bff769
Update test.yml 2023-11-24 11:41:23 +05:30
Nilashish Chakraborty fae5d9ecfb
Update test.yml 2023-11-24 11:41:00 +05:30
Nilashish Chakraborty 09cbc0a1d8
Update test.yml 2023-11-24 11:40:16 +05:30
Ashwini Mhatre 4f07a4afca
fact_diff filter plugin (#310)
* Add fact_diff filter plugin

* Add integration and unit tests

* Add changelog

* Add argspect test

* Add examples

* Fix lint

* Fix ansible-lint

* REvert changes

* Fix sanity

* Address review comments

* Delete tests/integration/inventory

---------

Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
2023-11-13 11:28:43 +05:30
Sagar Paul 6574d40a77
disable auto changelog PR on merge (#298) 2023-09-14 23:26:11 +05:30
Sagar Paul 1a336fb88a
prepare release 2.11.0 (#304)
* prepare release 2.11.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-09-07 14:27:47 +05:30
Ashwini Mhatre 4deddf2c3b
Feature ipv6 format (#295)
* Create ipv6form.py

* Update ipv6form.py

* Update ipv6form.py

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

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

* Add code

* Add docs

* Add uts and integration tests. fix sanity

* iFix sanity

* Fix sanity

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ashwini Mhatre <amhatre@amhatre-thinkpadt14sgen2i.pnq.csb>
2023-08-10 13:40:17 +05:30