Commit graph

76 commits

Author SHA1 Message Date
Mike McLean
37e8afcf8c support batch option in MultiCallSession 2019-06-17 10:19:12 -04:00
Mike McLean
78e3f48d8b expand unit test a little 2019-06-17 10:19:12 -04:00
Mike McLean
c06c34c529 stub unit test 2019-06-17 10:19:12 -04:00
Tomas Kopecek
b0863edb33 turn back on test skipped due to coverage bug
Fedora already fixed coverage bug preventing this test. Turning it back
on.

Fixes: https://pagure.io/koji/issue/1444
2019-05-31 20:19:02 -04:00
Tomas Kopecek
558e129c6b use same arch parsing for cli and hub
Related: https://pagure.io/koji/issue/1237
2019-05-21 18:39:52 -04:00
Tomas Kopecek
df11172629 fix str-type testing in fix_encoding
Fixes: https://pagure.io/koji/issue/1318
2019-05-21 12:18:19 -04:00
Tomas Kopecek
12cabb0f2c Remove 'keepalive' option
keepalive is not used anymore anywhere in koji

Fixes: https://pagure.io/koji/issue/1239
2019-03-12 10:34:36 -04:00
Tomas Kopecek
eeeeb3ab78 skip fixEncoding for py3 2019-03-04 10:13:51 -05:00
Mike McLean
b1ea2009f7 extend unit test a bit 2019-03-04 09:28:39 -05:00
Mike McLean
5d9c2f72b5 unit test for decode_bytes 2019-03-04 09:28:39 -05:00
Mike McLean
3b86d7f247 fix imports 2019-03-04 09:28:39 -05:00
Mike McLean
71bc4106b4 new base64 helper functions 2019-03-04 09:28:39 -05:00
Yu Ming Zhu
dc208d0555 fix invokings and unittests 2019-02-17 21:26:13 -05:00
Yu Ming Zhu
9ddae41877 using ConfigParser.read_file for PY3 2019-02-17 21:26:13 -05:00
Mike McLean
90700a65a5 fix unit test for localPath test 2019-02-12 16:11:27 -05:00
Yu Ming Zhu
30c2e5f426 sorted set in Error msgs of tasks.find_arch 2019-01-28 08:46:11 -05:00
Yu Ming Zhu
eb36620aa3 fix some unittests 2019-01-28 08:46:11 -05:00
Mike McLean
c60ec3c2f3 add a unit test 2019-01-15 10:51:19 -05:00
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