Commit Graph

993 Commits

Author SHA1 Message Date
Erik Johnson
7115cd9d39
Don't import text_type directly so it doesn't get added to lazyloader 2018-01-27 14:50:16 -06:00
Bo Maryniuk
fe99de3c0c Replace usage of str() forcing to unicode 2018-01-26 10:34:31 +01:00
Bo Maryniuk
f0c8839c1a Lintfix C0201: remove .keys() method 2018-01-26 10:34:31 +01:00
Bo Maryniuk
6144786fa8 Lintfix: W1699 (Python3 incompatibility) 2018-01-26 10:34:31 +01:00
Bo Maryniuk
ff89cd8527 Remove unused ImportError variable 2018-01-26 10:34:31 +01:00
Bo Maryniuk
f1b55e2ad0 Remove unused import 2018-01-26 10:34:31 +01:00
Bo Maryniuk
6ad6d11d97 Add unit test for timestamp error 2018-01-26 10:34:31 +01:00
Bo Maryniuk
50d3ce711e Add restriction check of log call when only general error happens 2018-01-26 10:34:31 +01:00
Bo Maryniuk
9a187bfb3a Add unit test for discovery general error handling 2018-01-26 10:34:31 +01:00
Bo Maryniuk
f700c3a870 Move helper class out of the test scope 2018-01-26 10:34:31 +01:00
Bo Maryniuk
89735d8599 Add unot test on no masters has been discovered 2018-01-26 10:34:31 +01:00
Bo Maryniuk
b4cc92e5af Rename unit test 2018-01-26 10:34:31 +01:00
Bo Maryniuk
11c8afb1f4 Update unit test for error handling 2018-01-26 10:34:31 +01:00
Bo Maryniuk
d99dc2d64e Add unit test for handling socket timeout 2018-01-26 10:34:31 +01:00
Bo Maryniuk
29bf60fca8 Add unit test for master map construction 2018-01-26 10:34:31 +01:00
Bo Maryniuk
acb4f27ac0 Lintfix: PEP8 missing whitespace 2018-01-26 10:34:31 +01:00
Bo Maryniuk
d328f7d350 Remove unused imports 2018-01-26 10:34:31 +01:00
Bo Maryniuk
7d305bb0b3 Add unit test for network query 2018-01-26 10:34:31 +01:00
Bo Maryniuk
c26e33671a Add unit test for config is detached from the passed 2018-01-26 10:34:31 +01:00
Bo Maryniuk
61aaf4008c Add unit test for the Client, config is passed 2018-01-26 10:34:31 +01:00
Bo Maryniuk
11e02bc7be Add logging assertions and refactor the order of the calls 2018-01-26 10:34:31 +01:00
Bo Maryniuk
dc7746f579 Add unit test for the server runner 2018-01-26 10:34:31 +01:00
Bo Maryniuk
8d9bea0564 Add unit test for configuration of the server starter class 2018-01-26 10:34:31 +01:00
Bo Maryniuk
a0a574e13e Add log.debug assertion check 2018-01-26 10:34:31 +01:00
Bo Maryniuk
a5f186f021 Add unit test for correct timestamp reply 2018-01-26 10:34:31 +01:00
Bo Maryniuk
dd73783f71 Remove Yoda-expression 2018-01-26 10:34:31 +01:00
Bo Maryniuk
e0ee188a19 Lintfix: too much empty lines 2018-01-26 10:34:31 +01:00
Bo Maryniuk
7e8a01e071 Add unit test for outdated timestamp with reply 2018-01-26 10:34:31 +01:00
Bo Maryniuk
6565c16be4 Add unit test for outdated timestamp at no reply 2018-01-26 10:34:31 +01:00
Bo Maryniuk
24ded041af Add unit test datagram receives wrong timestamp, replies the reason 2018-01-26 10:34:31 +01:00
Bo Maryniuk
a7700e4a06 Fix unit test doc 2018-01-26 10:34:31 +01:00
Bo Maryniuk
671ed994b1 Add unit test for wrong timestamp with no reply (quiet) 2018-01-26 10:34:31 +01:00
Bo Maryniuk
0bcf66418d Rename test to the more meaningful name 2018-01-26 10:34:31 +01:00
Bo Maryniuk
84fc332817 Add unit test on datagram_received when bad signature is happening 2018-01-26 10:34:31 +01:00
Bo Maryniuk
fe26b59308 Add transport factory unit test for send_to retry/failure 2018-01-26 10:34:31 +01:00
Bo Maryniuk
05a663a4c6 Refactor exception side effects 2018-01-26 10:34:31 +01:00
Bo Maryniuk
cef644c71e Add unit test for factory transport on sending success 2018-01-26 10:34:31 +01:00
Bo Maryniuk
405253f9a1 Add factory unit test protocol attribute check 2018-01-26 10:34:31 +01:00
Bo Maryniuk
02c1a4833d Move sock mock away to the utils mixin 2018-01-26 10:34:31 +01:00
Bo Maryniuk
76cb070c44 Add self ip detection unit test 2018-01-26 10:34:31 +01:00
Bo Maryniuk
4585b37b4e Add protocol settings unittest 2018-01-26 10:34:31 +01:00
Bo Maryniuk
a39462ecee Add availability method test 2018-01-26 10:34:31 +01:00
Bo Maryniuk
5771eedd3e Move test case to the unit tests 2018-01-26 10:34:31 +01:00
Nicole Thomas
b9b3e2e37e
Merge pull request #45610 from terminalmage/kill-six.b-with-fire
Replace all usage of six.b
2018-01-24 14:22:06 -05:00
Erik Johnson
d6d7da5c90
Replace all usage of six.b
It can't be trusted to produce bytes, it returns unicode when a unicode
string is passed.
2018-01-24 09:17:28 -06:00
Nicole Thomas
e6e977c6a0
Merge branch 'oxygen' into win_fix_test_docker 2018-01-24 09:13:28 -05:00
Nicole Thomas
fc18995873
Merge pull request #45438 from terminalmage/py3-salt.utils-t-v
[PY3] Add unicode_literals to salt.utils modules (T-V)
2018-01-23 17:14:16 -05:00
Nicole Thomas
453401a9a0
Merge pull request #45621 from terminalmage/py3-fix-salt.utils.json
salt.utils.json: only encode data on PY2
2018-01-23 07:42:49 -05:00
Erik Johnson
ba54ff44a6
add tests for json load/dump helpers 2018-01-22 20:16:59 -06:00
Nicole Thomas
98e2d66809
Merge pull request #45567 from twangboy/win_fix_test_process
Fix `unit.utils.test_process` on Windows
2018-01-22 14:50:05 -05:00