Commit graph

522 commits

Author SHA1 Message Date
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
Christopher O'Brien
52088adbb1 make tests work 2019-10-31 11:40:16 +01:00
Yu Ming Zhu
f66bb81a85 cli: fix typo in edit-user cmd
fixes: #862
2019-10-22 10:44:55 +00:00
Tomas Kopecek
79a7da7c0b CGUninitBuild for cancelling CG reservations
Fixes: https://pagure.io/koji/issue/1610
2019-10-16 10:03:46 +02:00
Tomas Kopecek
b96f828e7b fix test for RHEL6 2019-10-15 12:55:14 +02:00
Yuming Zhu
4ff3da3b6b fix unitest import for el6 2019-10-15 09:16:43 +02:00
Yu Ming Zhu
088767a58c cli: fix edit-user command for multiple kerberos support 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
Yuming Zhu
b2b8d5f9cc strict per item in config_files 2019-10-15 09:14:16 +02:00
Yu Ming Zhu
153ac4058d fix test_runroot_builder tests 2019-10-15 09:14:16 +02:00
Yu Ming Zhu
4c1928f377 extract read_config_files util for config parsing 2019-10-15 09:14:16 +02:00
Brendan Reilly
fda86ce710 Added editUser api call
Fixes: #862
2019-10-14 10:14:50 +02:00
Brendan Reilly
bc7250f312 Added CLI counterpart to groupListRemove
Fixes: #893
2019-10-11 15:54:08 -04: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
Mike McLean
f0cdeaab07 tests for joinpath 2019-10-09 08:41:15 -04: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
Yuming Zhu
2956319c39 update docstr and do not swallow other errno 2019-09-30 15:33:01 +02:00
Yu Ming Zhu
589eb2dc9c [lib] ensuredir: normalize directory and don't throw error when dir exists 2019-09-30 15:33:01 +02:00
mprahl
a552a248db Allow ClientSession objects to get cleaned up by the garbage collector
Fixes #1652
2019-09-20 11:51:44 -04:00
Tomas Kopecek
bf5da96053 Fix lookup_name usage + tests
Fixes: https://pagure.io/koji/issue/1632
2019-08-28 15:46:02 +02:00
Brendan Reilly
95875f0c80 fix tests for clone tag 2019-08-28 15:00:34 +02:00
Mike McLean
f8b5f7da73 fix unit test 2019-08-15 17:00:51 -04:00
Jana Cupova
4f350cc26e Unit tests download_file with errors status code 2019-08-14 14:21:43 -04:00
Tomas Kopecek
16fb3ad162 enable dnf_warning in mock config
Fixes: https://pagure.io/koji/issue/1594
2019-08-12 18:02:36 -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
Tomas Kopecek
9524718a91 fix tests for CLI 2019-07-16 10:11:55 -04:00
Mike McLean
546d7fb4e8 fix whitespace 2019-07-11 15:18:15 -04:00
Yu Ming Zhu
1ec14ec5dc adjust cli plugin config description 2019-07-11 15:18:15 -04:00
Yuming Zhu
ded43dec53 cli: also load plugins from ~/.koji/plugins
- add plugin_path in koji.conf
- add `--plugin-paths` in cli arguments

fixes: #887
2019-07-11 15:18:15 -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
Tomas Kopecek
61c015357b use list for db instead of set 2019-07-09 13:34:36 -04:00
Tomas Kopecek
b7d273b2fa API/CLI/tests for notification blocks 2019-07-09 13:34:36 -04:00
Tomas Kopecek
e4c37dfffb notification optout tests
Related: https://pagure.io/koji/issue/1204
2019-07-09 13:34:36 -04:00
Tomas Kopecek
6fd33bfd1f use LANG=C for running tests comparing human-readable output 2019-06-26 15:58:48 -04:00
Mikolaj Izdebski
de161628b0 Allow hub policy to match version and release
Fixes https://pagure.io/koji/issue/1134

Based on work from https://pagure.io/koji/pull-request/1135
2019-06-26 11:44:23 -04:00
Mike McLean
14b25b1f4b use multicall in a few more places in the cli 2019-06-17 10:19:12 -04:00
Mike McLean
37e8afcf8c support batch option in MultiCallSession 2019-06-17 10:19:12 -04:00
Mike McLean
78e3f48d8b expand unit test a little 2019-06-17 10:19:12 -04:00