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
Tomas Kopecek
e6e618d0bb
fix tests
2022-12-08 13:37:32 +01:00
Tomas Kopecek
556dddc9d0
wip
2022-12-08 10:04:31 +01:00
Tomas Kopecek
4916b368a5
wip
2022-12-08 09:58:14 +01:00
Tomas Kopecek
06350fa230
wip
2022-12-08 09:58:12 +01:00
Jana Cupova
fa7319c3b1
Fix fields type and dict of query.execute
2022-12-08 09:22:17 +01:00
Jana Cupova
a8dd469091
Replace _multiRow, _singleRow, _singleValue with QP
...
Fixes: https://pagure.io/koji/issue/3581
2022-12-08 09:22:17 +01:00
Jana Cupova
78dee69de4
Create DeleteProcessor class and use it
...
Fixes: https://pagure.io/koji/issue/3580
2022-12-08 09:18:55 +01:00
Tomas Kopecek
4c55498849
kojihash test
2022-12-05 13:32:26 +01:00
Jana Cupova
7897628159
Add active sessions web page
...
Fixes: https://pagure.io/koji/issue/3396
2022-11-10 10:17:51 +01:00
Tomas Kopecek
31dbf67960
readability fixes
2022-11-04 12:37:00 +01:00
Jana Cupova
b9166945f5
Rewrite DB query to Procesors
...
Fixes: https://pagure.io/koji/issue/3511
Fixes: https://pagure.io/koji/issue/3493
2022-11-04 12:37:00 +01:00
Jana Cupova
3a2894f0f1
Allow buildTagID and destTagID as string and dict in getBuildTargets
...
Fixes: https://pagure.io/koji/issue/3549
2022-11-02 14:22:37 +01:00
Tomas Kopecek
2daa71614e
fix tests according to pytests warnings
2022-10-24 10:40:50 +02:00
Jana Cupova
3999667a8c
Fix Makefile for RHEL7
2022-10-11 14:29:05 +02:00
Jana Cupova
1cfe6538db
Move database classes and functions from kojihub.py to koji/db.py
...
Move QueryProcessor, InsertProcessor, UpdateProcessor,
BulkInsertProcessor, _applyQueryOpts, get_event, _dml,
_fetchMulti, _fetchSingle, _singleValue, _multiRow, _singleRow
Update koji-sweep-db script to DB Processors
Fixes: https://pagure.io/koji/issue/3466
2022-10-11 14:29:05 +02:00
Jana Cupova
0478d2f040
Return data when query execute asList with transform
...
Fixes: https://pagure.io/koji/issue/3512
2022-09-26 09:57:35 +02:00
Jana Cupova
3fc402d5f2
Use nextval function instead of query 'SELECT nextval'
...
Fixes: https://pagure.io/koji/issue/3483
2022-09-05 10:42:11 +02:00