Commit graph

216 commits

Author SHA1 Message Date
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
Yuming Zhu
4ff3da3b6b fix unitest import for el6 2019-10-15 09:16:43 +02:00
Yu Ming Zhu
3e124f685a fix editUser api for multiple kerberos support 2019-10-15 09:16:43 +02:00
Yu Ming Zhu
180cf894e2 hub: [get_group_members] return field is not named as alias 2019-10-15 09:16:43 +02:00
Brendan Reilly
fda86ce710 Added editUser api call
Fixes: #862
2019-10-14 10:14:50 +02:00
Yu Ming Zhu
cace979532 fix unittests 2019-10-10 16:37:57 +02:00
Yuming Zhu
473bc1460b hub: [getRPMFile] add strict behavior 2019-10-10 18:18:32 +08:00
Tomas Kopecek
0d6d9a51a6 swapped values in message
Related: https://pagure.io/koji/issue/1090
2019-10-03 16:03:03 +02:00
Tomas Kopecek
ca802b6e93 fix sql order in test 2019-09-30 15:47:56 +02:00
Yu Ming Zhu
2e8611254c fix unavailable id column 2019-09-30 15:47:56 +02:00
Yu Ming Zhu
24afeca663 hub: [groupListRemove] raise Error when no group for tag
Fixes: https://pagure.io/koji/issue/1090
2019-09-30 15:47:45 +02:00
Tomas Kopecek
bf5da96053 Fix lookup_name usage + tests
Fixes: https://pagure.io/koji/issue/1632
2019-08-28 15:46:02 +02:00
Mike McLean
f8b5f7da73 fix unit test 2019-08-15 17:00:51 -04:00
Tomas Kopecek
dfbe322222 deprecate sha1/md5_constructor from koji.util
These functions are now fully provided by hashlib. Commit removes their
usage from koji's codebase and leaves deprecation message in lib.

Final removal from lib is scheduled to 1.21.

Fixes: https://pagure.io/koji/issue/1487
2019-08-12 16:07:55 -04:00
Tomas Kopecek
f1d2ebc85c move cg_id to build table 2019-07-16 10:11:55 -04:00
Mike McLean
a81c088168 unused variables 2019-07-09 13:34:36 -04:00
Mike McLean
f90699603b fix test names 2019-07-09 13:34:36 -04:00