Commit Graph

260 Commits (6adf947ed88b95792ad62e45fb1119c8d9de7744)

Author SHA1 Message Date
Ashwini Mhatre 6adf947ed8
Enable ansible-lint for utils and fix ansible-lint issue (#278)
* Fix ansible-lint issue for utils

* fix ansible-lint

* Fix ansible-lint

* Fix ansible-lint

* Fix integration test
2023-05-19 10:43:21 +05:30
Ansible Bot c0e094637f
Changelog updated (#280)
Co-authored-by: Ansible Bot <devtools@ansible.com>
2023-05-18 11:31:30 +05:30
Sagar Paul 0fcbb14ab8
add release summary for 2.10.3 (#279) 2023-05-18 11:10:36 +05:30
Ansible Bot d47a286dec
Changelog updated (#277)
Co-authored-by: Ansible Bot <devtools@ansible.com>
2023-05-17 17:18:33 +05:30
Sagar Paul 7d4fa2bc56
CI enhancements (#276)
* CI enhancements

* changelog fix

* fix names
2023-05-17 16:27:48 +05:30
Ansible Bot eeec23e506
Changelog updated (#273)
Co-authored-by: Ansible Bot <devtools@ansible.com>
2023-05-17 15:17:53 +05:30
Bradley A. Thornton 48c6bb7c99
Update push.yml (#272) 2023-05-16 10:05:53 -07:00
Sagar Paul 5cbd0ee54b
chore_empty (#271)
* chore_empty

* revert
2023-05-16 09:52:14 -07:00
Sagar Paul a9610b7142
remove autoversion (#269)
* revert autoversion

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

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

* add changelog entry

* remove autoversion

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-05-16 15:11:24 +05:30
Sagar Paul c6ebb51cc0
remove safe to test (#267) 2023-05-15 21:32:07 +05:30
Sagar Paul 4851036952
add supporting files (#266)
* add supporting files

* add dictionary txt
2023-05-15 21:17:48 +05:30
Sagar Paul 30e6241be7
prep release for 2.10.2 (#265)
* prep release for 2.10.2

* add token cron

* Update token_refresh.yml

* remove dangling changelog

* revert changelog deletion

* remove dangling fragment 2

* fix workflow

* update safe to test

---------

Co-authored-by: Bradley A. Thornton <bthornto@redhat.com>
2023-05-15 20:31:48 +05:30
Sagar Paul 59d4eede7f
Update version in galaxy.yml (#264)
* add sed

* [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-05-11 22:18:55 +05:30
Sagar Paul 3d86b4a5a6
add common release workflow (#263) 2023-05-11 21:19:57 +05:30
Sagar Paul 4faba3e08a
Enable periodic test runs via GHA (#261)
* cron job and test req

* revert check
2023-05-11 18:23:25 +05:30
Sagar Paul c43ab54b5f
Name all workflow tasks (#260) 2023-05-11 16:50:04 +05:30
Sagar Paul 5eaa5e3776
enable release action (#257)
* enable release

* [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-05-11 16:36:23 +05:30
Sagar Paul c2af5541ad
enable code coverage in CI (#259)
* enable codecoverage in CI

* code cov settings
2023-05-11 16:11:33 +05:30
Sagar Paul b7ed0a2dd6
enable push action (#256)
* enable push action

* add token refresh
2023-05-11 15:37:56 +05:30
pre-commit-ci[bot] fb4b0a24d0
[pre-commit.ci] pre-commit autoupdate (#254)
updates:
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.6 → v3.0.0-alpha.9-for-vscode](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.6...v3.0.0-alpha.9-for-vscode)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-25 10:02:58 -04:00
Sebastian Wiesinger c2231a6b20
Update jsonschema validator (#226)
* Update jsonschema validator

Update jsonschema validator to support newer drafts. It now supports
drafts 2019-09 and 2020-12.

The logic for choosing the jsonschema validator class has changed so
that the following enhancements are available:

- When no draft is explicitly specified we now use use the validator
  draft that is specified in the "$schema" field of the criteria. This
  is done by the jsonschema module by default and should support
  possible future drafts without any changes to this code.

- Optionally allow to disable format checks in the code. As format
  checks are not required by the spec there might be situations where
  people want to disable them.

* Update requirements.txt

* Skip all tests which dependas on jsonschema 4.5

* jsonschema: Refactor code to support python 3.6

* Fix jsonschema requirements for python<3.7

* jsonschema: Update code for compatibility

* Better documentation and error handling for missing schema specifications

* [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: Ashwini Mhatre <amhatre@redhat.com>
Co-authored-by: ashwini-mhatre <mashu97@gmail.com>
2023-04-05 11:01:12 -04:00
Vinay M ed6555526d
Fixed the netaddr error msg for clarity (#244)
* Fixed the netaddr error msg for clarity

* added changelog

* Used missing_required_lib

---------

Co-authored-by: Kate Case <kcase@redhat.com>
2023-04-05 18:54:10 +05:30
pre-commit-ci[bot] 90b62d0b55
[pre-commit.ci] pre-commit autoupdate (#236)
updates:
- [github.com/ansible-network/collection_prep: 1.1.0 → 1.1.1](https://github.com/ansible-network/collection_prep/compare/1.1.0...1.1.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-04 19:01:29 +00:00
Kate Case 9668f26a26
Update pre-commit config (#245)
* Update pre-commit config
2023-03-29 18:18:57 -04:00
Ashwini Mhatre 9acd289915
Fix pre commit (#239)
* Fix auto-commit

* Update changelog

* Update .pre-commit-config.yaml
2023-01-30 21:01:43 +05:30
Ashwini Mhatre b18c096d06
Prepare for 2.9.0 (#238) 2023-01-30 14:25:55 +05:30
Ashwini Mhatre fca1229097
Added support to disable xml declartion with full_document flag (#237) 2022-12-28 19:47:34 +05:30
Ashwini Mhatre 09362a2d98
Fix ansible lint issues (#235)
* Fix ansible-lint issues
2022-12-28 12:37:35 +05:30
pre-commit-ci[bot] 9163a6773b
[pre-commit.ci] pre-commit autoupdate (#234)
updates:
- [github.com/PyCQA/isort: 5.11.1 → v5.11.3](https://github.com/PyCQA/isort/compare/5.11.1...v5.11.3)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-12-21 18:56:10 +05:30
pre-commit-ci[bot] 5716754fa7
[pre-commit.ci] pre-commit autoupdate (#233)
updates:
- [github.com/asottile/add-trailing-comma: v2.3.0 → v2.4.0](https://github.com/asottile/add-trailing-comma/compare/v2.3.0...v2.4.0)
- [github.com/PyCQA/isort: 5.10.1 → 5.11.1](https://github.com/PyCQA/isort/compare/5.10.1...5.11.1)
- [github.com/psf/black: 22.10.0 → 22.12.0](https://github.com/psf/black/compare/22.10.0...22.12.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-12-14 18:54:20 +05:30
Kate Case 24e53efe5e
Add documentation for IPv6 in ipsubnet filter (#212)
* fix typo. Add example for IPV6

* add unit tests for IPv6

Co-authored-by: serosset <serosset@cisco.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-12-05 16:00:19 -05:00
Kate Case f407bbdb92
Update regexes to work around Python 3.11 changes (#231) 2022-12-05 13:32:45 -05:00
Kate Case 57904bed64
Update changelog for 2.8.0 (#229) 2022-11-30 13:22:43 +00:00
pre-commit-ci[bot] 068c5334cc
[pre-commit.ci] pre-commit autoupdate (#228)
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ashwini Mhatre <mashu97@gmail.com>
2022-11-30 16:59:46 +05:30
Ashwini Mhatre e5591508fa
Fix Ansible lint FQCN error (#227)
* Fix set_fact ansible-lint

* Fix assert ansible-lint

* Fix find ansible-lint

* Fix debug ansible-lint

* Add FQCN
2022-11-29 19:28:12 +05:30
Ashwini Mhatre baba9ca7ea
Accept int input for ipaddr ipv4 and ipv6 filters (#224)
* Accept int input for ipaddr ipv4 and ipv6 filters

* Fix fragment

* Fix tests
2022-11-21 15:18:35 +05:30
Kate Case 4f38c362f7
pre-commit autoupdate (#225) 2022-11-18 20:27:53 +05:30
Kate Case aab6afe145
Fix changelog to point to the correct PR for PersistentConnectionBase (#221) 2022-11-04 14:13:52 -04:00
Federico Chiacchiaretta 0aee02eb97
Welcome to support for indentation with spaces in to_xml plugin (#192)
* Welcome to support for indentation with spaces in to_xml plugin

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

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

* Changelog fragment

* Unit tests for:

* Indent with spaces and explicit indent_width (4)
* Invalid indent

I also slightly modified VALID_DATA to produce output with indentation,
so existing test_valid_data and OUTPUT has been updated accordingly.

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

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

* Fix changelog section name to minor_changes

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-04 14:13:13 -04:00
pre-commit-ci[bot] 2725ed3056
[pre-commit.ci] pre-commit autoupdate (#218)
updates:
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.1 → v3.0.0-alpha.4](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.1...v3.0.0-alpha.4)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-03 13:41:52 -04:00
Rohit Thakur fa08284cbb
Prepare Release 2.7.0 (#220)
* Prepare Release 2.7.0

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 16:43:38 +00:00
Kate Case 6f0c83be4d
Add PersistentConnectionBase (#213) 2022-11-03 16:00:17 +00: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
Felix Fontein b73ed61a47
Fix filter and test docs (#215)
* Fix filter and test documentation syntax errors.

Most cases were strings that were YAML-parsable as dictionaries due to colons,
sometimes of the form `str: str`, and sometimes of the form `str: list`.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-14 13:02:22 -04:00
pre-commit-ci[bot] 3f05496840
[pre-commit.ci] pre-commit autoupdate (#191)
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.2.0 → v4.3.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.2.0...v4.3.0)
- [github.com/asottile/add-trailing-comma: v2.2.3 → v2.3.0](https://github.com/asottile/add-trailing-comma/compare/v2.2.3...v2.3.0)
- [github.com/pre-commit/mirrors-prettier: v2.6.2 → v3.0.0-alpha.1](https://github.com/pre-commit/mirrors-prettier/compare/v2.6.2...v3.0.0-alpha.1)
- [github.com/psf/black: 22.3.0 → 22.10.0](https://github.com/psf/black/compare/22.3.0...22.10.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-14 12:38:53 -04:00
artraf 61665ea45a
Fix not optimal variable assignment (#207) 2022-10-14 15:35:33 +00:00
Harm Geerts e3e4f7595d
Fix #209 ansible.utils filters should raise AnsibleFilterError (#210)
* Fix #209 ansible.utils filters should raise AnsibleFilterError

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-14 10:55:05 -04:00
Kate Case 462e4e7f71
Clean up test failures (#216)
* Fix arguments-renamed

* Handle changed behavior in 2.15
2022-10-13 11:01:42 -04:00
Tim Way 57c5cd4336
Switch To Calculating Networking Information Directly For Performance (#146)
* Add Unit Tests To Capture Failures From 'subnet' Generator

The netaddr library returns a generator for the 'subnet' call. This works great until you use larger networks. While it is uncommon to encounter it in IPv4 usage it is trivial to hit it in IPv6.

* Switch To Calculating Networking Information Directly For Performance

This replaces the inefficient generator for 'subnet' and uses math to determine the result directly. Since a list is not returned directly to the client in the implemented cases this works great and is fast.

A further optimization at least on the logic of this might be to break the different cases implemented by the filter out into unique functions. I did not do this yet because I wanted to get feedback on this direction.

* Changelog Fragment For PR / Bugfix

Adding changelog fragment that references source issue.

* Dropping Python 3.7 Bypass Removes Need For 'sys' Module

A test for ipsubnet was bypassed under 3.7 because of an inconsistent return value w/3.6 and 2.7. I removed the bypass and changed the behavior of the filter to raise an AnsibleFilterError in all versions of Python.

* Add A Pair of Integration Tests

These demonstrate the issue with the current implementation and would normally stall out while building the list of possible subnets from the generator.

* Address Changelog Feedback

I kept the performance item as a bugfix but bumped the typing to a minor change.

* Add 'netaddr' To Integration Test 'requirements.txt'

* The `ansible-test integration --docker` requires this line in requirements.txt to pass the 'netaddr' related tests

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

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

* Replace str -> to_text

* [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: Kate Case <this.is@katherineca.se>
2022-08-31 12:09:35 -04:00
Kate Case e7143c16bd
Drop 2.7 shim (#202) 2022-08-24 09:28:22 -04:00