salt/tests
Pedro Algarvio 8b645b339b Fix #1879. Searching/matching is now done on multiple lines.
* `salt.modules.file.contains()`, `salt.modules.file.contains_regex()`, `salt.modules.file.contains_glob()` and `salt.utils.find` now do the searching/matching against chunks of data; using defaults, 32KB chunks of data in files; instead of searching/matching line by line.
* Based on the above changes `salt.states.file.append()`, when checking if the text to append is already present, now uses `salt.modules.file.contains_regex()` in order to match spanning multiple lines ignoring the addition/deletion of white-space or new lines, except inside commas.
* The regex used on the above item is built at runtime using `salt.utils.build_whitepace_splited_regex()`, just feed the text to it and you'll get back the proper regex to the matching/searching on, for example `salt.modules.file.contains_regex()`.
* Added tests for all this code.
2012-08-28 10:03:11 +01:00
..
integration Fix #1879. Searching/matching is now done on multiple lines. 2012-08-28 10:03:11 +01:00
unit Fix #1879. Searching/matching is now done on multiple lines. 2012-08-28 10:03:11 +01:00
__init__.py Refactor runtests to allow dotted path module discovery. 2012-05-29 19:56:47 -07:00
consist.py Add consist test to make sure swarm returns are all the same 2012-07-18 13:24:16 -06:00
eventlisten.py PEP8 fixes for tests 2012-06-30 14:10:34 -06:00
minionswarm.py Only generate one pair of minion keys for the swarm 2012-06-13 13:37:28 -06:00
runtests.py Allow some logging output when running tests. 2012-08-25 14:21:19 +01:00
saltunittest.py Make an error go to stderr and remove net 1 LOC 2012-06-30 14:53:32 -07:00