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/integration/targets/lineinfile
Jérémy Lecour aa10266d55 [backport 2.7] Lineinfile must not insert lines multiples times with insertbefore/insertafter (#50084)
* 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.

(cherry picked from commit 31c11de2af)

* Implement the change in behaviour mentioned in the previous commit

(cherry picked from commit a4141cfa2e)

* Fix comment to reflect what the code does

(cherry picked from commit 150f5cb232)

* Set the correct return message.

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

(cherry picked from commit 3216c31401)

* Add a changelog

(cherry picked from commit c39cf6b332)
6 years ago
..
files Check for regexp match when using insertbefore or insertafter (#36474) 7 years ago
meta Migrate Linux CI roles to test targets. (#17997) 8 years ago
tasks [backport 2.7] Lineinfile must not insert lines multiples times with insertbefore/insertafter (#50084) 6 years ago
vars Check for regexp match when using insertbefore or insertafter (#36474) 7 years ago
aliases Update Shippable integration test groups. (#43118) 6 years ago