Commit Graph

1103 Commits

Author SHA1 Message Date
Thomas S Hatch
ea22369481 lint fixes for mysql tests 2013-12-12 15:13:20 -07:00
Thomas S Hatch
7957455ff9 some pylint fixes for mysql tests 2013-12-12 14:56:45 -07:00
regilero
2e48812cfa Merge remote-tracking branch 'upstream/develop' into mysql_additions 2013-12-12 22:10:50 +01:00
regilero
f1b6b4af55 MySQL tests: add a localhost target on mysqladmin test to check for MySQL server presence 2013-12-12 21:23:52 +01:00
Mike Place
6c991e3216 Extreme-self-tab-lart 2013-12-12 11:31:11 -07:00
Mike Place
7405a4eaf3 Pylinting. 2013-12-12 10:16:45 -07:00
Mike Place
6027940a55 More gitfs integration testing. 2013-12-12 10:16:45 -07:00
Thomas S Hatch
7ee36fce89 pylint fixes 2013-12-11 13:07:36 -07:00
regilero
9195f8e5f7 Lint fix 2013-12-11 14:40:42 +01:00
Thomas S Hatch
86e58abe54 Merge pull request #9152 from cachedout/roots_gitfs_testing
Fileserver integration testing.
2013-12-10 16:47:57 -08:00
Mike Place
d59d8ecfd7 Fileserver integration testing.
Finished the roots integration tests for now. Started on GitFS testing.
2013-12-10 17:45:54 -07:00
regilero
3b14cd7cb4 Merge remote-tracking branch 'upstream/develop' into mysql_additions 2013-12-11 00:56:56 +01:00
regilero
82c1cb8e64 MySQL states, grants integration tests 2013-12-11 00:54:05 +01:00
regilero
f980c64bc4 MySQL Module: remove use_unicode connection attribute, not needed for charset managment and would create new bugs with unicode() strings 2013-12-10 23:07:13 +01:00
regilero
532796b4d2 MySQL module integration tests: grants tests and percent and _ tests 2013-12-10 22:54:45 +01:00
Gareth J. Greenaway
ca9197c5a7 Added missing definitions for networking setting, add and get. Changed interface parsing to use a dictionary for inet and inet6 interfaces instead of an array. Certain assumptions were made within the code on the order the ipv4 & ipv6 interfaces would appear, using a dictionary instead resolves some potential issues that could have popped up with an array. removing the tests for ip.get_network_settings and ip.build_network_settings from the exclusion. 2013-12-10 11:46:47 -08:00
Thomas S Hatch
7d9adc697b Merge pull request #9132 from cachedout/file-client-tests
Starting work on new set of tests for fileclient.
2013-12-09 19:55:02 -08:00
Mike Place
55ecc5d0ab Starting work on new set of tests for fileclient.
Also, more integration testing for templates.
2013-12-09 16:47:49 -07:00
Pedro Algarvio
2648ed90ba Fix lint issues. 2013-12-09 20:02:25 +00:00
regilero
2dc7d80786 MySQL: Module: user_grants tests 2013-12-09 20:48:36 +01:00
Thomas S Hatch
8408c1a583 Merge pull request #9053 from regilero/utf8-sls
Proposal for utf-8 support in sls files
2013-12-09 10:41:15 -08:00
Thomas S Hatch
2571d4706c Merge pull request #9059 from terminalmage/issue5919
Add check for '.' in require/watch requisites
2013-12-09 10:17:45 -08:00
regilero
dc615426e7 BUG: white list filtering of grants 2013-12-09 16:27:26 +01:00
regilero
6c0b53547d MySQl: fix states integration tests 2013-12-08 17:10:37 +01:00
regilero
66b6ac31a7 MySQL module test: test conn except for utf-8 db names 2013-12-08 16:37:45 +01:00
Colton Myers
1be4c32c77 Merge pull request #9090 from terminalmage/issue9085
Fix user.present states with non-string fullname
2013-12-06 15:10:39 -08:00
Erik Johnson
a7769b358e Quiet travis failures for new functions missing docstrings 2013-12-06 16:27:56 -06:00
Erik Johnson
e618befaf8 Add test case for numeric GECOS data 2013-12-06 16:16:38 -06:00
Erik Johnson
685d1d36de Fix requisite tests
Now that state.func_name is invalid in requisites, remove them from this
test.
2013-12-06 15:16:57 -06:00
Thomas S Hatch
a6eb0cb460 Fix code errors in disk integration test 2013-12-06 10:49:19 -07:00
regilero
a59d47bc9e Merge remote-tracking branch 'upstream/develop' into mysql_additions 2013-12-06 10:53:32 +01:00
regilero
3769474d9d One more test,to be sure 2013-12-05 18:50:31 +01:00
regilero
bd9a0394ae Integration tests for issue #8947 utf-8 in sls 2013-12-05 18:18:20 +01:00
Joseph Hall
17ca2aeac2 Merge pull request #9024 from cachedout/#8976
Grains detection for LXC and fix error in disk.usage under Docker
2013-12-05 04:34:15 -08:00
Erik Johnson
cadbcbd59d add test case for #8585 2013-12-04 17:29:48 -06:00
regilero
0bfbd7835e MySQL: Suspend grants tests 2013-12-04 22:43:27 +01:00
regilero
b376d1a82b MySQL States integration module with db tests 2013-12-04 22:33:33 +01:00
regilero
5d9ed7d935 typo 2013-12-04 22:33:12 +01:00
regilero
934e62f587 Lint fixs 2013-12-04 22:33:03 +01:00
regilero
ee02117404 BUGFIX: custom MySQldb converter breaks use_unicode code in MySQLdb as 4 types should be set as list and not strings. It was breaking the connection when using use_unicode attribute 2013-12-04 22:32:53 +01:00
regilero
67dc2f5eaa Mostly working mysql user management integrations tests 2013-12-04 22:32:44 +01:00
regilero
ffe6de1592 Integration tests for MySQL user managment, WIP 2013-12-04 22:32:07 +01:00
Mike Place
398ebc1503 Don't run the #8976 tests on Windows. 2013-12-04 12:38:54 -07:00
Mike Place
e6e0a7d919 Integration testing for #8976 2013-12-04 12:34:20 -07:00
Mathieu Le Marec - Pasquet
5f46962e80 pep8 fixes 2013-12-04 00:25:50 +00:00
Thomas S Hatch
ef40793106 Merge pull request #8982 from s0undt3ch/hotfix/salt-cloud-merge
Missed `vm_config` to `profiles_config` and tests
2013-12-03 11:13:50 -08:00
Pedro Algarvio
13a9effdaf Add unit tests regarding include.d directories loading. 2013-12-03 19:08:30 +00:00
Chris Rebert
d91851a479 fix naming of modules.mysql.quoteIdentifier() to follow convention 2013-12-03 10:42:24 -08:00
Pedro Algarvio
63cb0571c1 Skip temporary files. 2013-12-03 18:38:53 +00:00
Thomas S Hatch
77d61d92a4 Merge pull request #8914 from makinacorpus/issue-8856-buildout-support
feat: buildout support
2013-12-03 09:56:59 -08:00
Mathieu Le Marec - Pasquet
e9246d2a77 Remove bootstrap.py's & adapt tests for zcbuildout module 2013-12-03 17:53:58 +00:00
Thomas S Hatch
2918ac4209 Merge pull request #8801 from s0undt3ch/hotfix/deprecate-salt-cloud-config-file
Deprecate salt cloud split config files to CLI tool
2013-12-02 10:36:14 -08:00
Mathieu Le Marec - Pasquet
9bcea05010 Remove obsolete test 2013-12-02 13:42:34 +00:00
Pedro Algarvio
b71e7c6ba7 Fix Lint issues. 2013-12-02 13:06:35 +00:00
regilero
b93f1f8d02 MySQL: Add integration Tests for database names with utf8 characters 2013-12-02 12:13:10 +01:00
Pedro Algarvio
a6d0165977 Replace deprecated X.has_key(Y) syntax with Y in X. 2013-12-02 10:35:13 +00:00
Pedro Algarvio
29ee963f62 Fix Lint issues. Closes #8930. 2013-12-02 10:33:13 +00:00
regilero
f5ea59df83 BUG: MySQL integration tests: false positive on accents with assertTrue, use assertEqual instead and comment accents tests 2013-12-01 17:11:37 +01:00
regilero
69fe9eb27d MySQL: Module integration tests for maintenance tasks check/repair/optimize 2013-12-01 15:27:47 +01:00
Erik Johnson
093065b130 add test for #8614 2013-11-30 22:00:05 -06:00
regilero
95a41bdb9a MySQL integration tests on module level unicode support 2013-12-01 01:35:41 +00:00
Pedro Algarvio
923428c68b Fix PyLint issues. 2013-12-01 01:35:41 +00:00
Pedro Algarvio
c129d3f567 Remove packages installation from mysql tests and push that on travis yml with an opt_requirements.txt source 2013-12-01 00:34:58 +00:00
regilero
05c02c4c50 Try to install python-mysql in travis env via pip to enable MySQL module 2013-12-01 00:34:30 +00:00
regilero
b5f588a9fc Initial MySQL integration test with MySQl packages installed 2013-12-01 00:34:29 +00:00
Mathieu Le Marec - Pasquet
228c987b76 feat: buildout support
This fixes #8856.
2013-11-29 18:51:20 +00:00
Pedro Algarvio
31200152bb Use the new form of passing the configuration file. 2013-11-28 19:52:03 +00:00
Pedro Algarvio
62039527ce The cloud tests need libcloud installed. Skip them if not. 2013-11-28 19:40:17 +00:00
Pedro Algarvio
8d3e3d3402 Skip the test if python-apt is not installed for Debian like systems. 2013-11-28 19:26:21 +00:00
Joseph Hall
b32e8901d0 Merge pull request #8899 from terminalmage/tests
Simplify jinja syntax for ubuntu pkgrepo test deps
2013-11-28 10:31:21 -08:00
Erik Johnson
13dbb9efab Simplify jinja syntax for ubuntu pkgrepo test deps
See the below discussion for more info:

