Thomas S Hatch
562fbdaed2
Add grains.get test
2013-05-26 06:11:59 -06:00
Thomas S Hatch
04ad87f9fb
Add test to grains.setval
2013-05-26 04:11:42 -06:00
Thomas S Hatch
98bb5335df
Disable failing config.manage_mode test, we will need to clean this
2013-05-26 03:52:22 -06:00
Thomas S Hatch
cf69f2d004
Add manage_mode test
2013-05-26 03:44:22 -06:00
Thomas S Hatch
f71a4ee2c8
Add more checks to config
2013-05-26 03:42:41 -06:00
Thomas S Hatch
44d1123291
Start on config module tests
2013-05-26 00:32:57 -06:00
Thomas S Hatch
e6c369c5ec
Add opts to master file to test config module
2013-05-26 00:31:43 -06:00
Thomas S Hatch
25fd45a688
Make --name a little more clear
2013-05-26 00:08:52 -06:00
Thomas S Hatch
340b45d801
fix pydsl test
2013-05-18 22:58:08 +00:00
Thomas S Hatch
6b01c8380d
Add pydsl runtime test per #5055
2013-05-18 22:51:53 +00:00
Thomas S Hatch
123d52bdc6
Can't serialize pydev/stateconf, start on #5055
2013-05-18 22:47:14 +00:00
Matt George
ecdff63b6e
added ability to activate a virtualenv before
...
running pip install
2013-05-17 13:56:09 -05:00
Sylvain Fankhauser
101b9d2f2e
Rename build_whitepace_splited_regex to build_whitespace_split_regex
2013-05-15 12:48:08 +02:00
Thomas S Hatch
f1697aea5b
Fix test where the absence of mock breaks things
2013-05-07 22:42:08 -06:00
Thomas S Hatch
367927b3d3
Fix #4912
...
Clint, this fixes it for me and still logicaly verifies the test
let me know if this works on your end
2013-05-07 22:36:34 -06:00
Thomas S Hatch
6d6daa00ec
Merge pull request #4832 from 11craft/4805-pip-no-chown
...
Introduce `no_chown` option to pip-related functions
2013-05-07 09:56:36 -07:00
Daniel Watkins
7e7bf244c7
Move caching of requirements to helper function and add unit tests.
2013-05-07 10:20:56 +01:00
Matthew Scott
24d11b3274
Introduce no_chown
option to pip-related functions - #4805
...
Affected functions:
- `pip.install`
- `pip.installed`
- `virtualenv.managed`
When using `runas` in conjunction with a local-filesystem `requirements` file with these functions,
`pip.install` will create a temporary copy of the requirements file,
then change ownership of that file to the `runas` user.
The purpose of this is to avoid file permission errors when accessing the original requirements file.
However, this breaks when that file has a "-r otherfile.txt" line.
In these cases, set `no_chown` to `True`.
The original path to the requirements file will be kept,
and other requirements files included from the top-level file will be correctly found.
2013-05-04 22:16:39 -05:00
Thomas S Hatch
1427ef1f81
Merge pull request #4816 from hulu/except-as-tests
...
standardize to modern 'except FooError as err:' syntax in test files
2013-05-03 21:56:19 -07:00
Chris Rebert
c487d86fff
tests: standardize to modern 'except FooError as err:' syntax
2013-05-03 19:55:50 -07:00
Chris Rebert
c7ff123a0f
use genexpr & list comp in minionswarm test
2013-05-03 19:45:19 -07:00
Ales Zoulek
383e1fa01c
Fixing invalid assumption on group name in tests
...
* fixed invalid assumption in file module tests that all linux platforms have
groups with the same name as users (joe:joe etc.). But for
example ArchLinux has only joe:users.
* file module tests now loads user's canonical group name from pwd and
grp python module instead.
2013-05-03 11:47:08 +02: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
Chris Rebert
26209c1fc1
rm unused imports reported by pyflakes
2013-04-30 14:48:04 -07:00
Chris Rebert
9ed364980d
is not 0 => != 0
2013-04-30 10:32:21 -07:00
Thomas S Hatch
ab5f540430
Merge pull request #4232 from tohojo/ipv6-support
...
IPv6 support for master-minion communication
2013-04-28 18:34:28 -07:00
Pedro Algarvio
397418dad7
We're no longer leaking threads. Travis-CI should be OK with 10 worker threads.
2013-04-28 08:16:54 +01:00
Pedro Algarvio
c4e96207cb
runas
needs root permissions.
2013-04-27 21:06:13 +01:00
Pedro Algarvio
b88d901b78
Allow the event listener to work with the test sockets. And even for the minion's
2013-04-27 20:39:33 +01:00
Thomas S Hatch
cebdf76f2e
Fix publish tests
2013-04-27 12:59:34 -06:00
Pedro Algarvio
a43e0132f1
Improve logging logic in salt/template.py
. Allow the test suite to set more logging levels.
2013-04-27 09:56:24 +01:00
Pedro Algarvio
a4e9e196a3
Improve information available and handle IndexError
in our salt asserts mix-in.
2013-04-25 20:59:34 +01:00
Pedro Algarvio
abd2dc23f1
Handle publish tests a little better. Still not fixed though.
2013-04-25 20:58:54 +01:00
Pedro Algarvio
55b166f38c
Fix issues around salt.modules.file
, salt.states.files
and respective tests.
...
* Updated `salt.modules.file.makedirs` to properly work. Any path passed to this function should be a directory, ie, if `/tmp/foo/bar` is passed, `/tmp/foo/bar` should be a directory, not `/tmp/foo`.
* Since `salt.modules.file.makedirs` was updated, `salt.states.file.append` needed to be updated to pass the proper directory to create.
* Minor formatting change
2013-04-25 16:36:19 +01:00
Pedro Algarvio
2552f2cfc3
Join the processes in order to wait for them to finish.
2013-04-24 22:31:57 +01:00
Pedro Algarvio
7eed841ba6
Fix the salt.modules.hosts
tests and even test if order is preserved when writing the new file.
2013-04-23 12:56:23 +01:00
Pedro Algarvio
5f58f0d28b
We need OrderedDict
support. So, as a last resort, provide our own.
...
* We try to import `OrderedDict` from the standard library, which is only available on python >= 2.7, if `ImportError` is raised we try to import it from `ordereddict`, a package available in PyPi. As a last resort, we provide our own implementation based on http://code.activestate.com/recipes/576669/ .
* Update all code requiring `OrderDict` to use our compatible import module.
2013-04-23 12:56:23 +01:00
Pedro Algarvio
eeda1698ff
Simplify and fix tests for salt.modules.hosts
.
2013-04-23 12:56:23 +01:00
Pedro Algarvio
b36747b084
pkg.expand_repo_def
is allowed to fail on the sysmod integration tests.
2013-04-22 22:40:15 +01:00
Pedro Algarvio
0d5c3b5f0c
Add cmd.run_all
to __salt__
. Required for the unit test.
2013-04-22 22:26:05 +01:00
Pedro Algarvio
50a12a13f5
kwargs
should be passed as kwarg
to client.cmd
.
2013-04-22 22:04:33 +01:00
Pedro Algarvio
7836a26c97
Reduce timeout's by a third.
2013-04-22 19:39:02 +01:00
Pedro Algarvio
7e0b13a493
Include the filesystem cleanup options group into the parser.
2013-04-19 22:36:02 +01:00
Seth House
2facccd849
Fixed double dashes in default minion swarm names
2013-04-14 17:05:43 -06:00
Thomas S Hatch
8ac95960b3
Add name option to minionswarm so many hosts can check in
2013-04-11 15:36:28 -06:00
Denis Generalov
56f221018d
* fix bt if environment empty or absent
...
* fix tests
2013-04-10 16:24:41 +04:00
Denis Generalov
1b1a5bd743
fix unit tests
2013-04-05 18:21:33 +04:00