Commit graph

367 commits

Author SHA1 Message Date
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
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
d1544e7f05 Correctly ignore all values in rpmdiff
Related: https://pagure.io/koji/issue/994
2018-08-10 15:47:46 -04:00
Franz Chih-Ping Hsieh
e25603dd97 copy data from static variable instead of use it directly to prevent caching.
also update test cases to verfiy this issue.

Fixes: #994
https://pagure.io/koji/issue/994
2018-08-10 15:47:46 -04:00
Mike McLean
549d9d7955 more checks in unit test 2018-08-08 11:22:59 -04:00
Mike McLean
d9c44735cc actually add unit test 2018-08-08 11:22:59 -04:00
Yuming Zhu
5a229a092e raise Error when user not found in getBuildNotifications 2018-07-31 17:50:07 +08:00
Tomas Kopecek
be535c2854 python-modernize -f libmodernize.fixes.fix_imports_six 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
Mike McLean
118f796a1f fix unittest ref 2018-06-08 16:54:53 -04:00
Tomas Kopecek
3801e7504a use unittest2 only if available 2018-06-08 16:54:53 -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
a094ab21c4 more unit test fixes 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
90a935182f Allow listing of blocked data in readTagGroups
Fixes: https://pagure.io/koji/issue/870
2018-06-05 09:59:03 -04:00
Mike McLean
7a0acc00cb put dist repo rpms under Packages/ 2018-05-03 16:05:16 -04:00
Mike McLean
0171027224 fix unit tests 2018-05-03 16:05:16 -04:00