Commit graph

183 commits

Author SHA1 Message Date
Tomas Kopecek
79a7da7c0b CGUninitBuild for cancelling CG reservations
Fixes: https://pagure.io/koji/issue/1610
2019-10-16 10:03:46 +02:00
Yuming Zhu
4ff3da3b6b fix unitest import for el6 2019-10-15 09:16:43 +02:00
Yu Ming Zhu
3e124f685a fix editUser api for multiple kerberos support 2019-10-15 09:16:43 +02:00
Yu Ming Zhu
180cf894e2 hub: [get_group_members] return field is not named as alias 2019-10-15 09:16:43 +02:00
Brendan Reilly
fda86ce710 Added editUser api call
Fixes: #862
2019-10-14 10:14:50 +02:00
Yu Ming Zhu
cace979532 fix unittests 2019-10-10 16:37:57 +02:00
Yuming Zhu
473bc1460b hub: [getRPMFile] add strict behavior 2019-10-10 18:18:32 +08:00
Tomas Kopecek
0d6d9a51a6 swapped values in message
Related: https://pagure.io/koji/issue/1090
2019-10-03 16:03:03 +02:00
Tomas Kopecek
ca802b6e93 fix sql order in test 2019-09-30 15:47:56 +02:00
Yu Ming Zhu
2e8611254c fix unavailable id column 2019-09-30 15:47:56 +02:00
Yu Ming Zhu
24afeca663 hub: [groupListRemove] raise Error when no group for tag
Fixes: https://pagure.io/koji/issue/1090
2019-09-30 15:47:45 +02:00
Tomas Kopecek
bf5da96053 Fix lookup_name usage + tests
Fixes: https://pagure.io/koji/issue/1632
2019-08-28 15:46:02 +02:00
Mike McLean
f8b5f7da73 fix unit test 2019-08-15 17:00:51 -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
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
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
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
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
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
Mike McLean
0851caa148 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
Yu Ming Zhu
2f47ed7f2d hub: unittest for get_external_repos 2019-03-12 14:27:32 -04: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
5cd9ed7e56 fix new test 2019-02-05 15:49:54 +01:00
Tomas Kopecek
8b3edd6d95 fix test 2019-02-05 15:49:54 +01:00
Tomas Kopecek
b6ff16b624 db ordering fixes 2019-02-05 15:49:54 +01:00
Tomas Kopecek
4d7535374c fix file handling 2019-02-05 14:24:49 +01:00
Mike McLean
a3643f7b64 fix unit test 2018-12-03 15:31:37 -05:00
Tomas Kopecek
9963877545 move move_and_symlink to koji.util 2018-11-28 16:27:30 -05:00
Tomas Kopecek
6a6f90be1e use relative symlinks for hub imports
Fixes: https://pagure.io/koji/issue/913
2018-11-28 16:27:30 -05:00
Tomas Kopecek
8370a8e0ad don't fail on missing field in base policy tests
Fixes: https://pagure.io/koji/issue/1038
2018-11-28 09:01:20 +01:00
Yuming Zhu
7817ba7ca3 hub: [getRPMDeps] add strict behavior 2018-11-16 21:14:32 -05:00
Yuming Zhu
511dfc8fdd hub: [getPackageID] add strict behavior 2018-11-16 21:07:35 -05:00
Yuming Zhu
a34896bddb hub: [hasPerm] add strict behavior 2018-11-15 14:44:07 -05:00
Tomas Kopecek
1886fe54a6 check rpm headers support directly 2018-08-16 13:36:07 -04:00
Franz Chih-Ping Hsieh
92f5cbc8b9 Add more test patterns for rpmdiff unit test. 2018-08-16 09:12:26 -04:00