1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test
Sam Doran fb55038d75 Add warning when using an empty regexp in lineinfile (#42013)
* Revert "Account for empty string regexp in lineinfile (#41451)"

This reverts commit 4b5b4a760c.

* Use context managers for interacting with files

* Store line and regexp parameters in a variable

* Add warning when regexp is an empty string

* Remove '=' from error messages

* Update warning message and add changelog

* Add tests

* Improve warning message

Offer an equivalent regexp that won't trigger the warning.
Update tests to match new warning.

* Add porting guide entry for lineinfile change
2018-06-29 17:15:43 -07:00
..
cache Update ansible-test sanity command. (#31958) 2017-10-26 00:21:46 -07:00
integration Add warning when using an empty regexp in lineinfile (#42013) 2018-06-29 17:15:43 -07:00
legacy Fix some broken links (#42079) 2018-06-29 11:12:01 -07:00
results Collect data from integration test runs. (#28650) 2017-08-25 18:14:47 -04:00
runner Temporarily switch RHEL and Windows tests to AWS. 2018-06-29 16:23:54 -07:00
sanity Allow removed_in 2.11 (#42119) 2018-06-29 09:42:54 -07:00
units Add run_commands api for ios and vyos cliconf plugin (#42093) 2018-06-29 15:07:38 +05:30
utils Make docs-build sanity test disabled by default. 2018-05-09 17:55:00 -07:00