https://github.com/saltstack/salt/pull/8872#discussion-diff-7981734R64
2013-11-28 12:27:39 -06:00
Pedro Algarvio
660a91d1ea Merge the salt-cloud cli integration tests into salt's test suite. Refs #8886. 2013-11-28 17:55:58 +00:00
Erik Johnson
0ffce3ce6d Fix ubuntu deps for pkgrepo integration tests
This fixes a typo'ed package name, as well as doing logic to determine
the correct package name based on the osrelease.
2013-11-27 20:01:14 -06:00
Thomas S Hatch
33a719c1d4 Merge pull request #8848 from terminalmage/tests
Add pkgrepo.managed test SLS for Ubuntu
2013-11-27 08:10:12 -08:00
Pedro Algarvio
6e596738de Disable some PyLint warnings. 2013-11-27 13:07:24 +00:00
Pedro Algarvio
77df007d2f Ignore the exception not declared Pylint error. 2013-11-27 13:04:45 +00:00
Pedro Algarvio
880c9b5cff Fix PEP8 E261 - White space before inline comment 2013-11-27 12:56:35 +00:00
Pedro Algarvio
f2e3a4aebe Fix PyLint C0322 and C0324 - Spaces around opertor and commas 2013-11-27 12:48:53 +00:00
Pedro Algarvio
eea0001942 Fix PyLint W0105(String statement has no effect) 2013-11-27 12:32:54 +00:00
Pedro Algarvio
7164ac1826 Fix Undefined variable 2013-11-27 12:31:27 +00:00
Pedro Algarvio
b841c7fdbe Indexed .format() curly braces! 2013-11-27 12:14:30 +00:00
Pedro Algarvio
0ae1a15c61 PEP8 E302 and E303 blank lines fixes. 2013-11-27 12:11:45 +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
b89252b264 The docker tests need docker. Skip them if not available. 2013-11-27 10:36:51 +00:00
Erik Johnson
55b870e43a Add pkgrepo deps for ubuntu
This fixes travis failures due to needed python module not being
installed.
2013-11-26 23:55:26 -06:00
Erik Johnson
f56ad56a5a Add pkgrepo.managed test SLS for Ubuntu
pkgrepo.absent is not behaving properly, will add a test case for
pkgrepo.absent later once I've had a chance to troubleshoot.
2013-11-26 23:22:59 -06:00
Thomas S Hatch
eb9ba6fda0 Merge pull request #8756 from s0undt3ch/issues/8343-require_in-KeyError
Fix accomulator issues
2013-11-26 13:18:49 -08:00
Thomas S Hatch
079c849adf Merge pull request #8834 from cro/dockerio_cleanup
Add some tests for docker integration.
2013-11-26 11:18:22 -08:00
C. R. Oldham
10ef0de5f6 Add some tests for docker integration. 2013-11-26 12:13:25 -07:00
Thomas S Hatch
5637339b2c Merge pull request #8823 from regilero/requisites-fix
Fix #8773: allow syntax error state.foo in requisites with a warning.
2013-11-26 08:07:40 -08:00
Thomas S Hatch
25dcbefb9c Merge pull request #8820 from terminalmage/tests
Add pkgrepo tests for CentOS
2013-11-26 08:05:34 -08:00
regilero
4497751420 Fix #8773: allow syntax error state.foo in requisites with a warning. 2013-11-26 11:57:09 +01:00
regilero
9094d36b44 Comment tests for closed issue #8802 2013-11-26 10:54:32 +01:00
regilero
ab88a276dc remove test for issue #8976 closed as expected behavior 2013-11-26 10:51:47 +01:00
Erik Johnson
05de056df0 Add an assert to ensure that the state.sls return dict isn't empty 2013-11-25 17:41:03 -06:00
Erik Johnson
1c9f2fc224 Remove grains requirement
I had this code here in an early draft of this test, but the grains are
no longer needed here as the stuff that requires grains has been moved
out of the test function and into the SLS files that are run by the
test.
2013-11-25 17:30:18 -06:00
Erik Johnson
a77357f01d Fix pkgrepo tests when python file is run by itself on CLI 2013-11-25 17:27:26 -06:00
Erik Johnson
c2e346835c Add pkgrepo tests for CentOS
Ubuntu ones will follow soon.
2013-11-25 17:20:32 -06:00
regilero
9b20a408a4 commented tests for issue 8802 use recursion undetected 2013-11-25 15:35:22 +01:00
regilero
38bd6709f0 require vs require_in in not-list yamlsyntax: differences, still on #8235 2013-11-25 12:58:59 +01:00
regilero
58bfbff843 prereq tests for issue #8235 (yaml without lists) and error message difference in no-list mode 2013-11-25 12:46:02 +01:00
regilero
8024df8404 Add test for #8796: use does not inherit require. False test actually 2013-11-25 11:06:37 +01:00
regilero
5d248146df Remove wrong comments on prereq working test 2013-11-24 18:33:15 +01:00
regilero
aaa6f44677 Missing states for the mixed require and prereq mixed tests 2013-11-24 18:30:44 +01:00
regilero
8177f2b609 Add another working prereq simple test 2013-11-24 18:30:15 +01:00
regilero
0354e408e3 Comments on require test example 2013-11-24 18:28:59 +01:00
regilero
ddb99a570d require and prereq mixed tests, mostly failing, see #8785 2013-11-24 18:28:22 +01:00
Pedro Algarvio
f0bf78cdc0 Correct the state test case and respective expected output. 2013-11-24 12:15:20 +00:00
Pedro Algarvio
a752421b87 Expose a copy of the state dictionary to state functions.
Fixes #8343 since `__sls__` is now available in `__state__` and not on `kwargs`.
Closes #8709 since it's not the right approach.
Fixes #8710 and closes #8711 since I've cherry-picked the fix for #8710 in from #8711.
2013-11-24 11:08:33 +00:00
regilero
ab4ee0ba1f full sls require test, and yet to do check for require_in or prereq #8233 2013-11-23 18:56:07 +01:00
regilero
7b01991c0a require recursion and still not done prereq recursion 2013-11-23 18:20:15 +01:00
regilero
a99cd0eafd Use requisite 2013-11-23 17:26:37 +01:00
regilero
6a7d35bc59 commented test for issue #8211 complex prepreq 2013-11-23 16:59:10 +01:00
regilero
e4c68d1a94 small typo 2013-11-23 16:47:10 +01:00
regilero
ceb5963094 Prereq and prerequ_in tests 2013-11-23 16:39:19 +01:00
regilero
407533dfa5 require and require_in tests 2013-11-23 16:37:57 +01:00
Jeffrey C. Ollie
b1fb52a680 fix more funcion => function typos 2013-11-15 14:50:17 -06:00
Pedro Algarvio
54fc502de0 Some more saltenv related tests. 2013-11-12 06:29:55 +00:00
Pedro Algarvio
097aed1e7e Show the error in case of failure. 2013-11-12 01:01:51 +00:00
Pedro Algarvio
d88d34ca24 The GitHub IP changed. 2013-11-11 07:45:10 +00:00
Pedro Algarvio
4fb38e1e91 Merge pull request #8385 from s0undt3ch/hotfix/test-kwarg
Document passing arguments with equal signs. Refs a1ba178d.
2013-11-10 10:28:20 -08:00
Pedro Algarvio
a192d03ffb Only delete the file if it actually exists. 2013-11-10 15:36:39 +00:00
Pedro Algarvio
66cf8f1845 The argument name is arg, not args. 2013-11-10 15:36:11 +00:00
Pedro Algarvio
0f25353e08 Pass a relative path for proper test execution.
If we're trying to test a failure which happens when the path is not absolute, let's not pass it an absolute path in the first place.
2013-11-10 15:30:42 +00:00
Pedro Algarvio
c66fc86f79 Document passing arguments with equal signs. Refs a1ba178d.
Add additional documentation regarding arguments passing with equal signs for which salt tries hard to turn into keyword arguments. The problem now arises because non supported arguments immediately thrown an exception.
2013-11-10 11:40:01 +00:00
Pedro Algarvio
148cef5772 Reintroduce the removed grains information.
Removed on 4617a931be and 52be720d62.
2013-11-08 19:53:43 +00:00
Pedro Algarvio
47ccaf959e Revert "Remove debugging pprint"
This reverts commit 4617a931be.
2013-11-08 19:53:38 +00:00
Pedro Algarvio
e8e19baf8d Revert "Remove unused grains lookup"
This reverts commit 52be720d62.
2013-11-08 19:53:29 +00:00
Pedro Algarvio
77101231f2 Install a smaller and with less dependencies package. 2013-11-07 22:09:36 +00:00
Colton Myers
78662d270b Merge pull request #8325 from cachedout/#7860
Add a dir_mode to file.managed
2013-11-07 09:35:54 -08:00
Mike Place
2e6bf21635 Integration testing for file.managed dir_mode argument.
Added documentation for dir_mode to file.managed.
2013-11-07 10:19:16 -07:00
Henrik Holmboe
043f9bf85a Fix typos 2013-11-07 10:06:37 +01:00
Thomas S Hatch
e64f7b0633 Merge pull request #8311 from s0undt3ch/issues/8196-environments
Some more `saltenv` related changes/fixes
2013-11-06 16:07:25 -08:00
Pedro Algarvio
ec0a4bca8e URL environment selection should also be using saltenv. 2013-11-06 23:36:40 +00:00
Thomas S Hatch
68d5b2c21a Merge pull request #8289 from jacksontj/develop
Covering case where kwarg cannot be un-yaml'd
2013-11-06 15:05:14 -08:00
Pedro Algarvio
b82a051aef Correctly trigger the issue reported on #8196. 2013-11-06 22:49:29 +00:00
Pedro Algarvio
3477300d7f Add a test case to check for proper env selection when passing ?env=foo. Refs #8196. 2013-11-06 22:47:55 +00:00
Thomas S Hatch
a343e69d02 Merge pull request #8230 from s0undt3ch/issues/8196-environments
Properly pass `__env__` to states.
2013-11-06 14:23:26 -08:00
Pedro Algarvio
962f8d4149 Support adding files to the testing prod state env. 2013-11-06 20:18:47 +00:00
Pedro Algarvio
9a22d3053e The pip module no longer accepts __env__ as a kwarg. 2013-11-06 20:15:23 +00:00
Pedro Algarvio
56129e3610 Include the holy directory for the __env__ selection test cases. 2013-11-06 20:04:54 +00:00
Pedro Algarvio
c170d1e572 Updated test cases to include environment selection in states using __env__. 2013-11-06 20:04:54 +00:00
Pedro Algarvio
0a03ecc6bc Add required state file. 2013-11-06 20:04:10 +00:00
Pedro Algarvio
e334e232d1 Forgot to add the top file. 2013-11-06 20:04:10 +00:00
Pedro Algarvio
ec76b188b1 Correctly trigger the issue reported on #8196. 2013-11-06 20:03:44 +00:00
Pedro Algarvio
2924f1c14a Add a test case to check for proper env selection when passing ?env=foo. Refs #8196. 2013-11-06 20:03:44 +00:00
Erik Johnson
5ef4b31e97 Include more information in test docstrings
This adds additional information that describes the relevant code being
tested, so that if there is a problem it is easier to trace it back to
where the problem lies.
2013-11-06 14:03:33 -06:00
Erik Johnson
3c799c0bd5 Add test for arguments with dashes in the arg name 2013-11-06 14:00:02 -06:00
Erik Johnson
f24fb7c26f Add test for unsupported kwarg 2013-11-06 13:38:30 -06:00
Thomas Jackson
01f2d119b1 Covering case where kwarg cannot be un-yaml'd
In the past the master has been taking the kwargs passed in and converting them to a string (kwy=value) and letting the minion de-yaml that arg string. In general this is okay, but it doesn't work well if you are calling from the python LocalClient interface-- since the kwarg you passed already had a type. With this change instead of converting the kwarg to a string it is converted to a dict with a flag to mark it as a kwarg dict, then it is unpacked on the minion side while still maintining type
2013-11-05 19:04:23 -08:00
Pedro Algarvio
c849c4b57f Moved test cases from #8195 to a better place. 2013-10-31 18:54:25 +00:00
regilero
089787cead Integration tests for #8174, #7905 & #8114: sls syntax errors 2013-10-31 14:30:25 +01:00
Pedro Algarvio
4b46ee5017 Remove unnecessary imports. 2013-10-26 18:59:44 +01:00
Pedro Algarvio
f96c01738e Provide the loader integration tests in it's own package. 2013-10-26 18:57:00 +01:00
Pedro Algarvio
3bedf7c751 Some more tests within the test case. 2013-10-26 18:45:21 +01:00
Pedro Algarvio
ce553415cc Provide test case to prove proper loader function override. Refs #8096. 2013-10-26 18:06:28 +01:00
Henrik Holmboe
c10ed8ea60 Fix my typo 2013-10-24 11:42:52 +02: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
Erik Johnson
95efdad8ba Remove ubuntu 32-bit target 2013-10-20 21:47:05 -05:00
Erik Johnson
7984a8c2cf Apparently the test framework doesn't like private member functions 2013-10-20 21:46:06 -05:00
Erik Johnson
81434578fc Fix function name 2013-10-20 21:29:36 -05:00
Erik Johnson
1c0d279c59 Fix import error 2013-10-20 20:50:28 -05:00
Erik Johnson
9397840021 More tweaks to package tests
This makes package tests work better on CentOS 5, and also adds a 32-bit
target for Ubuntu.
2013-10-20 20:27:45 -05:00
Erik Johnson
90d6d045f1 Move _wait_for_pkgdb_unlock inside of PkgTest class 2013-10-20 18:48:01 -05:00
Erik Johnson
63ee0f1e83 Add function to wait for pkgdb lock to clear
Arch pkg tests that call pkg.latest_version seem to fail on running
this function due to the package database still being locked from
previous tests. This adds a function that waits (in 5 second increments)
for up to 60 seconds for the pkgdb to be unlocked.

