Commit graph

7 commits

Author SHA1 Message Date
Brian Coca
a1730af91f
Ensure blockinfile correctly returns backupfile ()
* Ensure blockinfile correctly returns backupfile

  Fixes 
  based on 

Co-authored-by: Giovanni Sciortino (@giovannisciortino)
2020-11-09 14:45:09 -05:00
Sam Doran
c51438312a
blockinfile - properly insert block when no trailing new line exists () 2020-10-27 10:34:09 -05:00
Sam Doran
d7618712fd
blockinfile - fix line end regression ()
PR  introduced a regression that resulted in an in correct block in the file
if the block to be inserted did not end with a line separator. Fix this bug and add
tests to cover this scenario.
2020-05-27 16:54:38 -04:00
Riyad Preukschas
e5cc12a64f
blockinfile - Preserve line endings ()
Fixes 
* Fix "TypeError: splitlines() takes no keyword arguments" on Python2.7
* Add changelog fragment
* Don't use `grep -P` for BSD/macOS compatibility
* Fix sanity checks complaining about test fixtures with mixed line endings
* Update changelogs/fragments/66461-blockinfile_preserve_line_endings.yaml
2020-05-27 11:05:07 -04:00
Sam Doran
8b1ae30e2e
Use bytes rather than native string for result ()
This prevents a stack trace in Python 3 when the result is an empty file since
the file is open in binary mode and a native string in Python 3 is str,
not bytes.
2018-09-28 16:04:50 -04:00
Matt Clay
4e489d1be8
Update Shippable integration test groups. ()
* Update Shippable integration test groups.
* Update integration test group aliases.
* Rebalance AWS and Azure tests with extra group.
* Rebalance Windows tests with another group.
2018-07-23 20:46:22 -07:00
jctanner
e9c2546ffe Add integration test targets for core supported modules ()
A preliminary set of test targets for "core" supported module that had no independent tests. These will also help us ensure python3 compatibility for those modules and prevent future regressions.
2017-05-10 09:19:11 -04:00