Ollie Walsh
8bacb953c0
Fix typo
2013-12-03 01:45:18 +00:00
Ollie Walsh
d81aeb2c0e
More tests
2013-12-03 01:22:51 +00:00
Ollie Walsh
f9aca16aee
More unit tests and longer timeouts for travis-ci
2013-12-02 23:20:54 +00:00
Ollie Walsh
6fe85f1294
Add some basic unit tests for events
2013-12-02 22:26:13 +00:00
Pedro Algarvio
0ae1a15c61
PEP8 E302 and E303 blank lines fixes.
2013-11-27 12:11:45 +00:00
Pedro Algarvio
14b59ac073
Include the coding header.
2013-11-27 12:04:43 +00:00
Pedro Algarvio
08c5c8e83a
Fix PyLint W1401, anomalous backslash.
2013-11-27 11:24:26 +00:00
Pedro Algarvio
d02a2bc224
Include the python encoding file header on tests.
2013-11-27 11:19:24 +00:00
Pedro Algarvio
b5c9815e9a
Arguments like pip==1.0
must not match yaml'ification as as keyword arguments.
2013-11-09 10:32:27 +00:00
Mike Place
00c7d36966
Exception handling for missing id
...
Refs #8259 . We don't like tracebacks. Includes unit test.
2013-11-07 11:59:07 -07:00
Pedro Algarvio
798e1830d5
Provide a default PATHEXT
environment variable.
...
Added test case which relies on the `PATHEXT` environment variable.
2013-10-28 16:05:19 +00:00
Pedro Algarvio
c8c6dab678
Add some comments to explain whats going on.
2013-10-27 16:53:39 +00:00
Pedro Algarvio
79391f107b
Provide a mocked version the tests to reach windows specific code.
2013-10-27 16:53:39 +00:00
Erik Johnson
a9d1c12481
Add unit test for salt.utils.which
...
This is a Linux-only test, it will need some mock love to make it
suitable to test for windows paths.
2013-10-27 16:53:39 +00:00
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