http://jenkins.saltstack.com/job/salt-rs-arch/474/artifact/salt-runtests.log/*view*/
2013-10-20 18:18:35 -05:00
Erik Johnson
c5f5b400e9 adjust redhat pkg targets for pkg tests 2013-10-20 17:04:27 -05:00
Erik Johnson
62a9385ddf Don't perform version spec pkg tests on FreeBSD
pkg_add does not support this, so this test will fail when
pkg.latest_version is run and an assertion is done to determine the
targeted version.
2013-10-20 16:00:14 -05:00
Erik Johnson
5dc08d552a adjust pkg targets for pkg tests 2013-10-20 15:48:57 -05:00
Erik Johnson
fe1c4487e3 add tests for installing 32-bit packages 2013-10-20 15:16:36 -05:00
Erik Johnson
c7fcc79747 Add tests for pkg.installed with version specification 2013-10-20 14:35:10 -05:00
Erik Johnson
9d75d7a425 Change packages for pkg.installed tests on Debian-based systems
Travis-CI uses Debian/Ubuntu VMs and bzr is on their base image, so this
causes these tests to fail on Travis. This replaces bzr for tests on
Debian-based OSes.
2013-10-19 10:48:10 -05:00
Erik Johnson
0205f28e4a Add pkg.installed tests 2013-10-19 09:50:48 -05:00
C. R. Oldham
66e3be46d1 Make sure multiple names clauses retain same order 2013-10-18 14:57:48 -06:00
Pedro Algarvio
db670d1357 Don't fail if process already killed. 2013-10-16 23:27:19 +01:00
Thomas S Hatch
bbd159f8a0 Not sure why we are removing a file from the source halfway in a
test, this should fix the failing test, @s0undt3ch, if this break
something I am not seeing please let me know
2013-10-16 12:17:59 -06:00
Thomas S Hatch
3143cb6e48 import skipif 2013-10-16 12:13:16 -06:00
Pedro Algarvio
40d70fb13f os.getcwd() might thrown an OSError if it was deleted or moved.
Let's not fail because of that.
2013-10-16 17:32:22 +01:00
Pedro Algarvio
7de1cda6da The test needs to be executed as root to pass. 2013-10-16 17:27:05 +01:00
Pedro Algarvio
9f29d0012e Fix typo from 6bc5ea34. 2013-10-16 16:37:36 +01:00
Thomas S Hatch
aa584dc255 Add ret value to test return data 2013-10-15 17:05:04 -06:00
Thomas S Hatch
ca0e967c13 Assign the ret value 2013-10-15 17:03:12 -06:00
Thomas S Hatch
6bc5ea34e9 Ensure that the ports are integers 2013-10-15 16:59:44 -06:00
Thomas S Hatch
8612f7c007 Add ref to ret in test_7754 2013-10-15 16:34:17 -06:00
Colton Myers
3e565737c6 Merge pull request #7853 from s0undt3ch/issues/7754
Fix syslog logic checks for `file://`, `tcp://` and `udp://`. Fixes #7754
2013-10-15 14:22:43 -07:00
Pedro Algarvio
e72b4a3492 Fix syslog logic checks for file://, tcp:// and udp://. Fixes #7754. 2013-10-15 22:09:37 +01:00
C. R. Oldham
8793429f72 Make sure that ssh keys don't get added with incorrect encoding types. 2013-10-15 11:48:28 -06:00
David Anderson
ec4475cf30 Fix issue 5951 - correct __opts__['file_roots'] in ext_pillars 2013-10-11 11:53:00 -06:00
David Anderson
25b0e3f89e Restore the pillar[master][file_roots] when returning the pillar 2013-10-10 15:12:00 -06:00
Pedro Algarvio
8f0a19946d Fix test_issue_6973_state_highstate_exit_code. 2013-10-04 21:31:46 +01:00
Pedro Algarvio
c5082f2a77 Patch salt.utils.which to fix Django tests.
After the check added in 8deefc16, the django salt module integration test cases started to fail if the django administration script was not found in `$PATH`.
2013-10-04 19:07:11 +01:00
Pedro Algarvio
c8f1e457d7 Allow tests.integration.run_tests to execute more than one TestCase instance. 2013-10-03 16:09:57 +01:00
Pedro Algarvio
707385c1c1 Use the salt testing requires_salt_modules decorator. 2013-09-28 18:57:38 +01:00
Pedro Algarvio
034d8f3a61 Skip tests if libvirt is not importable. 2013-09-28 18:55:15 +01:00
Pedro Algarvio
e7ddf159a1 Make sure there's a line break before writing new key. Fixes #7409. 2013-09-28 00:00:26 +01:00
Pedro Algarvio
2f3ed58541 Add test case which verifies the occurrence of #7409. 2013-09-28 00:00:25 +01:00
Thomas S Hatch
bd846ffdbb Merge pull request #7264 from holmboe/esxi-init
Introduce disk profiles and enable virt.init on an ESX host
2013-09-27 08:02:11 -07:00
Henrik Holmboe
5324d6a7eb Two integration tests for virt.get_profiles
This will test the default NIC and disk profiles for KVM and ESX.
2013-09-27 01:41:52 +02:00
Pedro Algarvio
4a18003231 Error signatures changed, lets update test cases. 2013-09-24 22:08:08 +01:00
Pedro Algarvio
83d23d9be7 Use salt.utils.is_windows(). 2013-09-24 22:08:08 +01:00