Mathieu Le Marec - Pasquet
a6262beeb3
Fix the broken check state logic
2014-06-13 13:20:14 +02:00
Erik Johnson
0104ccc400
Fix failing jinja unit tests
...
These began failing due to a recent change in the error reporting for
undefined jinja variables.
2014-06-12 14:33:53 -05:00
Pedro Algarvio
0564fc363e
A more generic directory name
2014-06-10 03:25:14 +01:00
Pedro Algarvio
9bd6d330ec
Change to an existing directory before importing keyring
2014-06-10 01:52:53 +01:00
Pedro Algarvio
9d208eaf76
Use an explicit path for the keydir not getcwd
2014-06-10 01:52:53 +01:00
Pedro Algarvio
a7b7f18e6f
Double to single quotes
2014-06-06 12:24:10 +01:00
Pedro Algarvio
c4e47df943
Don't use the hardcoded path
2014-06-05 10:10:55 +01:00
Pedro Algarvio
bebddb9174
Don't use hardcoded paths
2014-06-05 10:10:55 +01:00
Pedro Algarvio
36ea569d0d
Don't use hard coded paths
2014-06-05 10:10:55 +01:00
Pedro Algarvio
7e11871d9f
Ensure correct syspath
2014-06-01 06:55:52 +01:00
Thomas S Hatch
ba4cc71a14
fix more sls to yamlex refs
2014-05-30 10:14:47 -06:00
Thomas S Hatch
8b3dabbf7d
lint
2014-05-30 09:45:46 -06:00
Thomas S Hatch
b8897a5b0d
rename the sls renderer to the yamlex renderer
2014-05-30 09:28:20 -06:00
Thomas S Hatch
185eae31cd
Merge branch 'serializers-migration' of https://github.com/johnnoone/salt into johnnoone-serializers-migration
...
Conflicts:
salt/pillar/__init__.py
2014-05-30 09:16:21 -06:00
Thomas S Hatch
84f4fa1430
Merge pull request #13122 from cachedout/test_fixing
...
Fix broken tests
2014-05-30 09:08:53 -06:00
Pedro Algarvio
204ed95c2c
PyLint ignore W1111 (assignment-from-none)
2014-05-30 09:38:35 +01:00
Mike Place
11e6ddf33c
Fix SMTP test
...
Magic or ugly hack? You decide.
2014-05-29 16:38:59 -06:00
Mike Place
623b01af81
Pylint
2014-05-29 16:13:42 -06:00
Mike Place
0e53190996
Fix broken tests
...
Thanks to @rallytime for pointing out that several unit tests
were not working correctly when run locally.
I have fixed the perm_test to no longer use relative paths. I have
also disabled this tests since, at some point at least, perms changed
to be 0664 instead of 0644 in a number of places. This warrents further
discussion.
I have fixed pydsl_test to no longer throw errors to stdout about
missing SLS files. (Yay!!)
I have fixed the smtp_return tests so that it will without errors
on hosts with gnupg installed.
2014-05-29 15:04:11 -06:00
Michaël Lemaire
7b437abd4f
Fixed MagicMock import in postgres_test
2014-05-28 15:14:22 +02:00
Michaël Lemaire
cd0f4adae8
Fixed postgres_group.present always updating on test=True
2014-05-28 15:11:24 +02:00
Michaël Lemaire
07bedfe362
Fixed state postgres_user always updating on test=True
2014-05-28 15:05:50 +02:00
Michaël Lemaire
a4b3ef9a69
Added unit tests for postgres_user.present
2014-05-28 14:58:53 +02:00
Michaël Lemaire
5126f0a8ac
states.postgres_extension: Fixed unit test patching (and renamed to PostgresExtensionTestCase for future tests)
2014-05-28 14:58:09 +02:00
Pedro Algarvio
4d7ca91424
Remove unnecessary
©️ and :license:
from file headers
2014-05-26 19:26:15 +01:00
David Czarnecki
b8df9af0ff
Fix rvm module test for adding cwd argument
2014-05-23 16:38:04 -04:00
Erik Johnson
5e0d10f03c
Update event tests to use truncated hash
2014-05-23 08:57:01 -05:00
Erik Johnson
0d35a56772
Ensure this test is run as root
2014-05-22 12:02:44 -05:00
Erik Johnson
4de5050ded
Add test for sock path length
2014-05-22 11:59:26 -05:00
Joseph Hall
a0fae7c349
Cleanup whitespace issues for pylint
2014-05-21 19:31:46 -06:00
David Boucha
9dc182a2f4
fix codeauthor misspellings
2014-05-21 18:59:02 -06:00
Erik Johnson
512adb3136
Add test for shadow.gen_password
...
This addresses some breakage in this function. For more info, see
https://github.com/saltstack/salt/pull/12941 .
2014-05-21 18:37:07 -05:00
Mike Place
888662692f
Pylint zcbuildout
...
I see no evidence of this argument in use. Removed and modified test.
Closes #9556
2014-05-21 10:11:25 -06:00
Pedro Algarvio
5a8575dbb9
The helper method is now released
2014-05-20 10:53:47 +01:00
rallytime
46f90298fb
Pylint fixes
2014-05-15 20:05:08 -06:00
rallytime
c9623c7cc2
Unit tests for aliases module
2014-05-15 16:51:44 -06:00
Gareth J. Greenaway
823575c901
Unit tests for file state broke after adding the follow_symlnks argument. Tests were looking for a value in a specific position in a dictionary which has been pushed back one value. Also fixing an issue that happened if the file being managed by the module is a symlink, file would be treated as a new file.
2014-05-14 11:30:28 -07:00
Thomas S Hatch
2ad2739d98
Merge pull request #12680 from tedski/mdadm_refactor
...
Refactor mdadm module/state to support all options on create.
2014-05-12 16:38:56 -06:00
rallytime
0042169b7c
Created renderers directory in salt/tests/unit for gpg_test.py
2014-05-12 13:21:26 -06:00
Ted Strzalkowski
71983ab581
another pylint fix
2014-05-11 19:06:09 -07:00
Ted Strzalkowski
2f417e1250
pylint fix
2014-05-11 18:57:43 -07:00
Ted Strzalkowski
35a1955ea8
Added unit tests for refactored mdadm module.
...
- test that mdadm.create returns the proper cmd.run inputs
- test that test_mode=True does not call cmd.run
2014-05-11 18:46:22 -07:00
Thomas S Hatch
039e0841c1
Merge pull request #12548 from cachedout/12111
...
Eauth improvements and fixes
2014-05-09 13:55:42 -06:00
rallytime
aa45f50f04
Remove unused imports
2014-05-08 21:15:31 -06:00
rallytime
824969eab9
Correctly skip unit tests if gnupg is not installed
2014-05-08 21:10:15 -06:00
rallytime
cf4d2372b8
Modified GPG tests
2014-05-08 16:44:56 -06:00
Nicole Thomas
a77b55f054
Merge pull request #12527 from baconz/develop
...
Add unit tests and function doc strings to gpg renderer
2014-05-08 16:41:45 -06:00
Mike Place
33626659c7
Rewrite opts and pylint
2014-05-08 16:19:07 -06:00
Mike Place
f338bfd20e
Pylint
2014-05-07 16:58:34 -06:00
Mike Place
f570ab8fd5
More client acl testing.
2014-05-07 16:43:52 -06:00
Erik Johnson
5c07011d65
Remove unnecessary test module
2014-05-07 13:00:33 -05:00
Thayne Harbaugh
871ba0010f
BUG: The MOCK_HOSTNAME is not sufficiently long.
...
Extend the MOCK_HOSTNAME for a better chance that it will be longer
than the actual hostname.
2014-05-06 16:00:40 -06:00
Thayne Harbaugh
09eb54798b
The MOCK_HOSTNAME is not sufficiently long to guarantee that it is
...
longer than the hostname on the current host. Make it crazy long.
2014-05-06 15:28:55 -06:00
Mike Place
fac2c9754b
Hook the assertions into the event system.
2014-05-06 12:04:12 -06:00
Mike Place
469989092d
Pylint and (hopefully) Jenkins test fix.
2014-05-06 10:21:53 -06:00
Mike Place
e6e0eec532
More pylint
2014-05-06 09:23:09 -06:00
Mike Place
bbebbc6dfd
Introducing eauth unit testing.
...
Typo
2014-05-05 16:52:26 -06:00
s8weber
d4b7951da8
fix minion id generation
2014-05-04 19:23:03 -04:00
Seth Madison
7453d6ef35
Add some unit tests for gpg renderer
2014-05-04 15:57:32 -04:00
Chris Rebert
45981a56f9
lots of copyediting
2014-04-30 12:06:27 -07:00
Pedro Algarvio
e31ca389ae
Provide a custom keyring just for tests.
...
Properly skip tests.
2014-04-27 13:26:59 +01:00
Pedro Algarvio
18d969a674
Adapt the test to the changes made in 3c284b1b6
.
2014-04-27 12:35:07 +01:00
Marek Skrobacki
524113fc4f
fix pylint warnings
2014-04-26 10:21:26 +01:00
Marek Skrobacki
10ce848828
remove hard-dependency on keyring
2014-04-25 18:11:24 +01:00
Marek Skrobacki
7fbb5fcb78
add tests for keyring utils
2014-04-25 17:22:48 +01:00
Pedro Algarvio
f07e614a31
Adapt the tests to the new deprecation output.
2014-04-24 11:32:46 +01:00
Pedro Algarvio
7a5604fddd
Bump deprecations to Lithium
2014-04-24 10:15:31 +01:00
Pedro Algarvio
d5c90480fb
Bump deprecations to Lithium
2014-04-24 10:15:01 +01:00
Thomas S Hatch
05721efb0b
Merge pull request #12115 from cachedout/test_fix
...
Fix stacktrace
2014-04-18 11:28:38 -06:00
Mike Place
205a3ac9c4
Grrrr
2014-04-18 11:25:15 -06:00
Thomas S Hatch
b469b07a16
Merge pull request #12114 from cachedout/test_fix
...
Disable unreliable test.
2014-04-18 10:57:11 -06:00
Mike Place
cb018eced0
Disable unreliable test.
2014-04-18 10:52:09 -06:00
Mathieu Le Marec - Pasquet
de66244e65
cron: fix test
2014-04-18 14:50:50 +02:00
Mathieu Le Marec - Pasquet
5ec87461c7
cron: pylint fixes
2014-04-18 12:38:54 +02:00
Mathieu Le Marec - Pasquet
9fa45ca022
cron: fix #11935
2014-04-18 09:14:21 +02:00
Pedro Algarvio
500513375e
Use salt's master clean_proc
routine.
...
On Fedora 20, we hit an issue, at least, similar to #3618 .
While debugging it, I've found that the runtests process keeps eating
memory.
Using `clean_proc` has at least, allowed the runtests to finish without
triggering #3618 .
2014-04-18 07:52:40 +01:00
Pedro Algarvio
9cdc0d5966
The script can be executable.
2014-04-16 01:23:55 +01:00
Pedro Algarvio
afd63deacc
Fix PEP8 E303: too many blank lines (3)
2014-04-15 09:52:12 +01:00
Pedro Algarvio
ac4c042a55
Fix E8251 unexpected spaces around keyword / parameter equals
2014-04-15 09:51:16 +01:00
Thomas S Hatch
fc09454d90
Merge pull request #11985 from toumorokoshi/specialCopy
...
Fixes #11966 , clearer interface for files.copy
2014-04-14 14:27:00 -06:00
Thomas S Hatch
359d92f5d3
Merge pull request #11967 from borgstrom/pyobject_imports
...
Allow for "imports" within pyobjects files
2014-04-14 14:16:35 -06:00
Yusuke Tsutsumi
6a8fbda076
Fixes #11966 , clearer interface for files.copy
...
* adds recurse flag (required when copying directories)
* adds (merge|remove)_existing, to choose whether to keep existing files, or delete the target directory entirely.
2014-04-14 15:34:36 -04:00
Yusuke Tsutsumi
f5b4ac2395
Adding introspection methods for yum and apt-get
...
* adding yumpkg:owner
* adding aptpkg:owner
* refactoring owner method to utils.pkg library
2014-04-14 14:05:43 -04:00
Evan Borgstrom
d54be1b2f2
Allow for "imports" within pyobjects files
...
This allows for pyobject state files to import objects from other state
files by specifying a salt:// URL in the import statement.
2014-04-14 11:26:16 -04:00
Xavier Barbosa
ce2cf98518
implements sls renderer
2014-04-09 06:45:10 +02:00
Pedro Algarvio
640de961ac
A new argument was added to the call, adjust.
2014-04-08 15:38:22 +01:00
Pedro Algarvio
c07ef89f93
salt/templates/lxc/salt_tarball
is an expectable executable.
2014-04-08 13:47:26 +01:00
Nicole Thomas
6eec78fe46
Allow numerical user/group id's without looking up their existence
2014-04-03 13:02:10 -06:00
Thomas S Hatch
b632bb68a1
Merge pull request #11732 from rallytime/bugfix
...
Allow file state to accept numerical ids
2014-04-02 15:46:24 -06:00
Nicole Thomas
3f51dde820
Error checking for if numerical group or user exists
2014-04-02 13:35:58 -06:00
Nicole Thomas
2edbc465f5
Allow file state to accept numerical ids
2014-04-02 11:54:42 -06:00
Thomas S Hatch
09769d6fa2
lint tests
2014-04-02 11:16:24 -06:00
Seth House
ea7eccd0ea
"serialized" -> "unserialized"
...
This was backward.
2014-03-31 10:15:27 -06:00
Seth House
bb9ff7aa6a
First stab at unit tests for the various rest_cherrypy tool functions
2014-03-31 09:59:55 -06:00
Pedro Algarvio
7c782f6752
Adapt test case because we default to dropping unrelated events.
...
The previous default was not dropping unrelated event, however, this
could cause memory leaks, so, the current default is dropping those
events.
We now test for both behaviours.
2014-03-31 03:31:23 +01:00
Pedro Algarvio
ea8db1e427
Allow standalone test execution
2014-03-31 03:05:05 +01:00
Pedro Algarvio
e66432f593
Allow standalone test execution
2014-03-31 03:04:05 +01:00
Pedro Algarvio
a2e4a5c682
Allow standalone test execution
2014-03-31 03:03:40 +01:00
Pedro Algarvio
60d77f6d32
Allow standalone test execution
2014-03-31 03:03:00 +01:00
Pedro Algarvio
d1de22be25
Allow standalone test execution
2014-03-31 03:00:24 +01:00