Commit graph

346 commits

Author SHA1 Message Date
Mike McLean
14863332fd test_cg_importer.py: avoid creating temp files in checkout 2024-01-22 13:41:45 -05:00
Mike McLean
c944ef36a1 unit test for get_rpm preferences 2024-01-05 10:01:02 +00:00
Mike McLean
c5395a5a8f fix unit tests
- adjustments for query updates
- draft data no longer in build.extra
- drop some unhelpful assertions
2024-01-05 10:01:02 +00:00
Yu Ming Zhu
6997097392 fix tests 2024-01-05 10:00:58 +00:00
Yu Ming Zhu
8a64c93d05 promoteBuild: reformat error messages 2024-01-05 10:00:54 +00:00
Yu Ming Zhu
3dbe136187 promoteBuild: remove strict option 2024-01-05 10:00:53 +00:00
Yu Ming Zhu
e32c71c100 remove draft opts in import_build and completeBuild 2024-01-05 10:00:52 +00:00
Mike McLean
af36318ead refactor get_rpm 2024-01-05 10:00:50 +00:00
Yu Ming Zhu
34c6712fde simpler gen_draft_release and parse_target_release 2024-01-05 10:00:47 +00:00
Yu Ming Zhu
f29e5e143e parse target_release from draft release instead of extra.draft.target_release 2024-01-05 10:00:38 +00:00
Yuming Zhu
0859f1ba89 promoteBuild: update volume based on volume policy 2024-01-05 10:00:36 +00:00
Yu Ming Zhu
44d59ecbc7 can only promote COMPLETE draft build 2024-01-05 10:00:35 +00:00
Yuming Zhu
c045bc7100 promoteBuild: split main function to _promote_build 2024-01-05 10:00:34 +00:00
Yu Ming Zhu
77a06c98b3 draft filter opt: use bool/None instead of bit flag 2024-01-05 10:00:33 +00:00
Yuming Zhu
3ff5eaadd6 misc fixes 2024-01-05 10:00:30 +00:00
Yuming Zhu
87409499a3 draft builds 2024-01-05 10:00:29 +00:00
Jana Cupova
ce624342d8 Fix unittests for python-mock-5.x
Fixes: https://pagure.io/koji/issue/3967
2024-01-02 13:06:22 +01:00
Tomas Kopecek
abe0bc47fb Fix test
Test was not mocking properly log calls, creating log file at local
filesystem.
2023-12-08 11:16:36 +01:00
Mike McLean
7a6ab7aafa unit test fixes 2023-10-30 11:49:56 +01:00
Mike McLean
3a1ee5cddb fix unit tests
get_ready_hosts function was dropped
2023-10-03 15:23:02 +02:00
Jana Cupova
48b34b4680 Unify getSessionInfo output
Fixes: https://pagure.io/koji/issue/3793
2023-09-13 18:32:36 -04:00
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
60722acf09 Extend getUser to get user groups
Related: https://pagure.io/koji/issue/3854
2023-08-02 12:46:40 +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
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
Tomas Kopecek
0986c118fd fix unit tests 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
44742bc5f8 Drop default Null for renew_time in sql 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
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
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
fe0bf6dc86 Fix pkglist_add when extra_arches is None
Fixes: https://pagure.io/koji/issue/3744
2023-03-23 13:23:42 +01:00
Tomas Kopecek
7ceffe391c unify relative imports 2023-03-01 11:46:24 +01:00
Tomas Kopecek
b0e91e378c Move db/auth to kojihub module
Related: https://pagure.io/koji/issue/3666
2023-03-01 11:46:24 +01:00
Tomas Kopecek
90eb4138e2 fix test 2023-02-14 16:23:37 +01:00
Jana Cupova
d4c5d95968 Move class out of function and create to_hexdigest function 2023-02-06 13:17:33 +01:00
Jana Cupova
a79375789d Rewrite generator to IOStream 2023-02-06 13:17:33 +01:00
Jana Cupova
35b3e51fcc Use strict for rpm without signed copies or checksums + small review fixes 2023-02-06 13:17:33 +01:00
Jana Cupova
21a4cc4d70 Fix review 2023-02-06 13:17:33 +01:00
Jana Cupova
9bf31de75f Add checksum API
Fixes: https://pagure.io/koji/issue/3627
2023-02-06 13:17:33 +01:00
Jana Cupova
f3a25af238 Reset build processor values with specific value only
Fixes: https://pagure.io/koji/issue/3667
2023-01-25 11:17:23 +01:00
Jana Cupova
7515ee93a7 Next rewrite Select/Update queries
Fixes: https://pagure.io/koji/issue/3633
2023-01-09 11:05:17 +01:00
Tomas Kopecek
965153c7e9 basic tests for kojixmlrpc 2022-12-08 13:42:02 +01:00