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/integration/targets/lineinfile
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
..
files Check for regexp match when using insertbefore or insertafter (#36474) 2018-02-21 17:03:38 -05:00
meta Migrate Linux CI roles to test targets. (#17997) 2016-10-13 09:09:25 -07:00
tasks Add warning when using an empty regexp in lineinfile (#42013) 2018-06-29 17:15:43 -07:00
vars Check for regexp match when using insertbefore or insertafter (#36474) 2018-02-21 17:03:38 -05:00
aliases Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00