Commit Graph

4474 Commits

Author SHA1 Message Date
Mike Place
6a11ead5b4 Merge pull request #22453 from jacksontj/transport
Abstracted Transport
2015-04-13 09:38:52 -06:00
Colton Myers
5b6d410119 Fix calltest 2015-04-11 15:59:06 -04:00
Colton Myers
99744b9568 Fix lint 2015-04-11 15:56:09 -04:00
Colton Myers
cc8785e980 Fix the test.fib tests 2015-04-11 14:48:59 -04:00
Thomas S Hatch
02d6c52bf3 Merge pull request #22508 from semarj/add-disable-webhook-auth
allow disabling auth on webhook endpoint in rest_tornado
2015-04-10 14:26:09 -06:00
Joshua Semar
46a25b5c58 missed switch to build_tornado 2015-04-10 16:40:42 +00:00
Thomas Jackson
66016ed132 pylint 2015-04-10 09:40:26 -07:00
Thomas Jackson
8ff37b34b8 Check for FDs attached to the IOLoops after test runs 2015-04-10 09:40:26 -07:00
Joshua Semar
d9ed9f1e5b fix linting errors 2015-04-10 16:35:07 +00:00
Thomas S Hatch
71e14cb4d8 Merge pull request #22469 from mgwilliams/boto_utils
boto utils module
2015-04-10 09:14:20 -06:00
Joshua Semar
c56845e904 include mod_opts on tornado application, refactor get_app 2015-04-10 15:06:30 +00:00
Pedro Algarvio
0651c06ec0 Fix import 2015-04-10 00:04:17 +01:00
Matthew Williams
4976f863f9 utils.boto unit test -- use utf-8 encoding 2015-04-08 19:39:55 +00:00
Pedro Algarvio
35b3cdcc82 Get the first iteration the right way
Fixes `TypeError: 'dictionary-valueiterator' object has no attribute '__getitem__'`
2015-04-08 19:43:55 +01:00
Thomas Jackson
ce850a3e33 pylint cleanup 2015-04-08 08:20:17 -07:00
Thomas Jackson
f07840fb12 pylint cleanup 2015-04-08 08:20:03 -07:00
Thomas Jackson
6a34d1dd3f Remove AES key initing-- since we are mocking out _send_pub 2015-04-08 08:19:03 -07:00
Matthew Williams
d642b5bc89 utils.boto: fix missing import and add regression test 2015-04-08 15:12:15 +00:00
Thomas Jackson
10ec3343ae pylint cleanup 2015-04-08 08:10:52 -07:00
Thomas Jackson
2683843bdf pylint cleanup 2015-04-08 08:04:45 -07:00
Thomas Jackson
cc06dd620d Pylint 2015-04-08 08:04:02 -07:00
Matthew Williams
28f3e5d0ad utils.boto: add get_exception 2015-04-08 14:46:28 +00:00
Thomas Jackson
348118ff6d Mock/stub out _send_pub in ClearFuncs
Before we were attempting to serialize a MagicMock object
2015-04-07 21:36:13 -07:00
Thomas Jackson
bf97e8c16f Make sure to close server processes after each test.
Waiting for the destructor doesn't necessarily work, since its not gauranteed to run immediately.
2015-04-07 21:25:53 -07:00
Thomas Jackson
f5e2650227 Add basic tests for asyncEventpublisher 2015-04-07 21:01:43 -07:00
Thomas Jackson
cb02d0e021 Remove "close()" api-- just use a destructor 2015-04-07 21:01:43 -07:00
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
Matthew Williams
e22292220a tests for utils.boto 2015-04-08 03:59:51 +00: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