Commit Graph

1877 Commits

Author SHA1 Message Date
Pedro Algarvio
68f26f1176 Don't expect salt to be installed to run the tests.
Use the testing configuration files.
2014-01-03 01:04:43 +00:00
Pedro Algarvio
e55fa8e82f Merge pull request #9542 from cachedout/unit-tests
Unit tests
2014-01-02 16:43:53 -08:00
Pedro Algarvio
baa3a4b8cf Remove hardcoded version, we're regex matching. 2014-01-03 00:40:45 +00:00
Mike Place
cb2abcb796 Pylint fixes. 2014-01-02 16:28:19 -07:00
Mike Place
2e20bf99a3 Client testing
* Minor spelling and doc fixes to client module
 * Unit testing client module.
2014-01-02 16:23:16 -07:00
Mathieu Le Marec - Pasquet
0e430e531d configurable salt git url for jenkins 2014-01-02 22:46:12 +01:00
Pedro Algarvio
2cab3227fd The virtualenv binary can have multiple CLI names. 2014-01-02 20:27:18 +00:00
Thomas S Hatch
f31d6eb6ad Merge pull request #9513 from s0undt3ch/hotfix/missing-timelib-tests
Fix unit tests skipping mostly
2013-12-31 12:54:22 -08:00
Thomas S Hatch
30c49e32c7 Revert "Better trace for nested jinja errors"
This reverts commit 78899493bb.
2013-12-31 12:22:24 -07:00
Thomas S Hatch
697bffcf1d Revert "division test fix"
This reverts commit 56bcfbb03c.
2013-12-31 12:22:13 -07:00
Thomas S Hatch
ffd5aee1fb Merge pull request #9509 from makinacorpus/bettertrace2
Better trace for nested jinja errors v2
2013-12-31 08:54:24 -08:00
Pedro Algarvio
e8de5e7077 Don't hardcode the virtualenv binary name 2013-12-31 14:49:22 +00:00
Mathieu Le Marec - Pasquet
56bcfbb03c division test fix 2013-12-31 14:34:29 +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
Pedro Algarvio
b03c779718 Don't assume mock and timelib are instaled. 2013-12-31 13:53:37 +00:00
Mathieu Le Marec - Pasquet
78899493bb Better trace for nested jinja errors 2013-12-31 13:25:57 +00:00
Pedro Algarvio
7e62178d5a Add test case to conform parser errors on wrong arguments 2013-12-31 09:32:04 +00:00
Thomas S Hatch
6961cd8909 Merge pull request #9501 from cachedout/unit-tests
Fix psutil on Arch.
2013-12-30 21:01:29 -08:00
Mike Place
b6aa95d2ab Fix psutil on Arch. 2013-12-30 16:41:45 -07:00
Thomas S Hatch
052ac0497d Merge pull request #9498 from cachedout/unit-tests
Fix RHEL5 zmq unit tests
2013-12-30 13:39:02 -08:00
Mike Place
17dea90f63 Fix RHEL5 zmq unit tests
* Import zmq, check its attr and skip test if necessary.
2013-12-30 14:37:17 -07:00
Thomas S Hatch
2d91584ee8 Merge pull request #9496 from cachedout/unit-tests
Another swing at fixing Postgres tests.
2013-12-30 13:03:07 -08:00
Mike Place
b8e1ddf4bf Another swing at fixing Postgres tests. 2013-12-30 13:28:51 -07:00
Thomas S Hatch
5eaca79810 Revert "Better trace for nested jinja errors"
This reverts commit 99a2791917.
2013-12-30 11:32:53 -07:00
Thomas S Hatch
1de92c473e Merge pull request #9492 from cachedout/unit-tests
Increase timeout for pkg tests.
2013-12-30 10:11:44 -08:00
Mike Place
ca57a864b8 Increase timeout for pkg tests.
* Since we started running a refresh_db in pkgrepo (7c3d0cc80d), we may be checking an exit code prematurely. This increases the timeouts to 120 seconds to see if Jenkins will calm itself.
2013-12-30 11:08:32 -07:00
Thomas S Hatch
1b562cb785 Merge pull request #9409 from makinacorpus/test-trace
Better trace for nested jinja errors
2013-12-30 09:57:50 -08:00
Thomas S Hatch
4326a14322 Merge pull request #9480 from cachedout/unit-tests
Unit tests
2013-12-28 21:11:02 -08:00
Mike Place
94591d7e2d Fix unit tests for Postgres on some platforms
* Fix for inconsistent behavior wherein systems will use varying escaping behavior for quotes and double-quotes. (Most notably, Ubuntu 10 for some oddball reason.

  * Reformatting.
2013-12-28 17:16:54 -07:00
Pedro Algarvio
cc9310b1f0 Merge pull request #9465 from cachedout/unit-tests
Integration test fix
2013-12-27 12:31:56 -08:00
Mike Place
4b7148a0f5 Don't test deprecated function.
* utils.memoize has been moved to salt.utils.decorators. Don't test it here.
2013-12-27 13:28:42 -07:00
Mike Place
444cae7236 Integration test fix
* oscodename should not have been removed.
2013-12-27 13:25:05 -07:00
Pedro Algarvio
4607d38cd4 We're mock'ing, it's ok to ignore the PyLint warning. 2013-12-27 17:56:31 +00:00
Thomas S Hatch
8e3e4ae744 Merge pull request #9457 from cachedout/unit-tests
Test framework updates
2013-12-27 09:01:30 -08:00
Mike Place
3510f85c2e Merge branch 'unit-tests' of https://github.com/cachedout/salt into unit-tests
* 'unit-tests' of https://github.com/cachedout/salt:
  Auth system unit testing framework.
  Optimize imports.
  Minor spelling change.
2013-12-27 09:41:52 -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
Pedro Algarvio
0fb5be304c Add required ending new-line 2013-12-26 18:51:30 +00:00
Mike Place
f2f7e9f537 Handle invalid master address in minion config
Gracefully exit the minion while informing the user of the cause of the error if the IP address of the master is malformed such that it can not even be dealt with by Python's socket module.

Unit testing for the above condition.

Closes #9440.

Remove suprious debugging statement.

Remove more spurious debugging.
2013-12-26 09:48:01 -07:00
Mathieu Le Marec - Pasquet
99a2791917 Better trace for nested jinja errors 2013-12-25 18:00:15 +00:00
Mike Place
e4caf0a470 Auth system unit testing framework.
* Setup testing classes and imports
* Test load_name()
2013-12-23 22:13:02 -07:00
Mike Place
72b565af2c Optimize imports. 2013-12-23 20:55:43 -07:00
Mike Place
f8b772f970 More aggressive IPC fix. 2013-12-23 19:36:57 -07:00
Mike Place
8efa385291 More unit tests. Many, many more. 2013-12-23 17:16:05 -07:00
Mike Place
ae4fdc1066 Raise IPC check even higher to resolve failing tests in Jenkins. 2013-12-23 17:11:24 -07:00
Mike Place
d15bd31b9c Unit testing and utils refinements
* More unit tests against utils module
* Minor modifications to utils module for formatting.
* Remove case which could not be reached inside utils module.
2013-12-23 17:10:29 -07:00
Mike Place
83b08df07d Clarify len of line. 2013-12-23 17:06:22 -07:00
Thomas S Hatch
fb0ca047d1 Fix lint errors in tests 2013-12-23 09:25:16 -07:00
Mike Place
fab5535240 test is_true 2013-12-22 19:23:45 -07:00
Mike Place
647f954c7c More detailed testing against the state verifier utility. 2013-12-22 19:15:59 -07:00
Mike Place
451cd8d7ea Default var and typo. 2013-12-22 16:40:09 -07:00
Mike Place
0ef7c56e11 Doh. Typo. 2013-12-22 16:37:07 -07:00
Mike Place
dc5874fb1c Don't run event tests on systems that can't support them. 2013-12-22 16:33:07 -07:00
Mathieu Le Marec - Pasquet
1365688bf7 Again, more robustness for zcbuildout tests 2013-12-22 18:52:54 +00:00
Thomas S Hatch
11ee832086 Line fixes 2013-12-20 17:23:35 -07:00
Mike Place
06810a1597 Update unit test to match PG fix. 2013-12-20 17:24:56 -07:00
Thomas S Hatch
706665ff0d Merge pull request #9382 from cachedout/docker-unit-tests
Unit testing
2013-12-20 16:17:58 -08:00
Mike Place
b77fce5816 Many more unit tests for salt.utils
Small doc change.
2013-12-20 17:12:49 -07:00
Thomas S Hatch
99cc12ddc5 This test is passing in standalone environments but not in Jenkins
I am stubbing it out and we will need to come back to it
2013-12-20 13:56:26 -07:00
Thomas S Hatch
b63c0449ac Stub out bad test 2013-12-20 13:55:37 -07:00
Thomas S Hatch
d713cb919c Fix missed import 2013-12-20 13:52:45 -07:00
Mike Place
05b78e30bc More utils testing. 2013-12-20 13:47:01 -07:00
Pedro Algarvio
edcf47ccc2 White-space related lint fixes. 2013-12-20 20:02:05 +00:00
Thomas S Hatch
b3ddce56dc Merge pull request #9365 from whiteinge/test-eauth-token
Add integrations tests for master_call eauth & token for RunnerClient and WheelClient
2013-12-20 08:46:29 -08:00
Mike Place
4176354820 Pylint fixes for regex errors. 2013-12-20 09:42:15 -07:00
Mike Place
40ecf088f2 Work on salt.utils unit testing. 2013-12-20 08:34:33 -07:00
Seth House
d6c4584bf2 Added integration tests for RunnerClient's master_call 2013-12-19 21:07:46 -07:00
Seth House
6f4cabf99c Added wheel test for testing token authentication 2013-12-19 21:07:46 -07:00
Seth House
78f4d77681 Added helper function to easily create directories 2013-12-19 21:07:46 -07:00
Thomas S Hatch
26a3eb1ec8 remove test for not yet covered case 2013-12-19 14:27:40 -07:00
Thomas S Hatch
a5f7360d22 Merge pull request #9307 from olliewalsh/client_timeouts
Fix client timeout issues
2013-12-19 09:23:54 -08:00
Thomas S Hatch
7fbe83a8bb Merge pull request #9305 from s0undt3ch/hotfix/missing-exsel-keyerror-2
`exsel` matching is no longer supported
2013-12-19 08:51:48 -08:00
Mike Place
3bb714282e Starting on unit tests for docker and salt.utils. 2013-12-19 09:14:59 -07:00
Pedro Algarvio
8034d126e2 Merge pull request #9335 from cachedout/ps-unit-tests
Correct failure when psutil is not installed. Also some minor reformatting.
2013-12-18 08:36:38 -08:00
Mike Place
bd2ec30682 Correct failure when psutil is not installed.
Reformatting.
2013-12-18 09:25:04 -07:00
Pedro Algarvio
c1107f22fe Merge pull request #9330 from cachedout/ps-unit-tests
Unit testing cron exec module.
2013-12-17 16:25:51 -08:00
Mike Place
d8facc96a4 Unit testing cron exec module. 2013-12-17 15:59:57 -07:00
Colton Myers
5b4d47fb10 Merge pull request #9320 from cachedout/ps-unit-tests
More ps exec module unit tests.
2013-12-17 14:11:29 -08:00
Mike Place
d7b7ad3b9f More ps exec module unit tests. 2013-12-17 11:23:49 -07:00
Mathieu Le Marec - Pasquet
bb7f5247d3 according buildout tests 2013-12-17 04:36:36 +01:00
Ollie Walsh
14da357576 Increase master timeout during tests now that it is not incorrectly incrementing 2013-12-17 01:49:08 +00:00
Pedro Algarvio
68d7cc074b exsel matching is no longer supported. 2013-12-17 01:01:49 +00:00
Mike Place
20ab5b2d23 Lint. 2013-12-16 17:09:49 -07:00
Mike Place
26aa30393e Unit testing of ps exec module.
Seemed like this would be sort of mundane but there are actually a few dragons here.
Unit testing turned up the fact that we make use of methods in psutil that are deprecated!
2013-12-16 17:05:53 -07:00
Pedro Algarvio
0d81bb6416 The SaltTesting parser no longer supports HTML reports. 2013-12-16 00:14:58 +00:00
Pedro Algarvio
fe7ab946d5 Make it run --docked. 2013-12-14 19:00:01 +00:00
Pedro Algarvio
c65d6ea523 Use salt.utils.fopen 2013-12-14 18:35:13 +00:00
Pedro Algarvio
8f8f8bfc4a Formatting and requirements fixes. 2013-12-14 18:31:40 +00:00
Pedro Algarvio
4bbd0c512d Too much white-space added. 2013-12-14 17:42:51 +00:00
Pedro Algarvio
82973662e9 Disable the VT test, the code ain't mature enough. 2013-12-14 17:37:06 +00:00
Pedro Algarvio
3f5b5cac4f The overstate tests should now pass. 2013-12-14 17:26:38 +00:00
Pedro Algarvio
1ce8d1f273 Overstate unit tests now use a valid testing configuration
The overstate unit tests relied on some know directories created which exist when salt is installed in the current system using the regular paths.
2013-12-14 17:16:08 +00:00
Pedro Algarvio
f29eaab3a0 Even more set's! 2013-12-14 00:52:39 +00:00
Pedro Algarvio
54c2a4e6c5 Missed some more set occurrences. 2013-12-14 00:46:51 +00:00
Pedro Algarvio
b7b99a3a06 Let's see if PyLint stops complaining. 2013-12-14 00:40:34 +00:00
Pedro Algarvio
7c2e24e8bb Make it a dictionary, not a set()(py >= 2.7). 2013-12-14 00:35:07 +00:00
Thomas S Hatch
1216169d00 pylint 2013-12-13 16:32:08 -07:00
Thomas S Hatch
0569fd06de pytlint 2013-12-13 16:30:47 -07:00
Seth House
7cfaca6ddb Add basic lowdata test for master_call 2013-12-13 16:00:34 -07:00
Seth House
f4ea6c2026 Added integration tests for two functions in the key wheel module 2013-12-13 16:00:19 -07:00
Seth House
932cd9708a Added new TestCase for testing the *Client interfaces 2013-12-13 16:00:19 -07:00
Thomas S Hatch
49f4ae324f Changed underlying error message to be more concise 2013-12-13 15:27:44 -07:00
Thomas S Hatch
f8de5141ae fix syntax error 2013-12-13 15:25:35 -07:00
Thomas S Hatch
476f0b8a25 Apply yaml_utf8 to test config 2013-12-13 15:20:50 -07:00
Thomas S Hatch
26ec36144d Add support for testign against python 2.6 2013-12-13 15:09:52 -07:00
Thomas S Hatch
c035100a6c Merge pull request #9223 from kaithar/feature/expose-global-highstate
Expose global highstate for the benefit of pydsl
2013-12-13 13:09:21 -08:00
Thomas S Hatch
ecca2659ba Merge pull request #9222 from cachedout/overstate_test
Overstate test
2013-12-13 13:03:53 -08:00
Mike Place
7e2c897a36 Check successful prereq 2013-12-13 11:59:37 -07:00
Mike Place
82e0e2efe0 Check failed prereqs. 2013-12-13 11:50:51 -07:00
Mike Place
827514098f More tests. 2013-12-13 09:45:05 -07:00
Pedro Algarvio
27a32c5849 Catch the proper exception. White-space fixes. 2013-12-13 08:12:00 +00:00
Kaithar
b1ac292873 Made state_highstate more useful. 2013-12-13 05:47:25 +00:00
Kaithar
5836b1b040 Missing newline 2013-12-13 04:53:47 +00:00
Kaithar
866bc66bac Unit test for including a state multiple times using pydsl. 2013-12-13 05:41:38 +00:00
Thomas S Hatch
444b203072 Pass the psudo funcs into the renderer 2013-12-12 21:47:42 -07:00
Thomas S Hatch
39e849c314 pylint fixes 2013-12-12 20:51:28 -07:00
Mike Place
f42a956f42 Pylint 2013-12-12 17:06:12 -07:00
Mike Place
93129d8758 Laying the groundwork for overstate unit testing. 2013-12-12 17:04:40 -07:00
Thomas S Hatch
781bfe2455 remove reduntant faulty test 2013-12-12 15:18:36 -07:00
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
Thomas S Hatch
0f2a7974ae Fix syntax issue in stateconf test 2013-12-12 14:52:14 -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
Thomas S Hatch
0880c73c43 load in a fake config.get function to fix tests
Mocking may be a better way of doing this, but since these are
generated at the top of the test I felt that this solution was also viable
2013-12-12 11:50:53 -07: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
Pedro Algarvio
d8453a4b91 Make sure we can actually get the size of the terminal before trying. 2013-12-12 09:53:36 +00:00
Seth House
c2b563a56f Switched back the order of the she-bang and the Python coding decl.
This script (in its current form) is intended to be invoked as a shell
script so the she-bang must come first.
2013-12-11 16:04:09 -07:00
Thomas S Hatch
7ee36fce89 pylint fixes 2013-12-11 13:07:36 -07:00
Thomas S Hatch
64eb294c6e Fix some strange lint errors, @whitinge you may need to look here 2013-12-11 11:16:37 -07:00
Pedro Algarvio
de742df8f7 Minor cosmetic printing changes 2013-12-11 14:23:11 +00:00
Pedro Algarvio
b15b3237e9 Update self.args even if shell is not True 2013-12-11 14:23:11 +00:00
regilero
9195f8e5f7 Lint fix 2013-12-11 14:40:42 +01:00
regilero
7ee42dc922 Fix the MySQL user_exists unit test mysterious broken status -- was mocked by other tests 2013-12-11 14:19:29 +01:00
regilero
0d797ced4f Fix MySQL module broken unit tests 2013-12-11 14:18:33 +01:00
Pedro Algarvio
2b6ae8428b Make PyLint even happier. 2013-12-11 10:43:51 +00:00
Pedro Algarvio
ca41ce936c Fix white-space related lint issues. 2013-12-11 09:05:36 +00: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
Seth House
69bac1d116 Initial stab at a development salt shell
There is quite a bit of additional work that could be done here but this
gets things rolling at least.

Refs #3814
2013-12-10 11:09:50 -07:00
Pedro Algarvio
1341573532 Fix the SSH password regular expression. 2013-12-10 11:08:52 +00:00
Pedro Algarvio
e45cbf1dca Add unit test for the ssh password regex matching 2013-12-10 10:46:25 +00: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