Commit graph

410 commits

Author SHA1 Message Date
Tomas Kopecek
6aaa6b3248 rename option 2022-02-07 10:07:26 +01:00
Tomas Kopecek
0449aa4829 fix tests 2022-02-07 10:01:21 +01:00
Tomas Kopecek
fb50dcc2ad fix tests 2022-02-07 09:58:01 +01:00
Jana Cupova
1252129136 Add description for permissions
Fixes: https://pagure.io/koji/issue/335
2022-01-31 10:21:58 +01:00
Mike McLean
7615b8aa85 actually execute the insert 2021-12-21 14:46:15 +01:00
Mike McLean
784a561505 another unit test 2021-12-21 14:46:15 +01:00
Mike McLean
8299bc78b5 unit tests for lookup_name 2021-12-21 14:46:15 +01:00
Mike McLean
5770b7e360 expand get_channel unit tests 2021-12-21 14:46:15 +01:00
Mike McLean
920f9b01be use name_or_id_clause in get_channel 2021-12-21 14:46:15 +01:00
Mike McLean
bcf423362b use name_or_id_clause in get_external_repos 2021-12-21 14:46:15 +01:00
Mike McLean
f87d1c3479 use name_or_id_clause in get_host 2021-12-21 14:46:15 +01:00
Mike McLean
5ee9c7396a use name_or_id_clause in get_tag 2021-12-21 14:46:15 +01:00
Mike McLean
e5fff34d0f fix unit tests 2021-12-21 14:46:15 +01:00
Jana Cupova
74ac826a87 Add limits on name values
Fixes: https://pagure.io/koji/issue/2117
2021-12-09 07:11:57 +01:00
Jana Cupova
c310d6692d Pytest instead of nose in unittest
Fixes: https://pagure.io/koji/issue/3140
2021-12-06 12:17:29 +01:00
Mike McLean
7ff917da90 update unit tests 2021-11-07 09:45:20 +00:00
Jana Cupova
ea695543f2 Add strict option to listTagged, listTaggedRPMS, listTaggedArchives
Fixes: https://pagure.io/koji/issue/1477
2021-11-04 12:16:43 +00:00
Jana Cupova
246bad05d6 Logging warning messages about deletedBuild or deletedRPMSig
Fixes: https://pagure.io/koji/issue/3018
2021-11-04 12:08:58 +00:00
Jana Cupova
46411b25a3 queryRPMSigs accepts RPM ID, NVRA and dict
Fixes: https://pagure.io/koji/issue/3061
2021-10-13 14:48:51 +02:00
Jana Cupova
7096bddc4f More repos in the get_external_repo returns and error
Fixes: https://pagure.io/koji/issue/3033
2021-10-05 11:05:58 +02:00
Tomas Kopecek
79d700b04d fix tests 2021-09-21 12:56:58 +02:00
Jana Cupova
efbf96fd1d Increase API unit tests 2021-09-20 12:39:42 +02:00
Patrick Uiterwijk
af25fc2e24 Support packages that are head-signed
This supports packages which do not have the RPMv3 signature scheme
(over the full RPM header+payload), but instead only have signatures
over the header (v4 scheme).
For the v4 scheme, the signature is only stored in SIGTAG_RSA (or
SIGTAG_DSA).

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2021-09-15 12:43:06 +02:00
Ken Dreyer
0adec2fd38 fix "an user" -> "a user" grammar in help text and errors 2021-08-24 10:54:03 -04:00
Jana Cupova
fb8cfc5678 Add delete-rpm-sig CLI and deleteRPMSig hub call
Fixes: https://pagure.io/koji/issue/2665
2021-07-21 13:43:09 +02:00
Jana Cupova
bc2a51350d Enable/disable channel
Fixes: https://pagure.io/koji/issue/1851
2021-07-20 10:33:50 +02:00
Jana Cupova
aec9fba121 Add CLI related to channels + add comments to channels
Fixes: https://pagure.io/koji/issue/1711
Fixes: https://pagure.io/koji/issue/1849
2021-06-29 14:44:47 +02:00
Yu Ming Zhu
11d88ee709 fix test by using datetime.timezone instead of psycopg2.tz
according to https://www.psycopg.org/docs/tz.html

