Tomas Kopecek
3ee95baa5f
mock.module_setup_commands tag extra option
...
Fixes: https://pagure.io/koji/issue/2483
2022-02-07 09:33:14 +01:00
Jana Cupova
4c50c5fe92
Increase CLI unit tests
2022-02-07 09:20:58 +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
Ken Dreyer
dbacf1f985
protonmsg: allow users to specify router-specific topic prefixes
...
Prior to this change, Koji would always send messages with a hard-coded
topic:// prefix.
This works fine for ActiveMQ 5 and Artemis, but RabbitMQ does not
support that syntax. Instead, RabbitMQ brokers expect clients to use
topic addresses with a "/topic/" prefix.
The RFE for RabbitMQ to support "topic://" prefixes is
https://github.com/rabbitmq/rabbitmq-server/issues/2583
In the meantime, allow users to specify "topic://" or "/topic/"
explicitly in their configuration.
For backwards-compatibility, if the user chose neither "topic://" nor
"/topic/", prepend the "topic://" string, preserving the plugin's
existing behavior.
(Note: ActiveMQ 5 advertises its expected topic:// prefix in the initial
connection properties, so we could read that value dynamically, but
RabbitMQ and Artemis do not send an expected topic prefix connection
properties, so we just make the user choose explicitly here.)
2021-12-20 08:44:27 +01:00
Jana Cupova
18b136d386
Remove rename-channel CLI and use editChannel in renameChannel
...
Fixes: https://pagure.io/koji/issue/3035
2021-12-15 15:28:19 +01:00
Jana Cupova
c7fd26aeda
Deprecated remove-channel CLI and removeChannel API
...
Fixes: https://pagure.io/koji/issue/1206
2021-12-15 15:26:11 +01:00
Jana Cupova
5232ea5aa1
error function instead of print with sys.exit in CLI commands
...
Fixes: https://pagure.io/koji/issue/3112
2021-12-15 15:19:18 +01:00
Jana Cupova
8d7b9508f1
Add unit test for get_options
...
Fixes: https://pagure.io/koji/issue/3181
2021-12-15 15:12:12 +01:00
Jana Cupova
f528fd9ca4
CLI mock-config: when topdir option, remove topurl value
...
Fixes: https://pagure.io/koji/issue/2675
2021-12-13 17:00:22 +01:00
Jana Cupova
54055c8ed0
Deprecated --paths option in list-buildroot
...
Fixes: https://pagure.io/koji/issue/2473
2021-12-13 16:34:53 +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
Jana Cupova
c3e89500f2
Add and upfate CLI unit tests
...
Fixes: https://pagure.io/koji/issue/729
2021-11-29 15:39:10 +01:00
Tomas Kopecek
00c0a2326b
fix test
2021-11-18 11:28:33 +01:00
Yu Ming Zhu
ab87d70d55
PR#3090: Add option for UTC time in list-history
...
Merges #3090
https://pagure.io/koji/pull-request/3090
Fixes : #1136
https://pagure.io/koji/issue/1136
Show koji list-history information in UTC time
2021-11-11 07:49:13 +00: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
Tomas Kopecek
09a8fd71e5
backward compatibility for older hub
...
use proxyauthtype only if it is explicetly requested. Older hubs
don't know this option and will refuse login attempt.
2021-11-04 12:07:05 +00:00
Tomas Kopecek
252121c11f
propagate proxyauthtype in login calls
2021-11-04 12:07:05 +00:00
Jana Cupova
4c68011596
Add option for UTC time in list-history
...
Fixes: https://pagure.io/koji/issue/1136
2021-10-25 15:17:28 +02:00
Tomas Kopecek
1925b0c7b8
fix tests
2021-10-21 12:58:29 +02:00
Tomas Kopecek
8cc777c094
fix test
2021-10-20 15:20:14 +02:00
Tomas Kopecek
ba2e1e520b
basic security checks with bandit
...
Fixes: https://pagure.io/koji/issue/3042
2021-10-20 15:20:14 +02:00
Jana Cupova
9b235763cd
Add CLI unit tests
2021-10-18 13:01:54 +02:00
Jana Cupova
d3ef00fff4
Dist-repo with write-signed-rpm option
...
Fixes: https://pagure.io/koji/issue/2806
2021-10-18 13:00:11 +02: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
7ae27cc88a
fix typo
2021-09-29 11:05:50 +02:00
Tomas Kopecek
a92a52473a
tests: fix version test
...
Removed hard-coded version expectations.
Fixes: https://pagure.io/koji/issue/3053
2021-09-29 10:03:21 +02:00
Tomas Kopecek
79d700b04d
fix tests
2021-09-21 12:56:58 +02:00
Jana Cupova
3b8b231a07
Add unit tests notifications, list-channels
2021-09-20 13:26:21 +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
Tomas Kopecek
5d86608931
Honour --force-auth for anonymous commands
...
Fixes: https://pagure.io/koji/issue/2657
2021-09-14 13:26:11 +02:00
Tomas Kopecek
c41559f1e9
move btypes from headers to body of proton message
...
Fixes: https://pagure.io/koji/issue/3017
2021-09-14 09:28:21 +02:00
Ken Dreyer
f6aeec9265
add warnings for remove-sig
...
Update all references to remove-sig to explain that admins should not
normally run this.
2021-09-10 11:13:39 -04:00
Jana Cupova
e48d813433
Add all types to docs latest-build and readTaggedBuilds
...
Fixes: https://pagure.io/koji/issue/2953
2021-09-08 17:17:23 +02:00
Jana Cupova
43421a8e76
CLI channels, hosts methods works with older hub
...
Fixes: https://pagure.io/koji/issue/2990
2021-08-30 09:24:22 +02:00
Ken Dreyer
0adec2fd38
fix "an user" -> "a user" grammar in help text and errors
2021-08-24 10:54:03 -04:00
Yu Ming Zhu
cdbebd963d
[hub] add non-host evalPolicy API
2021-08-16 17:55:26 +00:00