ansible/test
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 31c11de2af000972ba13f584e82001a2bc9c062a)

* Implement the change in behaviour mentioned in the previous commit

(cherry picked from commit a4141cfa2e49973310bba8c0962ef82d66c35f29)

* Fix comment to reflect what the code does

(cherry picked from commit 150f5cb232f10e38509823cb5864a9fd800b6df5)

* Set the correct return message.

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

(cherry picked from commit 3216c31401d15906e2435422e71dfb96e30678c4)

* Add a changelog

(cherry picked from commit c39cf6b33269eac35c3c769de41e7c3dea642b68)
2019-01-07 10:08:38 -08:00
..
cache
env [stable-2.7] Add env command to ansible-test and run in CI. (#50176) 2018-12-22 00:10:16 -08:00
integration [backport 2.7] Lineinfile must not insert lines multiples times with insertbefore/insertafter (#50084) 2019-01-07 10:08:38 -08:00
legacy vultr_server_facts: add tests and changelog for firewall group fix in #48342 (#48411) 2018-11-12 19:30:28 -08:00
results
runner [stable-2.7] Add env command to ansible-test and run in CI. (#50176) 2018-12-22 00:10:16 -08:00
sanity [stable-2.7] Add retries for Invoke-ScriptAnalyzer in pslint. 2018-12-21 20:27:05 -08:00
units Fix for changes in clearlinux (#49344) 2018-12-06 09:34:20 -08:00
utils [stable-2.7] Add env command to ansible-test and run in CI. (#50176) 2018-12-22 00:10:16 -08:00