Pedro Algarvio
6e061b5d24
Updated unit.utils.verify_test
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:04 +01:00
Pedro Algarvio
bdf808773d
Updated unit.utils.safe_walk_test
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:04 +01:00
Pedro Algarvio
0675fae89c
Updated unit.utils.runtime_whitespace_regex_test
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:04 +01:00
Pedro Algarvio
155987dc08
Updated unit.utils.path_join_test
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:04 +01:00
Pedro Algarvio
6e1f36fb22
Updated unit.utils.find_test
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:04 +01:00
Pedro Algarvio
f35367613e
Updated unit.utils.filebuffer_test
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:04 +01:00
Pedro Algarvio
2081aff707
Updated unit.utils.event_test
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:04 +01:00
Pedro Algarvio
663f54ef9f
Update copyright years of changed files. Added __main__
execution to tests/integration/states/pip.py
.
2013-06-28 00:12:57 +01:00
Pedro Algarvio
222be7b446
Make sure every test module is runnable by __main__
.
...
* Double to single quotes
2013-06-28 00:12:56 +01:00
Sylvain Fankhauser
101b9d2f2e
Rename build_whitepace_splited_regex to build_whitespace_split_regex
2013-05-15 12:48:08 +02:00
Chris Rebert
c487d86fff
tests: standardize to modern 'except FooError as err:' syntax
2013-05-03 19:55:50 -07:00
Thomas S Hatch
829b2ca993
sort directory data to ensure consistent data set
2013-05-02 23:23:22 -06:00
Thomas S Hatch
f65515d57c
Fix safe_walk test
2013-05-02 23:07:06 -06:00
Daniel Miller
b5d130cc3a
Fix symlink recursion in salt.utils.safe_walk
2013-05-02 13:32:21 -04:00
Chris Rebert
498d2999db
more typo fixes
2013-05-01 16:52:52 -07:00
Toke Høiland-Jørgensen
5b6e17474b
IPv6 address literals should be specified without brackets in config files.
2013-03-23 23:57:23 +01:00
Toke Høiland-Jørgensen
0f0a7cf560
Add a unit test for passing IPv6-formatted addresses to verify_socket.
2013-03-23 23:34:47 +01:00
Pedro Algarvio
7c5a5d0bd3
Header updates. More copyright to the SaltSatck team. Code author to me(where applicable).
2012-12-11 10:23:37 +00:00
Pedro Algarvio
c5fe83272f
Even more open()
to salt.utils.fopen()
.
2012-11-18 18:57:10 +00:00
Pedro Algarvio
ae7e476bfc
Handle some quoting issues while building the whitespace regex for file.append
. Fixes #2227 .
2012-10-12 11:45:27 +01:00
Thomas S Hatch
7a5cead786
this is 5 now...
2012-10-06 22:59:42 -06:00
Thomas S Hatch
5aa1e847b6
update tests for changes in directory perms
2012-10-06 22:53:04 -06:00
Pedro Algarvio
6640e9581d
Merge branch 'develop' of github.com:saltstack/salt into develop
2012-09-20 19:29:49 +01:00
Pedro Algarvio
39af3fb5d6
Fix the test-cases custom logging handler.
...
* Even when the tests logging handler stream is directed to `/dev/null` we still need a low logging level so that our custom logging handler, used to see if certain log messages are emitted or not, catches messages.
2012-09-20 19:27:32 +01:00
Thomas S Hatch
6de9939768
Fix another test for new hased minion ids
2012-09-19 14:39:01 -06:00
Thomas S Hatch
a3e7a3a7af
fix test based on new minion event socket names
2012-09-19 14:21:56 -06:00
Pedro Algarvio
243edfb9ad
Also test for not triggering log messages. Refs #1986 .
2012-09-16 16:27:17 +01:00
Pedro Algarvio
969dc01ce1
Skip test on travis-ci environment. Refs #1986 .
2012-09-16 16:12:17 +01:00
Pedro Algarvio
b445674d98
Skip test if max open files exception is triggered.
2012-09-16 16:00:36 +01:00
Pedro Algarvio
0fd61050c9
Inform the users about the current max open files situation.
...
We defined that the amount of accepted keys should be lower than 1/4 of the system's max open file setting. Inform the user about the current situation, the logging level is "attached" to the gravity of the current status.
2012-09-15 15:32:07 +01:00
Pedro Algarvio
4f9e62eaf4
Include a test case. Fixes #1989 .
2012-09-07 18:04:14 +01:00
Pedro Algarvio
174f3d6d19
Fix the tests related to saltstack/salt#1900
2012-09-01 05:06:44 +01:00
Pedro Algarvio
ed7878e7c8
Fix saltstack/salt#1900
...
* Minor typo.
* Fix MinionEvent getting 'id' from kwargs and not getting the proper default value.
* And some unittest about this issue.
2012-08-31 01:20:32 +01:00
Thomas S Hatch
34829cd046
Clean up unused imports and variables
2012-08-30 14:14:02 -06:00
Thomas S Hatch
511eb57fdd
remove unused import
2012-08-30 13:26:35 -06:00
Thomas S Hatch
f68816ed47
Remove unused import
2012-08-30 13:25:17 -06:00
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
Pedro Algarvio
9dfce0f7d2
Final fix for saltstack/salt#1756
...
Don't try to import `salt.log` during tests. Adapt `check_user` test accordingly.
2012-08-11 01:28:49 +01:00
Pedro Algarvio
1cae292c68
Fix tests/unit/utils/verify_test.py
since verify_user no longer accepts the log argument.
2012-08-11 00:30:13 +01:00
Pedro Algarvio
639471d110
Multi-platform path joiner(appender)
...
This commit kind of reverts the previous "no more os.sep.join ..." commit by solving the issue which led to switching that code to `os.path.join`. Tested both on linux and windows.
2012-08-08 14:43:34 +01:00
Intchanter
3c05a3ee78
Merge branch 'develop' of https://github.com/saltstack/salt into develop
...
Conflicts:
tests/integration/modules/grains.py
tests/integration/states/host.py
tests/unit/utils/find_test.py
2012-07-04 18:29:13 -06:00
Intchanter
49b2465cf0
Cleaned up syntax error
2012-07-04 17:42:53 -06:00
Dan Colish
aacd9cc5bd
Use getpass.getuser since os.getlogin requires a tty and tests do not
...
always run with one.
2012-06-30 23:31:01 -07:00
Dan Colish
040c249866
Fix find_test on OSX
2012-06-30 15:23:50 -07:00
Jeff Hutchins
b380991316
Merge git://github.com/saltstack/salt into tests
...
Conflicts:
tests/unit/utils/find_test.py
2012-06-30 15:58:17 -06:00
Dan Colish
1b1431ba66
Skip verify_env test on windows.
2012-06-30 14:11:37 -07:00
Jeff Hutchins
ff54029c98
Make tests on utils.find run with nose.
2012-06-30 14:48:40 -06:00
Dan Colish
01b74fc04c
Add unittests for salt.utils.verify
2012-06-30 13:28:15 -07:00
Intchanter
a1433ef5ec
PEP8 fixes for tests
2012-06-30 14:10:34 -06:00
Dan Colish
edfb3d2560
Merge branch 'develop' of git://github.com/saltstack/salt into develop
...
Conflicts:
tests/unit/utils/find_test.py
2012-06-30 12:46:04 -07:00