salt/tests
Erik Johnson f9f187e915
Improve reliability/idempotence of file.blockreplace state
This makes the following changes:

- The `append_newline` argument to the `file.blockreplace`
  remote-execution function has been modified so that if its value is
  `None`, it only appends a newline when the content block does not end
  in one.
- A couple of fixes were made to newline handling. The existing code
  normalized the newlines in the content block, replacing them with
  os.linesep. However, when the file contains newlines that don't match
  the OS (i.e. POSIX newlines in a file on a Windows box, or Windows
  newlines on a Linux/Mac/BSD/etc. box), then we would still end up with
  mixed newlines. The line separator is now detected when we read in the
  original file, and the detected line separator is used when writing
  the content block. Additionally, the same newline mismatch was
  possible when appending/prepending the content block. This has been
  fixed by using a common function for appending, prepending, and
  replacing the content block.
- Support for the `append_newline` argument has been added to the
  `file.blockreplace` state. The default value for the state is `None`.
  A `versionchanged` has been added to the remote execution function to
  let users know that the Fluorine release will change the default value
  of that variable.
- 20 new integration tests have been written to test the
  `file.blockreplace` state.
2018-03-07 22:29:39 -06:00
..
integration Improve reliability/idempotence of file.blockreplace state 2018-03-07 22:29:39 -06:00
perf
pkg/rpm
support Improve reliability/idempotence of file.blockreplace state 2018-03-07 22:29:39 -06:00
unit Improve reliability/idempotence of file.blockreplace state 2018-03-07 22:29:39 -06:00
utils Misplaced test. Use tests.support.unit instead. 2017-04-01 14:23:00 +01:00
__init__.py
buildpackage.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
committer_parser.py Fix resource leakage 2017-04-05 23:18:00 +01:00
conftest.py Fix basic stats when the test daemons are not running 2017-04-28 13:36:45 +01:00
consist.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
eventlisten.py
eventlisten.sh
jenkins.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
minionswarm.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
modparser.py
packdump.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
runtests.py add additional parser argument for ssh integration tests 2017-11-10 10:58:38 -05:00
salt-tcpdump.py Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
saltsh.py
wheeltest.py
whitelist.txt Add back the two loader tests 2017-04-17 14:04:20 -06:00
zypp_plugin.py Pylint fixes 2017-06-21 10:09:11 +01:00