Pedro Algarvio
f0b78cd916
Format version
on deprecation messages.
...
Add a test case to check if a deprecation message get it's `version` format holder properly populated.
2013-10-04 09:53:51 +01:00
Pedro Algarvio
a9ceedb5eb
warn_until
and kwargs_warn_until
are now aware of named versions.
...
Updated the warnings tests cases accordingly.
2013-10-04 09:53:50 +01:00
Pedro Algarvio
8c9fe2c5c1
Fix the kwargs_warn_until
unit test case.
2013-10-04 09:53:50 +01:00
Pedro Algarvio
f028a004ad
Fix the warnings unit test.
...
Since the `warn_until` function now parses and instantiates a `SaltStackVersion`, the `bugfix` part of the version info is always shown.
2013-10-04 09:53:50 +01:00
Pedro Algarvio
800c918729
Let SaltStackVersion be the original one, not a MagicMock'ed one
2013-10-04 09:53:50 +01:00
Pedro Algarvio
ec07e5ae49
Adapt test cases to fixed behaviour.
2013-09-28 00:00:59 +01:00
Pedro Algarvio
9b3d504e03
Fix unit tests regarding salt.utils.find._parse_interval
2013-09-28 00:00:59 +01:00
Pedro Algarvio
a9d5ac5a3e
Add unit tests to salt.utils.format_call()
.
2013-09-24 22:08:08 +01:00
Pedro Algarvio
05be7064d5
0.17.0
has been tagged. The 0.16.x
requires_network
is no longer necessary.
2013-09-19 11:16:37 +01:00
Pedro Algarvio
e18ba0758b
Don't include authorship in generated documentation, the Sphinx way.
2013-09-16 17:24:00 +01:00
Chris Rebert
90f257df13
add salt.utils.kwargs_warn_until()
2013-09-10 17:12:25 -07:00
Pedro Algarvio
25a72358ab
Skip this test until properly mocked.
2013-08-28 15:21:29 +00:00
Pedro Algarvio
57feb4a015
One more missing import
2013-08-28 15:21:29 +00:00
Pedro Algarvio
5ea856c104
Fix missing import
2013-08-28 15:21:29 +00:00
Pedro Algarvio
2b64d0482d
Make sure every temp dir created on the unittests respects, integration.SYS_TMP_DIR
2013-08-27 15:31:58 +00:00
Pedro Algarvio
6e694791fb
Allow tests to be properly skipped if mock
is not installed.
2013-08-26 17:05:44 +00:00
Pedro Algarvio
2eab51a429
Adapted unit.utils.warnings_test
to use salttesting.mock
2013-08-26 13:03:04 +00:00
Pedro Algarvio
0c0751e793
Adapt the test case to the changes introduced in 7e9e889
2013-08-16 20:26:48 +01:00
Pedro Algarvio
2f750ed06c
Allow network related tests to be skipped if no network is available. Fixes #6710 .
2013-08-16 02:02:37 +01:00
Thomas S Hatch
4808281594
freebsd uses wheel as well
2013-08-13 01:01:10 -06:00
Pedro Algarvio
83004fd8f8
Allow salt.utils.warn_until()
to not issue the warning because we're only after the RuntimeError
behaviour.
2013-07-20 16:26:47 +01:00
Pedro Algarvio
eaa0b16e53
Added a helper function to raise warnings until a specified salt version.
...
The helper raises a warning, by default, a ``DeprecationWarning``, until the provided ``version_info`` is matched, after which, a ``RuntimeError`` will be raised to remember the developers to remove the warning.
2013-07-20 15:32:50 +01:00
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