Pedro Algarvio
b0d9cf18c2
Added support for __main__
execution and formatting fixes.
2013-06-28 00:12:57 +01:00
Pedro Algarvio
663f54ef9f
Update copyright years of changed files. Added __main__
execution to tests/integration/states/pip.py
.
2013-06-28 00:12:57 +01:00
Pedro Algarvio
0a9f157262
Update sys.path
before import salt. This way salt does not need to be installed.
2013-06-28 00:12:57 +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
be54a503d9
Adapted code fix sys.path
in case called from __main__
. Adapted to salt-testing.
2013-06-28 00:12:56 +01:00
Pedro Algarvio
860f74847e
Remove the now unnecessary saltunittest
. Moved remaining functionality to integration
.
2013-06-28 00:12:56 +01:00
Pedro Algarvio
d4fd1baa2f
Adapted the tests suite to work with salt-testing
2013-06-28 00:12:56 +01:00
Pedro Algarvio
576a5a4b78
Some more sysmod
testing improvements.
2013-06-27 23:15:36 +01:00
Pedro Algarvio
276858d619
Improve sys.list_functions
tests.
2013-06-27 23:00:55 +01:00
Thomas S Hatch
3e3cb44acf
Merge pull request #5651 from s0undt3ch/issues/5639-hosts
...
Single entry per line in the hosts file. Fixes #5639
2013-06-20 11:08:36 -07:00
Pedro Algarvio
4040d83d79
Single entry per line in the hosts file. Fixes #5639
2013-06-20 18:29:21 +01:00
Thomas S Hatch
e2d7f21034
@jacksont, please take a look at these, they are failing sometimes
2013-06-20 11:22:59 -06:00
Thomas S Hatch
ec2ab4d5d3
Fix up tests for decorators
2013-06-20 11:21:56 -06:00
Thomas S Hatch
3e7be2bfb4
Add os import to grains tests
2013-06-19 22:45:26 -06:00
Thomas S Hatch
e037283488
Ignore the grains setval test in travis because travis can't keep up
2013-06-19 22:28:53 -06:00
Thomas S Hatch
e30ce41d7a
we are far enough removed to not need to test version deps here
2013-06-19 12:43:27 -06:00
Thomas S Hatch
86afd5356c
disable faulty djangomod test
2013-06-19 00:35:08 -06:00
Thomas S Hatch
e59a646afa
Need to find a way to only bump this up on travis....
2013-06-19 00:32:08 -06:00
Thomas S Hatch
982df86d6b
disable svn tests
...
These tests are causing problems since the svn repos are not always
returning the same data
2013-06-19 00:24:16 -06:00
Thomas S Hatch
862112c5a6
Fix error created by yaml changes
2013-06-18 23:51:44 -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 S Hatch
e0c10755b9
Some cleaning of quotes and prints
2013-06-18 16:11:36 -06:00
Filip Noetzel
f40c2c5204
Fix django tests
2013-06-17 15:49:15 +02: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
36bf8122e9
Merge branch 'timeout-for-run-command' of git://github.com/hulu/salt into hulu-timeout-for-run-command
...
Conflicts:
salt/states/cmd.py
2013-06-11 16:30:41 -06:00
Andrew Noyes
c6fd91a8a8
Add timeout to salt.state.cmd.* functions
...
Add ability to specify timeouts for arbitrary commands.
If timeout is reached, subprocess is sent sigterm, and later sigkill
if it still exists. Issue #5322
2013-06-11 11:41:42 -07:00
Thomas S Hatch
6ae08e504f
Merge pull request #5479 from cfra/directory-clean
...
Improve file.directory for clean=True
2013-06-11 09:46:06 -07:00
Thomas S Hatch
2218dd95a5
Add parse req failure state
2013-06-10 23:00:48 -06: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
9752b21343
Add tests for overstate requisites
2013-06-10 18:42:54 -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
Christian Franke
e46276db16
Improve file.directory for clean=True
...
Handle exclude_pat when running with test=True and add
some tests to verify correct behavior.
2013-06-11 02:28:51 +02:00
Tris Forster
714acc50d3
Add success flag to LocalClient.get_full_return()
2013-06-06 10:09:15 +10:00
Chris Rebert
31e5c275c5
rm unnecessary parens around 'del'; it's not a function
2013-06-03 11:53:04 -07:00
Thomas S Hatch
324f048ae5
Raise sleep here because travis is SLOW
2013-05-31 02:00:56 +00:00
Thomas S Hatch
753355c501
Add tests to check cross minion validity in the mine
...
Tests for #5281
2013-05-29 21:26:55 +00:00
Ollie Walsh
32b80759d7
Reuse virtualenv for all supervisor tests
2013-05-29 12:54:57 +01:00
Ollie Walsh
59dbcc4375
Merge branch 'develop' into supervisor-fixes
2013-05-29 12:37:13 +01:00
Ollie Walsh
1eca34f8e6
Give supervisor a little time to startup during tests
2013-05-29 11:39:09 +01:00
Thomas S Hatch
82dde7d7e7
Add a sleep to give the minion a chance to catch grain refresh in test
2013-05-29 00:12:30 -06:00
Ollie Walsh
4948914766
Add missing test file
2013-05-29 00:47:25 +01:00
Ollie Walsh
57cba99b06
Supervisor module:
...
Support running supervisor from a virtualenv/custom path.
Support custom supervisor config file.
Create real tests using a virtual environment.
Supervisor state:
Fix restart when process is already running.
Support restart on watch.
Create real tests using a virtual environment.
2013-05-29 00:18:12 +01:00
Thomas S Hatch
ab9fbc94e7
Single quotes
2013-05-28 15:09:40 -06:00
Thomas S Hatch
2b917aef23
Add loop_interval to minion config for tests
2013-05-28 14:27:01 -06:00
Thomas S Hatch
c4c2b7936a
Add tests for mine.send
2013-05-26 08:55:18 -06:00
Thomas S Hatch
49db655fd5
Add master side capability to make mine accept single funcs
2013-05-26 07:18:12 -06:00
Thomas S Hatch
d48702aaa5
Add mine_functions to grains
2013-05-26 06:59:13 -06:00
Thomas S Hatch
562fbdaed2
Add grains.get test
2013-05-26 06:11:59 -06:00