salt/tests/unit/utils
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
..
__init__.py tests for find utility 2012-06-18 00:54:48 +05:30
filebuffer_test.py Fix #1879. Searching/matching is now done on multiple lines. 2012-08-28 10:03:11 +01:00
find_test.py Merge branch 'develop' of https://github.com/saltstack/salt into develop 2012-07-04 18:29:13 -06:00
path_join_test.py Multi-platform path joiner(appender) 2012-08-08 14:43:34 +01:00
runtime_whitespace_regex_test.py Fix #1879. Searching/matching is now done on multiple lines. 2012-08-28 10:03:11 +01:00
verify_test.py Final fix for saltstack/salt#1756 2012-08-11 01:28:49 +01:00