Commit graph

58 commits

Author SHA1 Message Date
Tomas Kopecek
9963877545 move move_and_symlink to koji.util 2018-11-28 16:27:30 -05:00
Tomas Kopecek
8370a8e0ad don't fail on missing field in base policy tests
Fixes: https://pagure.io/koji/issue/1038
2018-11-28 09:01:20 +01:00
Yuming Zhu
cab5a01dcb move tests to test_lib/test_context.py 2018-11-22 18:43:31 +08:00
Tomas Kopecek
dfb692bc0a fix test 2018-08-16 13:36:07 -04:00
Tomas Kopecek
1886fe54a6 check rpm headers support directly 2018-08-16 13:36:07 -04:00
Tomas Kopecek
caae1a0a8b workaround unnecessary list conversions 2018-07-11 17:37:40 -04:00
Tomas Kopecek
7f6b717eb6 python-modernize -f libmodernize.fixes.fix_import 2018-07-11 17:37:39 -04:00
Tomas Kopecek
bcee24e50c python-modernize -f libmodernize.fixes.fix_dict_six 2018-07-11 17:37:39 -04:00
Tomas Kopecek
b96092334d python-modernize -f libmodernize.fixes.fix_xrange_six 2018-07-11 17:37:39 -04:00
Yuming Zhu
b65d2c3fcf cli: unittest for multiCall 2018-06-27 11:33:34 -04:00
David Abdurachmanov
16a4850ea3 Add missing config_opts['rpmbuild_networking'] to mock test data
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-06-13 12:30:19 -04:00
Tomas Kopecek
c68396c059 Use unittest2 for rhel6 compatibility
Fixes: https://pagure.io/koji/issue/830
2018-06-07 09:39:39 -04:00
Franz Chih-Ping Hsieh
f356ac4f17 force using python2 to run script
Fixes #945
2018-05-24 00:01:30 -04:00
Tomas Kopecek
2eff45f763 Drop pre-2.6 compat function koji.util._relpath
Fixes: https://pagure.io/koji/issue/818
2018-03-08 10:23:44 -05:00
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