Mikolaj Izdebski
de161628b0
Allow hub policy to match version and release
...
Fixes https://pagure.io/koji/issue/1134
Based on work from https://pagure.io/koji/pull-request/1135
2019-06-26 11:44:23 -04:00
Mike McLean
14b25b1f4b
use multicall in a few more places in the cli
2019-06-17 10:19:12 -04:00
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
b0f0c3ff45
New 'buildtype' test for policies
...
Fixes: https://pagure.io/koji/issue/1225
2019-06-14 15:54:42 -04:00
Tomas Kopecek
271249c833
add "tag" permission
2019-06-13 13:43:14 -04:00
Tomas Kopecek
50335800bd
introduce 'host' permission + docs
...
Fixes: https://pagure.io/koji/issue/1453
2019-06-13 13:43:14 -04:00
Tomas Kopecek
70385754cd
fix test
2019-06-06 16:19:21 -04:00
Tomas Kopecek
afdc04be5d
fix test
2019-06-06 16:19:21 -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
Mikolaj Izdebski
3d058c50db
Allow generating separate src repo for build repos
...
Fixes #1266
2019-05-23 10:01:12 -04:00
Tomas Kopecek
f5c52b70ad
fix tests for updated query
2019-05-22 13:25:18 -04:00
Tomas Kopecek
d2989faa59
add strict option to getTaskChildren
...
Fixes: https://pagure.io/koji/issue/1199
2019-05-22 13:25:18 -04:00
Tomas Kopecek
167eba3394
fail runroot task on non-existing tag
...
Fixes: https://pagure.io/koji/issue/1139
2019-05-22 13:12:19 -04:00
Tomas Kopecek
8370648355
fix test for parse_arches
2019-05-21 18:39:52 -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
8529708b7c
check architecture names for mistakes
...
Fixes: 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
Mike McLean
0851caa148
fix unit test
2019-05-21 12:14:33 -04:00
Mike McLean
d4a2e6fe65
fix unit test
2019-05-21 12:14:33 -04:00
Mike McLean
05241bd391
additional unit test
2019-05-21 11:15:29 -04:00
Mike McLean
41628eb5e3
fix unit test
2019-05-21 11:15:29 -04:00
Tomas Kopecek
45777c434e
fix test for numeric user_id
2019-05-02 17:16:09 -04:00
Tomas Kopecek
2542bc51aa
createEmptyBuild errors for non-existent user
...
Until now, error was raised from postgres insert. Now is user's
existence checked before running insert.
Fixes: https://pagure.io/koji/issue/1163
2019-05-02 17:16:09 -04:00
Tomas Kopecek
0b30e73053
Check CLI arguments for enable/disable host
...
Fixes: https://pagure.io/koji/issue/1364
2019-04-12 21:30:02 -04:00
Tomas Kopecek
b4755745a2
block_pkglist compatibility fix
...
On older hubs --force is not supported, so CLI will fail on unknown
parameter. This use force option only if it is explicitly required.
Fixes: https://pagure.io/koji/issue/1388
2019-04-10 17:32:50 -04:00
Tomas Kopecek
6010a9a98e
fix test for opening mock file
2019-04-10 17:29:00 -04:00
Mike McLean
431ee1688a
fix unit test
2019-04-09 15:40:00 -04:00
Mike McLean
2092cf3a21
fix unit test
2019-04-05 19:59:34 -04:00
Yu Ming Zhu
2f47ed7f2d
hub: unittest for get_external_repos
2019-03-12 14:27:32 -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
9bcc710c7e
drop unused import in unit test
2019-03-04 09:57:15 -05:00
Mike McLean
89b6c01c47
fix unit test for runroot cli plugin
2019-03-04 09:57:15 -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
24f9cb60ba
use base64encode most places
2019-03-04 09:28:39 -05:00
Mike McLean
71bc4106b4
new base64 helper functions
2019-03-04 09:28:39 -05:00
Brendan Reilly
ffdfb45e1c
Updated tests for volume id option
2019-02-21 16:37:35 -05:00
Mike McLean
208c6433d7
fix unit tests for listHosts
2019-02-21 09:34:47 -05:00
Mike McLean
f6f2984e18
fix unit test for list_archives
2019-02-21 09:34:47 -05:00
Tomas Kopecek
cbc7e85de0
fix unittest for py3
2019-02-20 15:30:01 -05:00
Mike McLean
23320221f5
remove old commented line
2019-02-19 17:29:25 -05:00
Tomas Kopecek
aefb2ddba7
fix py3 tests compatibility
2019-02-19 17:29:25 -05:00
Tomas Kopecek
051a0d5230
py3 checks file path, so it needs to be non-mocked string
2019-02-19 17:29:25 -05:00
Tomas Kopecek
99e72ead68
Fix unit tests
2019-02-19 17:29:25 -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