Commit graph

489 commits

Author SHA1 Message Date
Tomas Kopecek
16fb3ad162 enable dnf_warning in mock config
Fixes: https://pagure.io/koji/issue/1594
2019-08-12 18:02:36 -04:00
Tomas Kopecek
dfbe322222 deprecate sha1/md5_constructor from koji.util
These functions are now fully provided by hashlib. Commit removes their
usage from koji's codebase and leaves deprecation message in lib.

Final removal from lib is scheduled to 1.21.

Fixes: https://pagure.io/koji/issue/1487
2019-08-12 16:07:55 -04:00
Tomas Kopecek
f1d2ebc85c move cg_id to build table 2019-07-16 10:11:55 -04:00
Tomas Kopecek
9524718a91 fix tests for CLI 2019-07-16 10:11:55 -04:00
Mike McLean
546d7fb4e8 fix whitespace 2019-07-11 15:18:15 -04:00
Yu Ming Zhu
1ec14ec5dc adjust cli plugin config description 2019-07-11 15:18:15 -04:00
Yuming Zhu
ded43dec53 cli: also load plugins from ~/.koji/plugins
- add plugin_path in koji.conf
- add `--plugin-paths` in cli arguments

fixes: #887
2019-07-11 15:18:15 -04:00
Mike McLean
a81c088168 unused variables 2019-07-09 13:34:36 -04:00
Mike McLean
f90699603b fix test names 2019-07-09 13:34:36 -04:00
Tomas Kopecek
61c015357b use list for db instead of set 2019-07-09 13:34:36 -04:00
Tomas Kopecek
b7d273b2fa API/CLI/tests for notification blocks 2019-07-09 13:34:36 -04:00
Tomas Kopecek
e4c37dfffb notification optout tests
Related: https://pagure.io/koji/issue/1204
2019-07-09 13:34:36 -04:00
Tomas Kopecek
6fd33bfd1f use LANG=C for running tests comparing human-readable output 2019-06-26 15:58:48 -04:00
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