Commit graph

1050 commits

Author SHA1 Message Date
Tomas Kopecek
f5f8e6c6a2 refactor get_user_perms 2023-09-04 09:16:21 +02:00
Tomas Kopecek
e1ea85f184 getUserPermsInheritance 2023-09-04 09:16:21 +02:00
Tomas Kopecek
255ec21d00 Inherit group permissions
Related: https://pagure.io/koji/issue/3849
2023-09-04 09:16:21 +02:00
Tomas Kopecek
1f06c98fda fix tests 2023-08-28 13:04:50 +02:00
Tomas Kopecek
60722acf09 Extend getUser to get user groups
Related: https://pagure.io/koji/issue/3854
2023-08-02 12:46:40 +02:00
Tomas Kopecek
ad0566d7cc distrepo will not skip rpm stat by default
There is also CLI option which can override this behaviour if needed.

Related: https://pagure.io/koji/issue/3829
2023-07-18 11:31:07 +02:00
Tomas Kopecek
0f75baac74 Fix user_in_group policy test
Related: https://pagure.io/koji/issue/3858
2023-07-17 16:17:47 +02:00
Tomas Kopecek
7afa72a60d fix tests 2023-07-13 17:03:23 +02:00
Tomas Kopecek
030e37e1fb fix tests/flake8 2023-07-04 09:09:57 +02:00
Mike McLean
61675aec2f be pickier about keyword args and add a note about them in usage 2023-07-04 08:55:12 +02:00
Mike McLean
65d0bbb897 additional unit tests 2023-07-04 08:55:12 +02:00
Mike McLean
97932391de unit tests 2023-07-04 08:55:12 +02:00
Mike McLean
07e4193160 unit test 2023-05-23 17:54:17 +02:00
Tomas Kopecek
576e5d6f3b PR#3819: track update time in host table
Merges #3819
https://pagure.io/koji/pull-request/3819

Fixes: #3789
https://pagure.io/koji/issue/3789
2023-05-17 10:58:12 +02:00
Mike McLean
6455974fd5 adjust unit tests for new args 2023-05-17 09:35:11 +02:00
Tomas Kopecek
0986c118fd fix unit tests 2023-05-17 09:31:35 +02:00
geargyri
0eedf36c41 add policy check
Related: https://pagure.io/koji/issue/3183
2023-05-17 09:31:35 +02:00
Tomas Kopecek
7f7df0165c fix tests
Related: https://pagure.io/koji/issue/3789
2023-05-16 13:14:16 +02:00
Mike McLean
48b8deef6e fix unit tests 2023-05-16 13:14:16 +02:00
Jana Cupova
de01baece7 createTag raises error when perm ID isn't exists
Fixes: https://pagure.io/koji/issue/3802
2023-05-09 10:10:18 +02:00
Jana Cupova
b87cbb2fda Increase sidetag CLI tests
Related: https://pagure.io/koji/issue/3723
2023-05-09 09:27:07 +02:00
Jana Cupova
a87c6aedbe Add component/built archives in list-buildroot
Fixes: https://pagure.io/koji/issue/3759
2023-05-09 09:20:44 +02:00
Jana Cupova
44742bc5f8 Drop default Null for renew_time in sql 2023-05-09 09:16:40 +02:00
Jana Cupova
ce0ce20e3a Add renewal session timeout
Fixes: https://pagure.io/koji/issue/3596
2023-05-09 09:16:40 +02:00
Tomas Kopecek
23350af251 CG: allow reimports into failed/cancelled builds
Related: https://pagure.io/koji/issue/3776
2023-04-21 10:55:15 +02:00
Jana Cupova
3c8f309e47 Increase hub unit tests 2023-04-21 10:51:14 +02:00
Jana Cupova
b1d0361f18 tagNotification: user_id is int when get_user is used
Fixes: https://pagure.io/koji/issue/3779
2023-04-18 13:48:04 +02:00
Jana Cupova
542d5c80fd Fix prune-signed-copies unit tests 2023-04-17 09:35:46 +02:00
Jana Cupova
5aea4e2d54 prune-signed-copies unit tests 2023-04-11 15:13:19 +02:00
Jana Cupova
027cca702d Unify behavior when result is empty in get_maven/image/win/build
Fixes: https://pagure.io/koji/issue/3753
2023-04-03 15:28:22 +02:00
Jana Cupova
9a6daef300 Fix backward compatibility
Fixes: https://pagure.io/koji/issue/3715
2023-04-03 15:25:20 +02:00
Jana Cupova
2139b237d0 ArgumentParser instead of ArgumentParser in sidetag CLI plugin
Fixes: https://pagure.io/koji/issue/3739
2023-04-03 15:23:21 +02:00
Jana Cupova
de192e10f1 Add repoID in listBuildroots and create repoinfo command
Add repoID param in listBuildroots and show result in repoInfo
Create new command repoinfo which provides equivalent info as repoInfo
Add number of buildroots related to repo in repoinfo page

Fixes: https://pagure.io/koji/issue/2549
2023-04-03 15:20:18 +02:00
Jana Cupova
bbd841c0d4 Increase hub unit tests 03-02 2023-03-29 13:49:32 +02:00
Jana Cupova
889770e74c Fix editSidetag fstring variable formats and fix test unit tests
Fixes: https://pagure.io/koji/issue/3748
2023-03-24 11:40:44 +01:00
Jana Cupova
c8bcb496d4 Increate sidetag hub unit tests 2023-03-23 14:01:41 +01:00
Jana Cupova
fe0bf6dc86 Fix pkglist_add when extra_arches is None
Fixes: https://pagure.io/koji/issue/3744
2023-03-23 13:23:42 +01:00
Jana Cupova
175c618e5b CLI list-untagged: One space only instead of double space before references
Fixes: https://pagure.io/koji/issue/3730
2023-03-23 13:21:38 +01:00
Mike McLean
54996d9e63 fix unit test 2023-03-23 13:20:06 +01:00
Mike McLean
106ccbcde5 single opt for get, plus simple unit test 2023-03-23 13:20:06 +01:00
Jana Cupova
3e09338db7 Increase CLI uni tests 2023-03-21 12:22:02 +01:00
Jana Cupova
886e8856b6 Fix timezone in clone-tag test case
Fixes: https://pagure.io/koji/issue/3733
2023-03-15 12:48:55 +01:00
Mike McLean
aebff00673 unit test: more closely mimic rpm2cpio behavior when reading past header 2023-03-14 11:08:16 +01:00
Mike McLean
accdeb3c63 unit test: close fd 2023-03-14 11:08:16 +01:00
Mike McLean
85ea7bd736 unit test 2023-03-14 11:08:16 +01:00
Tomas Kopecek
9799a193c9 fix tests
Related: https://pagure.io/koji/issue/3711
2023-03-07 12:50:10 +01:00
Jana Cupova
334bc39375 CLI: cancel error msg
cancel returns error msg when build is not existing
cancel returns error mgs for all not existing tasks/builds

Fixes: https://pagure.io/koji/issue/3715
2023-03-06 14:24:53 +01:00
Jana Cupova
378ea8ef2f Delete double check existing source tag, --batch option is unvisible
Fixes: https://pagure.io/koji/issue/3705
2023-03-06 14:23:00 +01:00
Jana Cupova
693f196fa4 Add missing argument in edit-sidetag help msg
Fixes: https://pagure.io/koji/issue/3717
2023-03-02 16:07:04 +01:00
Tomas Kopecek
7ceffe391c unify relative imports 2023-03-01 11:46:24 +01:00