Colton Myers
c7b666fe43
Bring boto state tests from develop to 2014.7
2014-09-03 15:22:55 -06:00
btibi
dcb7d51466
syslog_ng: fix pep8 lint errors and warnings
2014-08-30 11:33:44 +02:00
btibi
e47c18203c
syslog_ng: remove unused pdb import
2014-08-30 11:11:26 +02:00
btibi
69b0deacf6
syslog_ng: add syslog-ng state and execution modules
2014-08-29 23:20:25 +02:00
Jon Henry
5b47b0bdb7
Fix gem unit test with new proxy parameter
2014-08-25 13:55:59 -06:00
Gavin Swanson
d972aeff55
Merge branch 'addCygwin' into develop
2014-08-23 15:56:32 -07:00
Gavin Swanson
4eaa601f3c
Added update and uninstall functions
...
Should be able to remove and update things now. Also doesn't always
update when installing anymore. Update now only called via
salt['cyg.update']()
2014-08-15 20:17:40 -07:00
Gavin Swanson
c8d19409f6
Add cygwin package installation
...
Currently only hadles adding packages. Does not remove packages. It is
setup to update packages any time it is run, but there is no independent
update functionality.
Curently no unit/integration testing is done. I haven't wrapped my head
around the way the mocking and stuff is done yet.
2014-08-15 14:13:22 -07:00
Jon Henry
c065ac4f50
Fix gem unit test with new proxy parameter
2014-08-14 00:22:52 -06:00
Chris Rebert
b7ce0dbe60
more typos after disabling case-sensitivity
2014-08-11 10:57:41 -07:00
Rob Messick
4549ef25a2
Add support for pre_releases argument to the gem state
2014-07-25 12:30:42 -07:00
Colin Johnson
2ad52a5c06
LYFT-14491 - states unit test for rule modification
2014-07-23 22:59:28 +00:00
Khris Richardson
1acd82f3f1
add sphinx spelling extension. enforce en_us
2014-07-13 13:43:33 -05:00
Pedro Algarvio
7862600683
Remove syslog-ng tests. Refs #14163
2014-07-13 00:09:45 +01:00
btibi
f69977d3e5
Add syslog_ng state module.
2014-07-09 22:04:13 +02: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 Boucha
9dc182a2f4
fix codeauthor misspellings
2014-05-21 18:59:02 -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
Chris Rebert
45981a56f9
lots of copyediting
2014-04-30 12:06:27 -07:00
Pedro Algarvio
18d969a674
Adapt the test to the changes made in 3c284b1b6
.
2014-04-27 12:35:07 +01:00
Pedro Algarvio
d5c90480fb
Bump deprecations to Lithium
2014-04-24 10:15:01 +01: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
640de961ac
A new argument was added to the call, adjust.
2014-04-08 15:38:22 +01:00
Pedro Algarvio
ea8db1e427
Allow standalone test execution
2014-03-31 03:05:05 +01:00
Mathieu Le Marec - Pasquet
66e98055c9
cron: fix tests
2014-03-11 18:13:06 +00:00
Thomas S Hatch
b3f99f9833
Merge pull request #10776 from ticosax/fix-states.dockerio.run
...
Fix states.dockerio.run
2014-02-27 12:55:23 -07:00
Nicolas Delaby
c6b5ade054
declare encoding
2014-02-26 16:31:38 +01:00
Nicolas Delaby
853b5f4a8f
Add test for states.dockerio.run
2014-02-26 15:42:56 +01:00
Mathieu Le Marec - Pasquet
f9a116ee9c
Support multiline cron comments
...
This fixes #10721 .
2014-02-25 19:52:47 +00:00
Thomas S Hatch
6839eb1a56
fix cron test error in lint
2014-02-20 10:05:56 -07:00
Mathieu Le Marec - Pasquet
bfa176f110
cron: complete matching rework
2014-02-19 22:44:34 +01:00
Mathieu Le Marec - Pasquet
90dc963c1c
cron: better behavior of crontabs tracking
2014-02-19 20:39:44 +01:00
Pedro Algarvio
abedf1978e
Remove unused imports
2014-02-08 08:08:16 +00:00
Pedro Algarvio
22908278a4
Remove unused imports
2014-02-08 08:07:38 +00:00
Pedro Algarvio
140eb8af2b
Remove unused imports
2014-02-08 08:07:17 +00:00
Mathieu Le Marec - Pasquet
7039b4c974
postgres: support for extensions
2014-01-21 19:25:35 +01:00
Pedro Algarvio
e8de5e7077
Don't hardcode the virtualenv binary name
2013-12-31 14:49:22 +00:00
Pedro Algarvio
020d7896c5
Skip if the pip
library is not importable.
2013-12-31 14:22:35 +00:00
Pedro Algarvio
d14af796cc
Skip tests if virtualenv
is not available.
2013-12-31 14:12:02 +00:00
Mathieu Le Marec - Pasquet
1365688bf7
Again, more robustness for zcbuildout tests
2013-12-22 18:52:54 +00:00
Mathieu Le Marec - Pasquet
7d299f9c0f
pylint fixes
2013-12-04 00:25:56 +00:00
Mathieu Le Marec - Pasquet
5f46962e80
pep8 fixes
2013-12-04 00:25:50 +00:00
Mathieu Le Marec - Pasquet
e9246d2a77
Remove bootstrap.py's & adapt tests for zcbuildout module
2013-12-03 17:53:58 +00:00
Mathieu Le Marec - Pasquet
30511257a8
add requires_network for buildout test
2013-12-03 16:51:46 +00:00
Mathieu Le Marec - Pasquet
228c987b76
feat: buildout support
...
This fixes #8856 .
2013-11-29 18:51:20 +00:00
Pedro Algarvio
b21bf4b682
Extra or misplaced white-space
2013-11-27 12:59:56 +00:00
Pedro Algarvio
0ae1a15c61
PEP8 E302 and E303 blank lines fixes.
2013-11-27 12:11:45 +00:00
Pedro Algarvio
d02a2bc224
Include the python encoding file header on tests.
2013-11-27 11:19:24 +00:00
Emil Stenqvist
f487d5568a
Fix for issue #8519
...
Also added a test that fails prior to the fix, illustrating the problem.
2013-11-14 14:26:35 +01:00
Pedro Algarvio
55e0290da6
Fix the mocked contents pillar file state tests.
2013-11-12 07:55:03 +00:00
Pedro Algarvio
4c84b1da3e
State unit tests need to have an hardcoded __env__
.
2013-11-06 20:04:54 +00:00
Henrik Holmboe
77fd1acb7f
Change assertEquals to assertEqual
...
According to
http://docs.python.org/2/library/unittest.html#deprecated-aliases
assertEquals is a deprecated alias of assertEqual.
2013-10-24 11:39:04 +02:00
Seth House
bd897c0bdb
Add unit test for the "python" jinja filter
...
Missing from c91fe1c
(pull req #7866 ).
2013-10-16 09:24:40 -06:00
Pedro Algarvio
3c4f33a935
Adapt remaining test cases which relied on old versioning scheme.
2013-10-04 13:10:35 +01:00
Pedro Algarvio
7ae519c34e
Fix unit.states.rvm_test.TestRvmState.test_installed
2013-09-21 10:42:34 +01:00
Pedro Algarvio
e18ba0758b
Don't include authorship in generated documentation, the Sphinx way.
2013-09-16 17:24:00 +01:00
Pedro Algarvio
22873f63bb
Add another pip installed VCS test case using git+git://
2013-09-09 20:53:52 +01:00
Pedro Algarvio
51a01ef79b
Added mocked pip installation test-case for when pip's version is <=1.1
2013-08-29 10:57:50 +00:00
Pedro Algarvio
456360dc32
Fix test expected output plus an additional one for pip git install.
2013-08-26 17:05:47 +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
5d26a9fd4b
Adapted unit.states.rvm_test
to use salttesting.mock
2013-08-26 13:03:08 +00:00
Pedro Algarvio
23fa44ff58
Adapted unit.states.pip_test
to use salttesting.mock
2013-08-26 13:03:08 +00:00
Pedro Algarvio
8f44dec13e
Adapted unit.states.gem_test
to use salttesting.mock
2013-08-26 13:03:08 +00:00
Pedro Algarvio
ef29861ff3
Adapted unit.states.file_test
to use salttesting.mock
2013-08-26 13:03:07 +00:00
Pedro Algarvio
5075898935
No absolute imports.
2013-08-22 21:45:45 +01:00
Pedro Algarvio
52b8da5d13
Adapt to the output when installing a package from a compressed file.
2013-08-22 21:06:06 +01:00
Pedro Algarvio
df8bdf8646
By forcing absolute imports, we don't have to rename the pip state module.
2013-08-22 19:02:18 +01:00
Pedro Algarvio
aea94fd6a2
Another example test case.
2013-08-22 19:02:18 +01:00
Pedro Algarvio
e70827371f
Some more requirements parsing tests
2013-08-22 19:02:18 +01:00
Pedro Algarvio
58ad040872
Use pip.req
for parsing package requirements. Minimal tests.
2013-08-22 19:02:17 +01:00
Pedro Algarvio
2b0bc7056e
Under python 2.6 using {}.format()
(without an index) is a ValueError
.
2013-08-06 19:29:08 +01:00
Roberto Aguilar
74be66baca
Added tests for file.managed contents_pillar param
2013-08-04 22:09:37 -07:00
Pedro Algarvio
42641c6153
Added test case to see if the usage of user
and runas
at the same time raises an exception.
2013-07-27 16:02:59 +01:00
Pedro Algarvio
c072fa0241
Also deprecate runas
on salt.states.pip
.
...
* Added mock tests to check if the deprecation is triggered, and to see if the deprecation is also returned to the user in a warnings key.
2013-07-27 15:58:28 +01:00
Xavier Barbosa
3f49000ba2
unittesting for file.serialize and yaml & json filters
2013-07-08 16:19:19 +02:00
Pedro Algarvio
c04cc4a945
Updated unit.states.rvm_test
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:03 +01:00
Pedro Algarvio
b13340e5ea
Updated unit.states.gem_test
test suite to use salttesting.helpers.ensure_in_syspath()
2013-06-28 00:13:03 +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
Pedro Algarvio
64a0d631e1
Fix rvm unit tests.
2012-12-11 11:27:21 +00:00
John Debs
4a062f1e69
Logic and test fixes for version, ri, rdoc support in gem state
2012-11-15 18:05:06 -05:00
Jeff Schroeder
07b4c8b4ed
Skip the rvm and gem module/state tests when mock is missing
...
The mock python module is required for the gem and rvm tests.
If it is not available, the tests should be gracefully skipped.
From python runtests.py -u:
test__check_and_install_ruby (unit.states.rvm_test.TestRvmState) ... skipped 'mock python module is unavailable'
test__check_ruby (unit.states.rvm_test.TestRvmState) ... skipped 'mock python module is unavailable'
test__check_rvm (unit.states.rvm_test.TestRvmState) ... skipped 'mock python module is unavailable'
test_gemset_present (unit.states.rvm_test.TestRvmState) ... skipped 'mock python module is unavailable'
test_installed (unit.states.rvm_test.TestRvmState) ... skipped 'mock python module is unavailable'
test_installed (unit.states.gem_test.TestGemState) ... skipped 'mock python module is unavailable'
test_removed (unit.states.gem_test.TestGemState) ... skipped 'mock python module is unavailable'
test__rvm (unit.modules.rvm_test.TestRvmModule) ... skipped 'mock python module is unavailable'
test__rvm_do (unit.modules.rvm_test.TestRvmModule) ... skipped 'mock python module is unavailable'
test_gemset_list (unit.modules.rvm_test.TestRvmModule) ... skipped 'mock python module is unavailable'
test_gemset_list_all (unit.modules.rvm_test.TestRvmModule) ... skipped 'mock python module is unavailable'
test_install (unit.modules.rvm_test.TestRvmModule) ... skipped 'mock python module is unavailable'
test_list (unit.modules.rvm_test.TestRvmModule) ... skipped 'mock python module is unavailable'
test__gem (unit.modules.gem_test.TestGemModule) ... skipped 'mock python module is unavailable'
test_list (unit.modules.gem_test.TestGemModule) ... skipped 'mock python module is unavailable'
test_sources_list (unit.modules.gem_test.TestGemModule) ... skipped 'mock python module is unavailable'
2012-06-30 12:29:48 -07:00
Jeroen Dekkers
92ffbaba6e
Be compatible with mock 0.7
2012-06-19 02:19:03 +02:00
L.C. Rees
140e8781df
- py3k updates
2012-05-31 23:31:27 -06:00
Anselm Helbig
d02f0beaee
added proper unit tests for gem and rvm modules and states; fixed bugs in the rvm module's install function and in the rvm state's handling of ruby versions
2012-05-03 11:33:16 +02:00