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
Tomas Kopecek
59b97d56f1
hub: deleteBuild should skip deleted builds
...
We can return ASAP from the call if build is already deleted.
Fixes: https://pagure.io/koji/issue/2475
2020-09-10 13:24:02 +02:00
Yu Ming Zhu
62f389d445
hub: unittest for multicall
2020-09-01 11:23:04 +02:00
Tomas Kopecek
f4d9194ff6
fix tests
2020-07-15 12:06:55 -04:00
Tomas Kopecek
50bcb6f3bc
replace md5 with sha256
2020-06-24 14:42:01 +02:00
Tomas Kopecek
51358cfd09
simplify py3 tests
2020-06-18 15:41:35 +02:00
Tomas Kopecek
0132313f92
replace logging.warn with warning
...
call is deprected in python 3.7
Fixes: https://pagure.io/koji/issue/2135
2020-04-22 13:47:15 +02:00
Tomas Kopecek
7970e78092
drop "keys" field
2020-04-07 12:27:56 +02:00
Tomas Kopecek
09da0aa1e4
fix typo
2020-04-07 12:27:56 +02:00
Tomas Kopecek
9ef57c0f82
new policy for dist-repo
...
Fixes: https://pagure.io/koji/issue/1660
2020-04-07 12:27:56 +02:00
Tomas Kopecek
f55c9e4d25
move admin force usage to assert_policy
...
Fixes: https://pagure.io/koji/issue/1930
2020-04-01 12:55:38 +02:00
Tomas Kopecek
beb59148a2
fix tests
2020-03-25 13:51:36 +01:00
Tomas Kopecek
4f8ece5881
fix test
2020-03-25 13:51:36 +01:00
Tomas Kopecek
5eafede60b
add-host work even if host already tried to log in
...
Fixes: https://pagure.io/koji/issue/1874
2020-03-25 13:51:36 +01:00
Yuming Zhu
0ea008ac8a
unittests: for edit-external-repo cmd and editTagExternalRepo API
2020-03-25 13:39:30 +01:00
Tomas Kopecek
ccb7a15010
log --force usage by admins
...
Log everything related to package listing and build tagging done by
admin users via --force flag.
Fixes: https://pagure.io/koji/issue/1930
2020-03-24 10:57:29 +01:00
Tomas Kopecek
e016e6624d
Emit user in PackageListChange messages
...
Fixes: https://pagure.io/koji/issue/1035
2020-02-04 09:22:43 +01:00
Tomas Kopecek
5494ea7632
check package list existence before blocking
...
Fixes: https://pagure.io/koji/issue/1177
2020-02-04 09:19:13 +01:00
Yu Ming Zhu
75f4c24bf2
hub: [distRepo] fix input tag arg for getBuildConfig call
...
fixes : #1630
2020-01-05 14:46:05 +00:00
Tomas Kopecek
aacb1ba0ce
use getBuildConfig
2020-01-02 11:26:20 +01:00
Tomas Kopecek
4d03794657
limit distRepo tasks per tag
...
Introduces 'distrepo.cancel_others` extra flag for tags. If enabled, new
distRepo task will cancel previous non-finished ones leaving only new
one.
Fixes: https://pagure.io/koji/issue/1630
2020-01-02 11:26:20 +01:00
Yu Ming Zhu
f63d94cbad
add tests for group and countOnly for QueryProcessor
2019-12-05 15:41:08 +01:00
Mike McLean
1344062bdd
fix typo and extend unit test to cover where it occurred
2019-11-19 12:01:14 -05:00
Mike McLean
727de7d953
support batch operation in BulkInsertProcessor
2019-11-19 12:01:14 -05:00
Tomas Kopecek
116bf7adbc
rename set_record to add_record
2019-11-19 12:01:14 -05:00
Tomas Kopecek
6de0700ac8
use BulkInsertProcessor for hub mass inserts
...
Fixes: https://pagure.io/koji/issue/1712
2019-11-19 12:01:14 -05:00
Yu Ming Zhu
ac91dc857b
policy test: ImportedTest - accept dict as build
...
and invalid build will raise `koji.GenericError`
fixes : #1796
2019-11-19 14:13:57 +01:00
Ken Dreyer
e800b1d5a6
hub: new addArchiveType RPC
...
Add a new hub method for inserting new archivetype records.
This closely matches addBType.
The purpose of this change is to make it easier to permit content
generators to import files with extensions that we have not defined in
the upstream packaged koji SQL file.
2019-11-19 09:06:47 +01:00
Tomas Kopecek
79a7da7c0b
CGUninitBuild for cancelling CG reservations
...
Fixes: https://pagure.io/koji/issue/1610
2019-10-16 10:03:46 +02:00