rallytime
276affe259
Initial cloud provider tests for GoGrid
2014-06-12 17:09:57 -06:00
rallytime
dd03b59dc6
Rackspace with openstack driver cloud tests
2014-06-11 11:26:30 -06:00
rallytime
da839f9ec7
salt-cloud tests for digital ocean
2014-06-09 14:49:49 -06:00
rallytime
7689a9bc99
salt-cloud tests for linode
2014-06-09 14:49:49 -06:00
Pedro Algarvio
7bd8b1360f
Remove remaining exsel
code
2014-05-29 01:32:54 +01:00
Pedro Algarvio
4d7ca91424
Remove unnecessary
©️ and :license:
from file headers
2014-05-26 19:26:15 +01:00
Mike Place
f3733fabf4
Clean up sshd config.
...
Remove hostkeys that are now dymaically generated per-run.
No more usepam
2014-05-23 15:04:11 -06:00
Mike Place
7abc25f67f
Generate server keys too
2014-05-23 14:11:14 -06:00
Mike Place
cf25592c53
Working salt-ssh test runner
...
This rounds out initial (alpha) support for a salt-ssh test runner.
At present, one must manually specify the --ssh flag to ensure that
the ssh deamons are spun up properly.
Conflicts:
tests/integration/__init__.py
tests/integration/files/conf/_ssh/sshd_config
tests/integration/files/conf/sshd_config
tests/integration/files/ext-conf/sshd_config
2014-05-23 14:11:14 -06:00
Elias Probst
f57dce2224
Correct usage of 'CLI Example' in documentation blocks
...
This mass-edit was done using the following shell command:
ack --python -l '^(\s*)CLI Example::$' \
| xargs sed -i \
's/^\(\s*\)CLI Example::/\1CLI Example:\n\n\1.. code-block:: bash/g'
2014-05-14 19:29:49 +02:00
Pedro Algarvio
6b1380a25c
Move sshd_config
file to another directory to avoid problems.
2014-05-12 19:06:09 +01:00
Mike Place
d7bba818a9
Only listen on localhost.
2014-05-10 14:18:53 +01:00
Mike Place
0cbac67a3f
Support for continuous integration testing of salt-ssh
2014-05-10 14:18:53 +01:00
Pedro Algarvio
33f361e99d
Don't use the deprecated keyword argument
2014-04-24 09:06:28 +01:00
Thomas S Hatch
9ed1e172e3
Maybe this will fix the ubuntu tests on jenkins!
2014-04-02 11:02:03 -06:00
Thomas S Hatch
d478a16ef5
These tests should have never worked!!
2014-04-02 10:27:04 -06:00
Pedro Algarvio
1ef4cd11cb
Not renaming, return a boolean in __virtual__()
.
2014-03-10 17:51:54 +00:00
Thomas S Hatch
94a6b01522
Merge pull request #10011 from makinacorpus/fix10010
...
display full jinja traceback when applicable
2014-01-29 07:41:29 -08:00
Mathieu Le Marec - Pasquet
a6b3bf4167
Lint fix
2014-01-29 02:43:19 +01:00
Mathieu Le Marec - Pasquet
688abda402
display full jinja traceback when applicable
...
This fixes #10010
2014-01-29 02:04:12 +01:00
Mathieu Le Marec - Pasquet
165b5e4af2
Handle better state errors
...
This fixes #9983 .
2014-01-28 16:01:34 +01:00
Thomas S Hatch
b90b4a0db8
Set tests to refresh fs list cace with every check
2014-01-09 15:10:42 -07:00
Mike Place
444cae7236
Integration test fix
...
* oscodename should not have been removed.
2013-12-27 13:25:05 -07:00
Mike Place
9a8b9ab49d
Fix Ubuntu integration tests.
...
Ubuntu changed the name of the software-properties package, breaking tests. Details here: https://bugs.launchpad.net/ubuntu/+source/ubuntu-meta/+bug/439566
2013-12-27 09:40:07 -07:00
Ollie Walsh
14da357576
Increase master timeout during tests now that it is not incorrectly incrementing
2013-12-17 01:49:08 +00:00
Seth House
7cfaca6ddb
Add basic lowdata test for master_call
2013-12-13 16:00:34 -07:00
Thomas S Hatch
476f0b8a25
Apply yaml_utf8 to test config
2013-12-13 15:20:50 -07:00
regilero
2e48812cfa
Merge remote-tracking branch 'upstream/develop' into mysql_additions
2013-12-12 22:10:50 +01: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
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
regilero
b376d1a82b
MySQL States integration module with db tests
2013-12-04 22:33:33 +01:00
Mathieu Le Marec - Pasquet
5f46962e80
pep8 fixes
2013-12-04 00:25:50 +00:00
Pedro Algarvio
13a9effdaf
Add unit tests regarding include.d
directories loading.
2013-12-03 19:08:30 +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
228c987b76
feat: buildout support
...
This fixes #8856 .
2013-11-29 18:51:20 +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
d02a2bc224
Include the python encoding file header on tests.
2013-11-27 11:19:24 +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
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
ab88a276dc
remove test for issue #8976 closed as expected behavior
2013-11-26 10:51:47 +01: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
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
56129e3610
Include the holy
directory for the __env__
selection test cases.
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
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
ce553415cc
Provide test case to prove proper loader function override. Refs #8096 .
2013-10-26 18:06:28 +01:00
C. R. Oldham
66e3be46d1
Make sure multiple names clauses retain same order
2013-10-18 14:57:48 -06: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
Pedro Algarvio
e18ba0758b
Don't include authorship in generated documentation, the Sphinx way.
2013-09-16 17:24:00 +01:00
David Boucha
2dc500d1d7
remove trailing space
2013-09-01 23:40:39 -06:00
Thomas S Hatch
de53840457
Reduce test suite worker threads to 3, the peer system does not
...
need extra procs anymore
2013-08-12 22:33:59 -06:00
Pedro Algarvio
e467b1e00b
Simplify the Syndic configuration testing.
...
* Inherit the master configuration file on the syndic one.
* Recreate the Syndic on the test. Don't pass it as a module global.
2013-07-17 16:22:18 +01:00
Mathieu Le Marec - Pasquet
cff1fa6f53
fix/feat: let the syndic be way more configurable
...
- Fix micmac between configs
- Add options to configure pidfile, logfile, masterofmaster port
This fixes #6024 .
2013-07-15 20:30:26 +00:00
Pedro Algarvio
5c3a406e17
Let us not use a deprecated option ourselves unless for testing the deprecation.
2013-07-13 19:55:50 +01:00
Pedro Algarvio
a886eaa03d
Add a state integration test case for #5940 .
2013-07-05 23:00:14 +01:00
Thomas S Hatch
ec2ab4d5d3
Fix up tests for decorators
2013-06-20 11:21:56 -06:00
Thomas S Hatch
17f292a21a
Add ignores for loaded depends modules
...
@jacksont, just fyi, we check the loaded modules for docstrings
2013-06-18 16:38:42 -06:00
Thomas Jackson
3016999c04
Adding "Depends" decorator to salt.utils
...
The Depends decorator allows you to optionally remove functions if sepecific globals/modules don't exist. This is particuarly helpful in larger scale deployments where some functions of the module work everywhere, but others require (for example) a service to be installed. This way you can avoid having to try/except all over the module to only load certain functions etc.
2013-06-14 15:17:06 -07:00
Thomas S Hatch
dad4b18c93
Add overstate to check parse failures in requisites
2013-06-10 23:00:22 -06:00
Thomas S Hatch
815cb47a36
Add sls that will fail to parse
2013-06-10 23:00:02 -06:00
Thomas S Hatch
e228768961
Add overstate to test requisites
2013-06-10 18:42:54 -06:00
Thomas S Hatch
1bcca1aae3
Add a generic failing sls for tests
2013-06-10 18:42:54 -06:00
Ollie Walsh
1eca34f8e6
Give supervisor a little time to startup during tests
2013-05-29 11:39:09 +01:00
Ollie Walsh
4948914766
Add missing test file
2013-05-29 00:47:25 +01:00
Thomas S Hatch
2b917aef23
Add loop_interval to minion config for tests
2013-05-28 14:27:01 -06:00
Thomas S Hatch
d48702aaa5
Add mine_functions to grains
2013-05-26 06:59:13 -06:00
Thomas S Hatch
f71a4ee2c8
Add more checks to config
2013-05-26 03:42:41 -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
6b01c8380d
Add pydsl runtime test per #5055
2013-05-18 22:51:53 +00: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
Thomas S Hatch
cebdf76f2e
Fix publish tests
2013-04-27 12:59:34 -06:00
Jeroen Dekkers
b40242e409
Make ssh key regular expression more strict
2013-03-08 15:01:58 +01:00
Thomas S Hatch
47e08fc4fa
Remove failing test, I am not sure how it ever passed...
2013-02-06 12:48:33 -07:00
Erik Johnson
77eeb47bea
Add tests for nested grain/pillar matching
...
Also added tests for traditional grain matching when target grain is a
list.
2013-01-26 00:13:51 -06:00
Thomas S Hatch
f94637b4b4
Add a pilla rlist to test advanced pillar matching
2012-12-12 16:30:17 -07:00
Pedro Algarvio
7c5a5d0bd3
Header updates. More copyright to the SaltSatck team. Code author to me(where applicable).
2012-12-11 10:23:37 +00:00
Henrik Holmboe
acc49904cd
Remove references to pub_refresh.
...
The configuration option was removed in 0.10.5.
2012-11-29 16:44:49 +01:00
Ryan Schneider
ad1a43012a
Add gzip and template to cp.get_dir, expose make_dirs on cp.get_file
2012-11-14 16:48:26 -08:00
Pedro Algarvio
7c666d21d0
Need at least two worker threads for integration.modules.publish
to pass.
2012-11-13 19:10:17 +00:00
David Boucha
4a2ceb458e
set worker threads to 1 for testing
...
Travis CI is failing on python 2.6
Trying to lower total memory consumption so the tests
will pass
2012-11-12 16:22:05 -07:00
Ryan Schneider
c638617612
Add gzip_compression support to cp.get_file
2012-11-08 16:09:38 -08:00
Thomas S Hatch
ec901ce29c
Merge pull request #2463 from s0undt3ch/issues/2462
...
Fix #2462
2012-11-07 08:12:49 -08:00
Ryan Schneider
721bce0a11
Fixed integration test
2012-11-06 19:36:51 -08:00
Pedro Algarvio
e04c872c66
Convert the remaining tests hard-coding temporary paths.
2012-11-06 12:44:53 +00:00
Pedro Algarvio
e2168602fb
Allow passing multiple path elements to construct a path.
2012-11-06 12:15:24 +00:00
Pedro Algarvio
bb6cb62901
Switched runtests_helpers.get_temp_dir_for_path
to runtests_helpers.get_salt_temp_dir_for_path
.
2012-11-06 11:32:48 +00:00
Pedro Algarvio
75644992e2
Don't hard-code temporary paths on tests. Refs #2462 .
2012-11-06 11:20:06 +00:00
Pedro Algarvio
33fa855bc4
We're apparently unable to have an empty last line in yaml literal strings.
2012-11-04 11:46:00 +00:00
Pedro Algarvio
5af62d01ac
Fix integration.modules.state.StateModuleTest.test_issue_1896_file_append_source
and still maintaining an empty line check.
2012-11-04 11:35:23 +00:00
Thomas S Hatch
9f05f53fd7
Fix tests from failing if token present for the user
2012-10-22 14:43:47 -06:00
Daniel Miller
1957700161
Add "file.patch" state function
2012-10-18 12:23:47 -04:00
Daniel Miller
3a68a85a9b
Add "file.patch" module function
2012-10-18 12:20:39 -04:00
Pedro Algarvio
6533c48014
Just some renames. Refs #2227 .
2012-10-12 11:53:40 +01:00
Pedro Algarvio
ae7e476bfc
Handle some quoting issues while building the whitespace regex for file.append
. Fixes #2227 .
2012-10-12 11:45:27 +01:00
Thomas S Hatch
3d9375038c
Merge pull request #2183 from s0undt3ch/issues/2167
...
Fix #2167 . Testcases included.
2012-10-05 17:21:24 -07:00
Pedro Algarvio
174ee8aab8
Fix #2167 . Testcases included.
2012-10-06 01:05:04 +01:00
Pedro Algarvio
ac1fe9810a
Point hosts.file
and aliases.file
to the new tests temporary dir.
2012-10-05 07:10:53 +01:00
Pedro Algarvio
624fb03d9c
Smaller requirements.txt also works for testing.
2012-10-01 10:21:40 +01:00
Pedro Algarvio
064b3a60c2
Add test case for #1959 .
2012-09-30 12:20:38 +01:00
Pedro Algarvio
b28a80fab0
Minor whitespace formatting 'prettyfication'.
2012-09-28 17:44:35 +01:00
Pedro Algarvio
677a08fe7d
Update the test cases which better expose #2068 .
2012-09-28 16:04:38 +01:00
Pedro Algarvio
cc10ed1906
Add include and exclude test cases. Refs #2068 .
2012-09-28 01:17:37 +01:00
Pedro Algarvio
33aa55f905
Use a PyPI mirror for installing packages. Fixes #2098 .
...
For now we're using `http://testpypi.python.org/pypi ` as the mirror.
2012-09-27 11:55:00 +01:00
Pedro Algarvio
41f0f4449e
Address pip.installed
regarding weird packages setup. Fixes #2028 .
...
Some packages, carbon and graphite-web for example, install their packages to a specific root, using a `virtualenv` or not. `pip freeze` won't show those packages as installed.
2012-09-25 12:24:54 +01:00
Pedro Algarvio
5b9c6f92ce
Issue #2028 fixes and improvements.
...
* `salt.states.pip.installed()` now keeps a reference to the output of the `__salt__['pip.install']()` call. The reason for this is that we need to know and pass along any information about an eventual error when running that call. This is now done in addition to the old behaviour.
* Add some tests which triggered the issue.
2012-09-23 17:25:21 +01:00
Pedro Algarvio
8ab5e6e9c2
Include some test cases to expose saltstack/salt#2028
2012-09-18 01:53:05 +01:00
Pedro Algarvio
5ec829a46e
Fix state tests.
2012-09-03 16:40:52 +01:00
Pedro Algarvio
a45c0bdce8
Fix saltstack/salt#1896
...
* Added `source` support to `salt.states.file.append()`
* Added tests for the above.
2012-09-01 07:49:34 +01:00
Pedro Algarvio
accb15d6ee
Add tests for saltstack/salt#1900
...
* Test both master and minion events firing
* Allow targeting the minions in `tests.integration.ModuleCase.run_function()`
* The above item allows to also test events firing using `tcp` as `ipc_mode` which is being used by the tests `sub_minion`
2012-09-01 07:29:06 +01:00
Pedro Algarvio
8b645b339b
Fix #1879 . Searching/matching is now done on multiple lines.
...
* `salt.modules.file.contains()`, `salt.modules.file.contains_regex()`, `salt.modules.file.contains_glob()` and `salt.utils.find` now do the searching/matching against chunks of data; using defaults, 32KB chunks of data in files; instead of searching/matching line by line.
* Based on the above changes `salt.states.file.append()`, when checking if the text to append is already present, now uses `salt.modules.file.contains_regex()` in order to match spanning multiple lines ignoring the addition/deletion of white-space or new lines, except inside commas.
* The regex used on the above item is built at runtime using `salt.utils.build_whitepace_splited_regex()`, just feed the text to it and you'll get back the proper regex to the matching/searching on, for example `salt.modules.file.contains_regex()`.
* Added tests for all this code.
2012-08-28 10:03:11 +01:00
Pedro Algarvio
797defc320
Add the failing test for saltstack/salt#1879
2012-08-26 00:38:39 +01:00
Pedro Algarvio
22d69e43c7
Properly catch some more state SLS syntax errors.
...
Sort keys before checking for same key in rule. Fixes #1876 .
2012-08-25 14:44:07 +01:00
Pedro Algarvio
5da4fcb109
Fix integration.runners.manage
tests.
...
These tests started to fail after 54cf9ca
and specially 5626332
.
2012-08-25 14:21:08 +01:00
Pedro Algarvio
759d67ffc0
Reverted back the --key-logfile
deprecation.
...
On the parsers cleanup branch, I though about making the available options as equal as possible. Since the log_file setting for the master and the minion could be separately set, I made the logfile option for the key also log_file. Yet, since there's no key specific config file, it shares master, one could only specify the log_file settings from the cli, it could not be hardcoded on the config file, unless, we made a separate config file just for key.
So, in order to reduce required changes, and keep it all as backwards compatible as possible, the key log file options is now, once again, `--key-logfile` which will allow us to hardcode it in the masters config file as `key_logfile`.
This will also, hopefully make travis behave better too.
2012-08-08 01:08:38 +01:00
Pedro Algarvio
2a7e9500d7
Set the master's logfile to avoid travis failing.
2012-08-06 17:58:30 +01:00
Thomas S Hatch
e446a306c7
Add sock_dir verification to tests
2012-07-07 22:11:36 -06:00
Thomas S Hatch
7477583c97
Add test for recuse error
2012-06-19 10:29:14 -06:00
Thomas S Hatch
baa9cf88eb
Add sls for non recurse test
2012-06-15 22:41:59 -06:00
Thomas S Hatch
5b05d77405
Add sock_dir setting for the integration test syndic
2012-06-05 17:51:52 -06:00