Commit graph

217 commits

Author SHA1 Message Date
Yuming Zhu
ba087236dd cli: using PROGRESSFUNCTION before libcurl 7.32.0 in download_file 2017-08-08 12:26:22 -04:00
Yuming Zhu
5df1e3e6e6 cli: do not print extra blank line when noprogress passed 2017-08-08 12:26:22 -04:00
Yuming Zhu
c730f2b3aa fix cli unittest: test_download_task.py for py3 2017-08-08 12:26:22 -04:00
Yuming Zhu
dc0e0303f2 cli: unittest for download_file 2017-08-08 12:26:22 -04:00
Yuming Zhu
25c36a8b56 unittest for cli:download-task 2017-08-08 12:26:22 -04:00
Yuming Zhu
1e77866b35 cli: change download-task to regular curl download
also make 301/302 redirect acceptable by download-build & download-task
2017-08-08 12:26:22 -04:00
Mike McLean
2347aee632 runroot: friendlier parsing of path_subs config 2017-08-08 12:15:42 -04:00
Mike McLean
778d466387 unit test: check get_header_fields() with large size 2017-08-08 12:13:06 -04:00
Mike McLean
c2cb0f1184 fix test_krbv_disabled unit test 2017-08-08 11:39:40 -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
Mike McLean
e1bc3664ad unit test: nonsequential path numbers in runroot config 2017-07-31 12:53:03 -04:00
Tomas Kopecek
032e2aaddd allow some missing path sections in runroot config
Fixes: https://pagure.io/koji/issue/527

Before path sections were expected to have zero-based numbering. If some
item was missing, parsing ended there.

Now we are more benevolent and we pick all path\d+ sections and sort
them by ordering number.
2017-07-31 12:53:03 -04:00
Mike McLean
b405701b53 hub: rework match_kojifile() and add a unit test 2017-07-25 16:45:25 -04:00
Tomas Kopecek
64f2467fd0 kojifile component type 2017-07-25 12:37:46 -04:00
Tomas Kopecek
c1257a6a22 simplify SQL test comparison 2017-07-25 12:14:26 -04:00
Tomas Kopecek
6c68b6ab34 CLI block-group command
Relates: https://pagure.io/koji/issue/462
2017-07-25 12:14:26 -04:00
Mike McLean
6f987daf5a unit tests for delete_tag() 2017-07-07 12:21:22 -04:00
Yuming Zhu
2838f7fd9e getUserPerms should throw GenericError when no user found 2017-07-06 12:06:53 -04:00
Tomas Kopecek
f7bdb7a089 koji_cli name interferes with new library 2017-06-22 12:03:00 -04:00
Yuming Zhu
6fe90a170d unit tests for cli.load_plugins 2017-06-22 11:59:28 -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
76352b4968 provide a temporary workdir for restart task unit tests
Followup to https://pagure.io/koji/pull-request/472
The test cases added in this PR left temporary files
in the checkout dir.
2017-06-22 11:52:13 -04:00
Mike McLean
6eac5ba443 add unit tests for listHosts call 2017-06-21 11:00:08 -04:00
Mike McLean
4391f34106 another get_build_logs unit test 2017-06-21 10:55:13 -04:00
Mike McLean
7243a8eb8f unit tests for getBuildLogs 2017-06-21 10:55:13 -04:00
Mike McLean
a86703319c unit tests for timeout option in wait() 2017-06-21 08:39:08 -04:00
Mike McLean
c2764a5caf units tests for restart related task handlers 2017-06-21 08:39:08 -04:00
Tomas Kopecek
c02eb739aa update cli tests 2017-06-13 11:42:04 +02:00
Tomas Kopecek
c5f910ffd9 list-channels CLI command
Related: https://pagure.io/koji/issue/437
2017-06-07 14:51: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
9508bb164c no hub plugins changes either 2017-06-01 09:39:25 +02:00
Mike McLean
cf3dd9040d no hub test changes for now 2017-06-01 09:39:25 +02:00
Mike McLean
6092f9e2ae coverage for py3 unit 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
Mike McLean
efa92224ad fix mocking of open() in utils test case 2017-06-01 09:39:24 +02:00
Tomas Kopecek
449390cff9 cli-related test fixes 2017-06-01 09:39:23 +02:00
Tomas Kopecek
b4c7433cc4 StringIO to six 2017-06-01 09:39:23 +02:00
Tomas Kopecek
0eebe53b27 Exception.message is deprecated 2017-06-01 09:39:23 +02:00
Tomas Kopecek
ce9b538e43 fix compatrequests 2017-06-01 09:39:23 +02:00
Tomas Kopecek
7ff24d717d fix session 2017-06-01 09:39:23 +02:00