Commit graph

336 commits

Author SHA1 Message Date
Franz Chih-Ping Hsieh
442ec600a7 add unit test for taskinfo() in koji-web. 2018-03-01 16:01:47 -05:00
Franz Chih-Ping Hsieh
e8ce7943a6 add unit test for _write_maven_repo_metadata() function in kojihub 2018-03-01 16:01:47 -05:00
Yuming Zhu
35dd4c942b hub: make list_archives to accept strict argument
fixes: #721
2018-03-01 10:30:27 -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
Mike McLean
cfca804acd fix unit test 2018-02-28 08:19:29 -05:00
Yuming Zhu
77af6d6688 hub: fix KeyError in get_notification_recipients 2018-02-28 08:07:17 -05:00
Franz Chih-Ping Hsieh
36ed909cbb fix typo, tailing white space, unused parameter 2018-02-26 15:19:59 -05:00
Franz Chih-Ping Hsieh
f0fcb0177f add unit tests for spin-* commands 2018-02-26 15:19:59 -05:00
Mike McLean
fa98fe7c59 fix unit test 2018-02-20 09:43:30 -05:00
Tomas Kopecek
d58989d777 tests for notifications 2018-02-20 09:39:27 -05:00
Tomas Kopecek
eaa158ab51 honour runroot --quiet for old-style call
Fixes: https://pagure.io/koji/issue/807
2018-02-19 12:26:45 -05:00
Mike McLean
77930282d8 unit test for checkNeeded 2018-02-13 13:48:43 -05:00
Mike McLean
21165b2814 unit test for setTagScore 2018-02-13 13:48:43 -05:00
Mike McLean
3ed392afdb unit test for regenLoop 2018-02-13 13:48:43 -05:00
Mike McLean
bda8e7adfa some kojira unit tests 2018-02-13 13:48:43 -05:00
Mike McLean
1d35403e2d unit test for Savepoint 2018-02-13 13:42:31 -05:00
Mike McLean
83d327482f unit test for add_external_rpm 2018-02-13 13:42:31 -05:00
Yuming Zhu
64ef26648f update test_gssapi 2018-02-07 16:07:41 +08:00
Yuming Zhu
4d70642217 update test_krbv.py for requests_kerberos.__version__ checking 2018-02-07 15:55:58 +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
Yuming Zhu
d72fd927de fix unexcepted order problem in test_taskinfo 2018-02-05 15:26:19 +01:00
Franz Chih-Ping Hsieh
d46f537366 add unit tests for cli commands, coverage(46%) 2018-02-05 15:15:02 +01:00
Franz Chih-Ping Hsieh
bdcb8065d2 improve coverage rate in existing test cases. 2018-02-05 15:15:02 +01:00
Franz Chih-Ping Hsieh
8a273b2cae add unit test for cli commands, coverage(40%) 2018-02-05 15:15:02 +01: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
Franz Chih-Ping Hsieh
551ef9e254 add unit test for koji_cli.commands.handle_dist_repo 2017-12-19 09:52:45 -05: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
Tomas Kopecek
47164a9d58 test intermediate calls 2017-12-05 10:28:24 -05:00
Mike McLean
cb64ee6bd8 taskWaitResults: more unit tests 2017-12-05 10:28:24 -05:00
Mike McLean
88fb2a9b8c add unit test for host.taskWaitResults 2017-12-05 10:28:24 -05:00
Franz Chih-Ping Hsieh
ec99419f3b Add unit tests for koji image_build command 2017-11-30 15:02:00 -05:00
Franz Chih-Ping Hsieh
f16f26be63 Add unit tests for koji commands 2017-11-30 15:02:00 -05:00
Franz Chih-Ping Hsieh
d331fdfa11 refactory CLI unittests including:
- introduce new CliTestCase class
 - implement useful assert functions in CliTestCase
2017-11-30 15:02:00 -05:00
Mike McLean
d38a2f30da py3 fixes for watch-tasks unit tests 2017-11-28 13:40:29 -05:00
Mike McLean
704e542b65 test_watch_tasks_with_keyboardinterrupt() 2017-11-28 13:40:29 -05:00
Mike McLean
2b0146a0ba another watch-tasks test 2017-11-28 13:40:29 -05:00
Mike McLean
83015e643c fakeclient: support multiple calls per key 2017-11-28 13:40:29 -05:00
Mike McLean
d97cf1f961 use fake client for watch_tasks testing 2017-11-28 13:40:29 -05:00
Mike McLean
cf19091d9c cleanup 2017-11-28 13:40:29 -05:00
Mike McLean
0957874f8f partial work 2017-11-28 13:40:29 -05:00
Tomas Kopecek
921fcae6fe return xmlrpc-compatible list instead of set 2017-11-22 15:54:31 -05:00
Tomas Kopecek
f40fee4b7d fix tests 2017-11-22 15:54:31 -05:00