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
Jérémy Lecour 2fb9b46752 Lineinfile must not insert lines multiples times with insertbefore/insertafter (#49409)
* Change test suite to fit expected behaviour

This reverts some changes from ansible/ansible@723daf3
If a line is found in the file, exactly or via regexp matching, it must 
not be added again.
insertafter/insertbefore options are used only when a line is to be 
inserted, to specify where it must be added.

* Implement the change in behaviour mentioned in the previous commit

* Fix comment to reflect what the code does

* Set the correct return message.

In these cases, the lines are added, not replaced.

* Add a changelog
2018-12-17 16:42:24 -05:00
..
cache Update ansible-test sanity command. (#31958) 2017-10-26 00:21:46 -07:00
integration Lineinfile must not insert lines multiples times with insertbefore/insertafter (#49409) 2018-12-17 16:42:24 -05:00
legacy Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
results Collect data from integration test runs. (#28650) 2017-08-25 18:14:47 -04:00
runner Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
sanity Skip sanity tests that don't apply to bundled code 2018-12-17 11:01:01 -08:00
units Allow tags to be templated from a variable (#49833) 2018-12-17 15:40:26 -06:00
utils Fix passing of env vars to Shippable. 2018-11-14 10:50:31 -08:00