Commit Graph

4447 Commits

Author SHA1 Message Date
Thomas Jackson
d21e180a5a Fix race condition in integration test startup 2015-04-07 21:01:43 -07:00
Thomas Jackson
d87c62b453 Make transport unit tests pull configs from test suite instead of from /etc/salt 2015-04-07 21:01:42 -07:00
Thomas Jackson
e17824a0b1 Change _handle_payload to return a future.
This means we can make more and more of the core async (using coroutines) without having to change the transport modules-- as they all already expect futures.
2015-04-07 21:01:15 -07:00
Thomas Jackson
98842a86da Fix zmq pub channels 2015-04-07 20:53:29 -07:00
Thomas Jackson
e89da4e26b Make AsyncAuth singleton per io_loop
In addition this makes the singleton instance mapping use weakrefs-- so if the io_loop goes away (or we don't reference the object anywhere) we will remove the auth instance. This allows for us to "unload" an auth without having to exit the interpreter or forcibly delete it
2015-04-07 20:53:28 -07:00
Thomas Jackson
c6245c869e Reset asyncauth singleton in tests 2015-04-07 20:53:28 -07:00
Thomas Jackson
30f9d37909 Merge cleanup 2015-04-07 20:53:28 -07:00
Thomas Jackson
98b53bd1d9 Fix mocking, not quite sure how this magic mock works 2015-04-07 20:53:28 -07:00
Thomas Jackson
540710c1c3 Cleanup shutdown of tests 2015-04-07 20:53:27 -07:00
Thomas Jackson
c855770bbd Fix misc tests 2015-04-07 20:53:27 -07:00
Thomas Jackson
b1ca45dcee Refactor pub tests 2015-04-07 20:53:27 -07:00
Thomas Jackson
2ce0582991 Add unregister tests 2015-04-07 20:53:27 -07:00
Thomas Jackson
9ec426bdb2 Add basic Asyncpubchannel tests to zmq 2015-04-07 20:53:27 -07:00
Thomas Jackson
bfeb3bf7f1 Misc cleanup to get the minion to use async sign_in 2015-04-07 20:53:26 -07:00
Thomas Jackson
6ab5da87c4 Cleanup async 2015-04-07 20:53:26 -07:00
Thomas Jackson
de26e7eae2 Handle timeouts in auth/pub connect 2015-04-07 20:53:26 -07:00
Thomas Jackson
8c7ee3109d Begin work on async auth/pub/req channels.
For a while we'll have to maintin sync and async versions. The plan is to replace the sync ones with wraps around the async ones.
2015-04-07 20:53:26 -07:00
Thomas Jackson
1a88eeeed4 Add basic Pub channel tests 2015-04-07 20:53:26 -07:00
Thomas Jackson
d619dfbf96 Add initial req_channel tests 2015-04-07 20:53:26 -07:00
Thomas Jackson
064896d4d9 Update commented out version as well 2015-04-07 20:53:20 -07:00
Thomas Jackson
e376b283ef Refactor the start_daemon function 2015-04-07 20:53:20 -07:00
Thomas Jackson
403c81c2a6 Move daemon init and execution into the same process.
These daemon processes aren't all thread safe, so having the test suite init then fork is disingenuous since that isn't supported anyways.
2015-04-07 20:53:20 -07:00
Justin Findlay
2ef39ed380 add wake-on-lan unit tests 2015-04-07 14:41:28 -06:00
Mike Place
4a57d46004 Merge pull request #22354 from dmyerscough/firewalld-unittest
Unit test for firewalld features #22292
2015-04-06 08:09:52 -06:00
Luca Corti
b9b307f5f2 Fix postgres.db_alter test, add test for owner_recurse=True
The old db_alter test was probably failing anyway. The new test tests
owner_to is called when owner_recurse is set to true.
2015-04-06 00:19:19 +02:00
Damian Myerscough
a42055dabe Remove duplicate test 2015-04-04 22:31:15 -07:00
Damian Myerscough
38ce75300c New features and updated unittests for new features 2015-04-04 16:01:03 -07:00
Damian Myerscough
aefa84ae8e Unittest for firewalld features 22292 2015-04-03 18:49:40 -07:00
Justin Findlay
257a1abc5e decrease specificity in schedule.modify unit test
python-2.6 difflib's diff formatting is slightly different from the
formatting generated by the version of difflib python-2.7, so that
detail of the test has been removed.
2015-04-03 12:14:33 -06:00
Thomas S Hatch
74bc55a5f8 Merge pull request #22326 from rallytime/fix_network_unittest
Patch decorators.which for network_test.test_arp
2015-04-03 09:44:37 -06:00
rallytime
39f3ff526a Patch decorators.which for network_test.test_arp
If salt.utils.which('arp') is None, we shouldn't fail this test.

This fixes the Arch and Fedora test failures on develop
2015-04-03 08:28:10 -06:00
rallytime
9c2ebd193c Python 3 compatibility changes for develop 2015-04-02 14:04:28 -06:00
jfindlay
d9369b1be7 Merge pull request #22262 from basepi/merge-forward-develop
Merge forward from 2015.2 to develop
2015-04-02 08:36:06 -06:00
jfindlay
4ee34f0f62 Merge pull request #22282 from rahulhan/puppet_unit_test
Adding puppet.py unit test cases
2015-04-02 07:55:38 -06:00
Rahul Handay
78667caa68 Adding puppet.py unit test cases 2015-04-02 16:40:39 +05:30
Jayesh Kariya
1a9e6aab75 adding network unit test case. 2015-04-02 12:25:48 +05:30
jfindlay
b34d177a08 Merge pull request #22231 from jayeshka/rh_service_unit_test
adding rh_service unit test
2015-04-02 00:12:52 -06:00
Rahul Handay
f1f2a1ecf7 Adding nfs3.py unit test 2015-04-02 11:02:42 +05:30
Jayesh Kariya
79dafe79a1 changed FLAG to HAS_UPSTART 2015-04-02 10:50:58 +05:30
Colton Myers
5c9697f193 Fix data.cas test (mock dump) 2015-04-01 15:26:05 -06:00
Colton Myers
0b7ac988cc Merge remote-tracking branch 'upstream/2015.2' into merge-forward-develop
Conflicts:
    .pylintrc
    salt/beacons/service.py
    salt/beacons/sh.py
    salt/modules/cassandra_cql.py
    salt/returners/cassandra_cql_return.py
2015-04-01 14:22:33 -06:00
Thomas S Hatch
8ec0c820a6 Merge pull request #22253 from rallytime/merge-22246
Merge #22246 with pylint fix and test cleanup
2015-04-01 13:03:27 -06:00
Matthew Williams
6349352743 boto_vpc_test: fix name->subnet_name 2015-04-01 17:50:51 +00:00
Matthew Williams
89870b9146 fix typo in boto_vpc tests 2015-04-01 16:57:54 +00:00
rallytime
7b859df4d1 Merge #22246 with pylint fix and test cleanup
Refs #22246
2015-04-01 10:29:23 -06:00
Mike Place
8c4d064d9f Merge pull request #22243 from jayeshka/schedule-unit-test
adding schedule unit test
2015-04-01 09:34:13 -06:00
jfindlay
bdd543ab15 Merge pull request #22237 from rahulhan/systemd_unit_test
Adding systemd.py unit tests
2015-04-01 09:17:44 -06:00
Thomas Jackson
d70e094183 Add initial tests for loader's public interfaces
Tests for #22117
2015-04-01 07:55:02 -07:00
Jayesh Kariya
07ee9602f4 resolved error. 2015-04-01 18:58:43 +05:30
Jayesh Kariya
2b6eccb75e adding schedule unit test 2015-04-01 18:11:48 +05:30