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 f9dcf40de5 [backport 2.6] Lineinfile must not insert lines multiples times with insertbefore/insertafter (#50086)
* 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)
(cherry picked from commit eb92ce3d6f)

* Implement the change in behaviour mentioned in the previous commit

(cherry picked from commit a4141cfa2e)
(cherry picked from commit 6afe25d93e)

* Fix comment to reflect what the code does

(cherry picked from commit 150f5cb232)
(cherry picked from commit 1a13bf06a3)

* Set the correct return message.

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

(cherry picked from commit 3216c31401)
(cherry picked from commit 5bd04bd5d5)

* Add a changelog

(cherry picked from commit c39cf6b332)
(cherry picked from commit fc071636b4)
7 years ago
..
cache Update ansible-test sanity command. (#31958) 8 years ago
env [stable-2.6] Add `env` command to ansible-test and run in CI. (#50176) 7 years ago
integration [backport 2.6] Lineinfile must not insert lines multiples times with insertbefore/insertafter (#50086) 7 years ago
legacy Add symlinks sanity test. (#46467) 7 years ago
results Collect data from integration test runs. (#28650) 8 years ago
runner [stable-2.6] Cleanup integration test inventory. (#50753) 7 years ago
sanity [stable-2.6] Improve performance of no-tests-as-filters test. 7 years ago
units VMware: Fix module usages in module_utils (#49421) 7 years ago
utils [stable-2.6] Fix run.py --branch argument. 7 years ago