Commit Graph

123 Commits (2725ed30568e888a23be936e3fb0c90c9948902f)

Author SHA1 Message Date
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
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
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
Bradley A. Thornton 4fe771a95c
Enable prettier via pre-commit (#188) 2022-05-26 10:02:52 -04:00
Bradley A. Thornton 6e25216d7a
CI for only PRs, not on push (#184)
* Only PR

* Changelog
2022-05-25 16:41:19 -07:00
Bradley A. Thornton 79a12c3c43
Enable update docs via pre-commit (#186)
* Enable update docs

* Remove foo

* Changelog

* [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>
2022-05-25 15:53:41 -07:00
Bradley A. Thornton b50cd85853
Limit concurrency (#187)
* Limit concurrency

* Limit concurrency

* Remove prettier config

* Update changelog
2022-05-25 13:06:16 -07:00
Bradley A. Thornton 449a50f621
Uncap json schema version (#185)
* Uncap json schema version

* Changelog
2022-05-24 13:29:27 -07:00
Bradley A. Thornton 7e064db3ed
Switch to unit-galaxy for unit (#183) 2022-05-20 07:21:59 -07:00
Bradley A. Thornton 50201a1ad9
Enable integration tests with Github action (#180) 2022-05-18 11:06:59 -07:00
Bradley A. Thornton 829a706a3d
Require a changelog (#179)
* Require a changelog

* Add changelog

* Move to fragment folder

* Place correctly

* Add CL

* Add CL

* Add CL
2022-05-17 11:07:11 -07:00
Bradley A. Thornton 5a53c19804
Github action for unit and sanity tests (#172) 2022-05-16 09:52:15 -07:00
Nathaniel Case fa83311c25 Update changelog for 2.6.1 2022-04-25 11:58:11 -04:00
Nathaniel Case e76854d1e1 Move check_mode setting to the proper location regardless of version 2022-04-25 11:11:15 -04:00
Ashwini Mhatre 0c77d18f32
Fix validate-module sanity for stable 2.13 sanity job (#164)
* Fix validate-module sanity

* [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: Bradley A. Thornton <bthornto@redhat.com>
2022-04-13 15:14:05 -07:00
cidrblock bdd15c86ab Change log 2022-04-13 09:01:50 -07:00
Bradley A. Thornton b2e61289cf
Merge branch 'main' into some_init 2022-04-12 05:15:05 -07:00
KB-perByte e8817b7b45
release prep 2022-04-12 12:03:54 +05:30
KB-perByte eb305b4af0
prep minor release 2.6.0 2022-04-12 11:59:59 +05:30
cidrblock 4f5497549e Add init 2022-04-11 11:40:39 -07:00
cidrblock fd5660ab18 Add init 2022-04-11 07:25:47 -07:00
cidrblock 79c6ad9ae5 Add init 2022-04-11 07:25:47 -07:00
KB-perByte 595c9ee38f
review pt 1 2022-04-08 23:31:45 +05:30
Sagar Paul 792aa2731c
Merge branch 'ansible-collections:main' into consolidate 2022-04-08 16:31:36 +05:30
Ashwini Mhatre 90ff4b585c
Merge branch 'main' into copy_ingore_txt 2022-04-08 14:33:20 +05:30
Bradley A. Thornton d63d684597
Merge branch 'main' into consolidate 2022-04-07 14:28:46 -07:00
cidrblock e60a03686b Enable 2 precommit checks 2022-04-07 13:24:53 -07:00
Bradley A. Thornton 1c4d7faf83
Merge branch 'main' into consolidate 2022-04-07 13:20:12 -07:00
Bradley A. Thornton 836437c359
Merge branch 'main' into copy_ingore_txt 2022-04-07 13:19:38 -07:00
cidrblock 29c8072e09 Rebase 2022-04-07 03:29:20 -07:00
pre-commit-ci[bot] c4ad14f305 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-04-07 03:28:27 -07:00
cidrblock 0c79ad75b0 Add changelog 2022-04-07 03:28:27 -07:00
Bradley A. Thornton 29debd2be6
Add a skips for pre-commit.ci (#161) 2022-04-07 03:06:28 -07:00
Andrew Klychkov ba01915797 Add fragment 2022-04-07 10:49:09 +02:00
KB-perByte 39ab9aeecd
changelog spelling corrected 2022-04-05 15:45:50 +05:30
KB-perByte 234b503842
update intg tests and changelog 2022-04-05 13:47:16 +05:30
Ashwini Mhatre 5eba64f8de
Prepare for release utils 2.5.2 (#150)
Prepare for release utils 2.5.2

SUMMARY


ISSUE TYPE


Docs Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
2022-03-04 14:22:44 +00:00
Ashwini Mhatre 0716010fe3
Fix bugs in Ipaddr filters (#149)
Fix bugs in Ipaddr filters

SUMMARY

ipaddr - Fix input validation issues in ipaddr,ipv4,ipv6,ipwrap filters.
ipaddr - Add valid network for link-local
fixes: #148
fixes: ansible-collections/ansible.netcommon#375
fixes: ansible-collections/ansible.netcommon#350

ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
Reviewed-by: Sagar Paul <sagpaul@redhat.com>
2022-03-04 11:43:59 +00:00
Ashwini Mhatre 74ee10cdd6
Prepare for 2.5.1 (#147)
Prepare for release 2.5.1

SUMMARY


ISSUE TYPE


Docs Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Sagar Paul <sagpaul@redhat.com>
2022-03-01 07:06:48 +00:00
Ashwini Mhatre 9f510450f8
Improve ut coverage (#145)
Improve ut coverage

SUMMARY

Add more testcases for ipaddr filter

ISSUE TYPE

COMPONENT NAME

ipaddr.py
ADDITIONAL INFORMATION

Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
Reviewed-by: Ashwini Mhatre <mashu97@gmail.com>
Reviewed-by: Sagar Paul <sagpaul@redhat.com>
2022-03-01 05:06:47 +00:00
Tim Way a14a9337c6
Add 'netaddr' To 'requirements.txt' For Unit Tests (#143)
Add 'netaddr' To 'requirements.txt' For Unit Tests

This enables 'ansible-test --docker' and 'ansible-test --venv' to be able to leverage 'netaddr' and pass tests

SUMMARY

This adds the 'netaddr' python module to the requirements specific to unit tests. This allows 'ansible-test' to work for '--docker' and '--venv' without manual intervention.
I also re-ordered the current list to be alphabetical.

Fixes #142
ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

Unit tests in ansible.utils for ipsubnet
ADDITIONAL INFORMATION



git clone https://github.com/ansible-collections/ansible.utils.git
cd ansible.utils
ansible-galaxy collection build .
ansible-galaxy collection install -p . ansible-utils-\*.tar.gz
ansible-test units --docker base tests/unit/plugins/filter/test_ipsubnet.py --requirements --verbose

Reviewed-by: Ashwini Mhatre <mashu97@gmail.com>
2022-02-25 07:32:23 +00:00
Sagar Paul bd95db581e
minor doc fix (#140)
minor doc fix

SUMMARY

in_any_network, doc fix for redundant line

ISSUE TYPE


Docs Pull Request

COMPONENT NAME

in_any_network
ADDITIONAL INFORMATION

Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
2022-02-10 17:35:19 +00:00