You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/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
6 years ago
..
cache
integration Lineinfile must not insert lines multiples times with insertbefore/insertafter (#49409) 6 years ago
legacy Update bare exceptions to specify Exception. 6 years ago
results
runner Update bare exceptions to specify Exception. 6 years ago
sanity Skip sanity tests that don't apply to bundled code 6 years ago
units Allow tags to be templated from a variable (#49833) 6 years ago
utils Fix passing of env vars to Shippable. 6 years ago