Commit graph

113 commits

Author SHA1 Message Date
Yuming Zhu
684e6c689b cli: [download-task] readable error when no task found 2018-09-25 10:19:59 -04:00
Tomas Kopecek
bd649d2723 prioritize unittest2
Make all imports consistent with
https://pagure.io/koji/issue/830

Fixes: https://pagure.io/koji/issue/1001
2018-08-16 09:03:09 -04:00
Tomas Kopecek
707c6b7774 python-modernize -f libmodernize.fixes.fix_map 2018-07-11 17:37:39 -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
1c76cd0c0f cli: rename _unique_path to unique_path, and deprecate the old one 2018-06-28 12:39:12 -04:00
Tomas Kopecek
63d92398d5 allow force for pkglist_add
Using force option will allow 'pre-blocking' of packages which are not
in tag inheritance yet, but could cause a problem if they'll get to
inheritance chain somehow. In such case we don't have an owner for
package and using 'force' allows admin to introduce blocked package with
him as an owner.

Fixes: https://pagure.io/koji/issue/867
2018-06-08 16:54:53 -04:00
Mike McLean
9de0b15292 avoid skipIf in import-comps unit test
causes problems with unittest2 in epel6
2018-06-07 09:39:39 -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
Tomas Kopecek
399e42bbd1 CLI update for readTagGroups blocked 2018-06-05 09:59:03 -04:00
Tomas Kopecek
7130d3d032 fix test 2018-06-04 11:49:57 -04:00
Mike McLean
0171027224 fix unit tests 2018-05-03 16:05:16 -04:00
Mike McLean
a93554139e update unit test for new options 2018-05-03 16:05:16 -04:00
Tomas Kopecek
815713fed3 tests for download_logs 2018-04-30 16:11:07 -04:00
Tomas Kopecek
1548781346 added test 2018-04-24 16:54:08 -04:00
Tomas Kopecek
252c9e1c20 CLI commands for notifications
Fixes: https://pagure.io/koji/issue/680
2018-04-24 16:54:08 -04: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
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
Franz Chih-Ping Hsieh
551ef9e254 add unit test for koji_cli.commands.handle_dist_repo 2017-12-19 09:52:45 -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
Franz Chih-Ping Hsieh
2096c6fce8 mock koji.commands._running_in_bg funtion to run unittest in background 2017-10-30 22:08:20 -04:00
Franz Chih-Ping Hsieh
85f489ee98 rename testcase class name 2017-10-30 16:13:40 -04:00
Franz Chih-Ping Hsieh
cb0d9ba37d add unittests for koji command line:
- call
 - hello / moshimoshi
 - maven-chain
 - resubmit
2017-10-30 16:13:40 -04:00
Franz Chih-Ping Hsieh
17f006511d add unittests for koji commands
- assign-task
 - wrapper-rpm
2017-10-30 16:13:40 -04:00
Tomas Kopecek
bf0552e6de use contextlib wrapper for older python-requests 2017-10-16 10:03:42 -04:00
Tomas Kopecek
7e2cb6b156 replace pycurl with requests
Related: https://pagure.io/koji/issue/600
2017-10-16 10:03:42 -04:00
Tomas Kopecek
77339cc7a1 unit test 2017-10-11 01:05:41 -04:00
Tomas Kopecek
26474b72fc drop importBuildInPlace call
"The importBuildInPlace call is an artifact of a particular bootstrap
event that happened a long time ago. It's not really documented or
recommended for current use."

Related: https://pagure.io/koji/issue/553
2017-09-26 17:32:16 -04:00
Tomas Kopecek
1891892c25 move spin-livemedia to build section
Related: https://pagure.io/koji/issue/586
2017-09-26 12:42:56 +02:00
Tomas Kopecek
647978bb70 update test 2017-09-18 16:56:22 -04:00
Mike McLean
aa9a7b8841 avoid mocking isfile in unit test 2017-09-14 23:34:47 -04:00
Mike McLean
9bd9e07b42 unit tests for activate_session 2017-09-14 22:59:41 -04:00
Brendan Reilly
f9f41b46e6 Added better state handling, prefix option, tz handling, sorting to list-builds 2017-09-08 16:20:17 -04:00
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