Commit graph

44 commits

Author SHA1 Message Date
Mike McLean
082f43ba3a update unit tests 2018-02-28 12:22:05 -05:00
Mike McLean
90f95da316 test internal_dev_setup option for getMockConfig 2018-02-28 12:22:05 -05:00
Mike McLean
c7e16a993d basic unit test for genMockConfig 2018-02-28 12:22:05 -05:00
Yuming Zhu
64ef26648f update test_gssapi 2018-02-07 16:07:41 +08:00
Yuming Zhu
80b4bd1ad6 update test_gssapi.py for requests_kerberos.__version__ checking 2018-02-07 15:55:58 +08:00
Yuming Zhu
c241d28c25 do not import HTTPKerberosAuth 2018-02-07 15:55:58 +08:00
Yuming Zhu
af1a85841b check python-requests-kerberos version before gssapi login
relates: #747
2018-02-07 15:55:58 +08:00
Tomas Kopecek
8f22069fda drop old ssl support + compatrequests
Koji now uses ssl via python-requests

 - use_old_ssl option is removed
 - koji.ssl library removed
 - compatrequests dropped

Related: https://pagure.io/koji/issue/467
2018-01-03 12:47:03 +01:00
Mike McLean
c3f5b5b124 unit tests for gssapi auth 2017-12-07 18:16:03 -05:00
Yuming Zhu
377fecbbfc fix unit test - test_formatChangelog 2017-12-06 14:08:37 +08:00
Mike McLean
8a4c75ee7f rename fixPrint->_fix_print and add a docstring 2017-12-06 13:32:51 +08:00
Mike McLean
1da06800cf adjustments to test_formatChangelog 2017-12-06 13:32:51 +08:00
Yuming Zhu
3464adae2e cli: fix changelog encode for PY3
relates [issue#577](https://pagure.io/koji/issue/577)
2017-12-06 13:32:29 +08:00
Yuming Zhu
14a24abbde make grab_session_options to accept dict directly
fixes #663
2017-11-09 17:47:36 -05:00
Mike McLean
8f6d5d41cd clean up tests 2017-11-09 17:40:52 -05:00
Mike McLean
40bf35c0f1 move tests to correct subdirs 2017-11-09 17:40:52 -05:00
Franz Chih-Ping Hsieh
efe68e54df - add unit test for koji/util: (coverage 58%->100%)
- minor fix: check if input string time is valid
2017-11-07 09:58:21 -05:00
Mike McLean
6bb32b699e handle DateTime objects in encode_datetime 2017-11-02 15:59:18 -04:00
Tomas Kopecek
5b23fb1629 consolidate safe_rmtree, rmtree and shutil.rmtree
shutil.rmtree should be avoided in almost all cases
safe_rmtree has its usage in tasks module, but innards are replaced with
koji.util.rmtree, so we don't have two implementations of same task

Related: https://pagure.io/koji/issue/648
2017-10-30 12:09:04 -04:00
Tomas Kopecek
6871f52ce8 ignore concrete timezone in tests 2017-10-06 17:10:12 -04:00
Tomas Kopecek
470addae97 fix formatTime for DateTime
Related: https://pagure.io/koji/issue/623
2017-10-06 17:10:12 -04:00
Mike McLean
71089f449c test case where rpm size header gives None, but no longsize header 2017-09-08 16:33:09 -04:00
Mike McLean
cea43dd458 correct range for i8 (64 bit signed) 2017-08-25 16:48:02 -04:00
Mike McLean
2dfbd7d998 another unit test 2017-08-25 16:48:02 -04:00
Mike McLean
ae4e4e7b51 unit test corner cases. xmlrpcplus coverage 100% 2017-08-25 16:48:02 -04:00
Mike McLean
5bcaf7cebe include some unicode in unit test data 2017-08-25 16:48:02 -04:00
Mike McLean
6c1d2e637a use python six to get xmlrpc_client in unit tests 2017-08-25 16:48:02 -04:00
Mike McLean
bce7c414ae more xmlrpcplus unit tests 2017-08-25 16:48:02 -04:00
Mike McLean
2925e1cf93 some unit tests for xmlrpcplus 2017-08-25 16:48:02 -04:00
Mike McLean
778d466387 unit test: check get_header_fields() with large size 2017-08-08 12:13:06 -04:00
Mike McLean
0c8d4c8f07 implement caching in _fix_cb_args 2017-08-07 12:41:40 -04:00
Mike McLean
fe7c0b4052 unit test for encode_datetime 2017-08-07 12:41:40 -04:00
Mike McLean
ab928e6196 add unit test for convert_datetime decorator 2017-08-07 12:41:40 -04:00
Yuming Zhu
0f51a9936f extend unit tests for PluginTracker 2017-06-22 11:59:28 -04:00
Mike McLean
6419530775 unit tests for PluginTracker 2017-06-22 11:59:28 -04:00
Mike McLean
206a3320e6 unit tests for callback handling 2017-06-22 11:59:28 -04:00
Mike McLean
1a6d8377ed some unit tests for koji.plugins 2017-06-22 11:59:28 -04:00
Mike McLean
0661e0e3eb Work around coverage bug in py3 on Fedora 2017-06-01 09:39:25 +02:00
Tomas Kopecek
95f012b27d fixEncoding tests 2017-06-01 09:39:25 +02:00
Mike McLean
01a0894ee5 test_lib_py2only dir 2017-06-01 09:39:25 +02:00
Mike McLean
efe59699c6 fix some test constants 2017-06-01 09:39:25 +02:00
Mike McLean
9132b1106e avoid test_compatrequests on py3 2017-06-01 09:39:25 +02:00
Mike McLean
96532de199 no need to port compatrequests or old ssl code 2017-06-01 09:39:24 +02:00
Mike McLean
c4a48efd83 move lib tests into subdir 2017-06-01 09:39:24 +02:00