fixes: #2926
2021-06-23 10:04:59 +00:00
Yu Ming Zhu
bf3ee393ce [policy] use "name" in result of lookup_name for CGs
fixes: #2915
2021-06-22 11:54:16 +02:00
Jana Cupova
12481d43d3 listBuilds returns empty list, not error when not existing
Fixes: https://pagure.io/koji/issue/1209
2021-06-22 11:53:43 +02:00
Tomas Kopecek
3518bc245c additional import for test for some OS versions 2021-06-21 10:36:31 +02:00
Jana Cupova
c4a2f01184 listBuilds accept also package name and user name
Fixes: https://pagure.io/koji/issue/1209
2021-06-08 16:01:42 +02:00
Tomas Kopecek
15c115e71e hub: policy test buildtag_inheritance
Fixes: https://pagure.io/koji/issue/2870
2021-05-24 10:38:01 +02:00
Jana Cupova
6a2c6e7586 Repo info with task id
Fixes: https://pagure.io/koji/issue/888
2021-04-19 15:15:10 +02:00
Jana Cupova
3d33e2e628 api: getVolume with strict
Fixes: https://pagure.io/koji/issue/1592
2021-04-19 15:11:41 +02:00
Jana Cupova
9dc0efd476 api getLastHostUpdate returns timestamp
fixes: https://pagure.io/koji/issue/2497
2021-03-29 11:23:06 +02:00
Jana Cupova
9c6483f197 API: createWinBuild with wrong win/build info
createWinBuild returns an error when win info is empty, is not a dict or
doesn't contain platform key

createWinBuild returns an error when build info is string and build is
not existing

Fixes: https://pagure.io/koji/issue/1103
Fixes: https://pagure.io/koji/issue/1102
2021-03-17 10:12:45 +01:00
Jana Cupova
36284cdea9 api: createMavenBuild wrong buildinfo/maveninfo
Fixes: https://pagure.io/koji/issue/1104
Fixes: https://pagure.io/koji/issue/1105
2021-03-16 15:25:15 +01:00
Jana Cupova
8a24a70159 api: createImageBuild non-existing build wrong buildinfo
createImageBuild returns an error when build is not existing and buildinfo
is not a dict

Fixes: https://pagure.io/koji/issue/1106
2021-03-16 13:08:57 +01:00
Jana Cupova
e784373000 Unify error messages
Unify error messages for CLI

Unify error messages for hub

Fixes: https://pagure.io/koji/issue/2720
2021-03-16 08:43:33 +01:00
Tomas Kopecek
66a1ef2ab7 tests: stop mocks in DBQueryTest setUp
Fixes: https://pagure.io/koji/issue/2758
2021-03-15 11:01:08 +01:00
Tomas Kopecek
96ae0ecef5 explicit encoding for text file operations
Fixes: https://pagure.io/koji/issue/2641
2021-01-26 13:36:25 +01:00
Tomas Kopecek
0809a924d7 fix tests 2020-11-30 17:35:32 +01:00
Tomas Kopecek
24bd694865 external repos can have specified arch list
Fixes: https://pagure.io/koji/issue/2538
2020-11-24 13:56:29 +01:00
Tomas Kopecek
5b8e87da7a hub: fix tests
Related: https://pagure.io/koji/pull-request/2544
2020-10-27 14:33:46 +01:00
Tomas Kopecek
b030b46f74 remove unittest2 2020-10-06 15:00:23 +02:00
Tomas Kopecek
0b5638ccec tests: fix test for getTag(..., blocked)
Related: https://pagure.io/koji/issue/2283
2020-10-06 13:59:14 +02:00
Tomas Kopecek
fedf3ee9f9 extend to config_inheritance 2020-10-05 12:35:07 +02:00
Tomas Kopecek
73aa437d45 flake8 fix 2020-10-05 12:34:59 +02:00
Tomas Kopecek
172c861442 hub: getBuildConfig - return inheritance info 2020-10-05 12:34:57 +02:00