Mike McLean
4b55b62355
fix unit tests
2021-05-10 09:51:03 +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
Tomas Kopecek
c6e69b4f8b
backport py27 compatible file open with encoding
...
client and builder needs to run on py27 which doesn't support
open(encoding='utf-8')
Related: https://pagure.io/koji/issue/2641
2021-02-16 14:13:03 +01:00
Tomas Kopecek
b030b46f74
remove unittest2
2020-10-06 15:00:23 +02:00
Tomas Kopecek
bc478c2d68
cli: show log urls for failed tasks
...
Fixes: https://pagure.io/koji/issue/2188
2020-10-02 12:44:07 -04:00
Tomas Kopecek
8c253396e8
proton: persistent message queue
...
Fixes: https://pagure.io/koji/issue/2230
2020-09-30 10:14:49 +02:00
Tomas Kopecek
475bf17f05
fix tests
2020-03-30 15:10:30 +02:00
Tomas Kopecek
d1e055f1b2
limit size of extra field in proton msgs
...
Fixes: https://pagure.io/koji/issue/2017
2020-03-25 09:07:15 +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
Yu Ming Zhu
153ac4058d
fix test_runroot_builder tests
2019-10-15 09:14:16 +02:00
Tomas Kopecek
167eba3394
fail runroot task on non-existing tag
...
Fixes: https://pagure.io/koji/issue/1139
2019-05-22 13:12:19 -04:00
Mike McLean
9bcc710c7e
drop unused import in unit test
2019-03-04 09:57:15 -05:00
Mike McLean
89b6c01c47
fix unit test for runroot cli plugin
2019-03-04 09:57:15 -05:00
Tomas Kopecek
aefb2ddba7
fix py3 tests compatibility
2019-02-19 17:29:25 -05:00
Yu Ming Zhu
dc208d0555
fix invokings and unittests
2019-02-17 21:26:13 -05:00
Yu Ming Zhu
9ddae41877
using ConfigParser.read_file for PY3
2019-02-17 21:26:13 -05:00
Tomas Kopecek
15872b6c2c
fix runroot test
2019-02-12 16:09:19 -05:00
Tomas Kopecek
be535c2854
python-modernize -f libmodernize.fixes.fix_imports_six
2018-07-11 17:37:39 -04:00
Tomas Kopecek
7f6b717eb6
python-modernize -f libmodernize.fixes.fix_import
2018-07-11 17:37:39 -04:00
Tomas Kopecek
bcee24e50c
python-modernize -f libmodernize.fixes.fix_dict_six
2018-07-11 17:37:39 -04:00
Tomas Kopecek
c68396c059
Use unittest2 for rhel6 compatibility
...
Fixes: https://pagure.io/koji/issue/830
2018-06-07 09:39:39 -04:00
Mike McLean
1bf3bd22d7
protonmsg: unit test for unencodable data
2018-03-21 15:08:26 -04:00
Tomas Kopecek
3bfcc6a66e
json serialize additional types in protonmsg
...
Fixes: https://pagure.io/koji/issue/741
2018-03-21 15:08:26 -04:00
Mike McLean
cfca804acd
fix unit test
2018-02-28 08:19:29 -05:00
Tomas Kopecek
eaa158ab51
honour runroot --quiet for old-style call
...
Fixes: https://pagure.io/koji/issue/807
2018-02-19 12:26:45 -05:00
Tomas Kopecek
e040745181
use six.StringIO everywhere
2017-11-09 17:27:23 -05:00
Tomas Kopecek
f639b99a71
more runroot tests
...
Related: https://pagure.io/koji/issue/641
2017-10-30 13:20:37 +01:00
Mike McLean
81711cb8ac
clean up runroot unit test
2017-10-27 20:46:00 -04:00
Tomas Kopecek
21427c0e2c
unify runroot CLI interface
...
Related: https://pagure.io/koji/issue/564
2017-10-27 20:46:00 -04:00
Mike Bonnet
661dd3a70c
protonmsg: include the arch in the headers of rpm sign messages
...
Including the arch in the headers may be useful for filtering.
2017-10-25 12:01:08 -04:00
Mike Bonnet
c6a1e0952a
protonmsg: don't send rpm.sign messages when the sigkey is empty
...
When a build completes, we store the original, unsigned rpm headers
to disk. This results in the postRPMSign callback being called, and
a rpm.sign message being sent with an empty sigkey. The intended
sematics of the rpm.sign message is to notify a service when an rpm
has been signed. Therefore, we should not be sending a message when
the sigkey is empty.
2017-10-24 21:20:24 -04:00
Mike McLean
fcfa6789c4
unit test: get protonmsg coverage back up to 100%, ensure test config is read
2017-08-25 00:10:10 -04:00
Mike McLean
2347aee632
runroot: friendlier parsing of path_subs config
2017-08-08 12:15:42 -04:00
Mike McLean
e1bc3664ad
unit test: nonsequential path numbers in runroot config
2017-07-31 12:53:03 -04:00
Tomas Kopecek
032e2aaddd
allow some missing path sections in runroot config
...
Fixes: https://pagure.io/koji/issue/527
Before path sections were expected to have zero-based numbering. If some
item was missing, parsing ended there.
Now we are more benevolent and we pick all path\d+ sections and sort
them by ordering number.
2017-07-31 12:53:03 -04:00
Tomas Kopecek
c02eb739aa
update cli tests
2017-06-13 11:42:04 +02:00
Mike McLean
9508bb164c
no hub plugins changes either
2017-06-01 09:39:25 +02:00
Tomas Kopecek
b4c7433cc4
StringIO to six
2017-06-01 09:39:23 +02:00
Tomas Kopecek
8962c26080
python-modernize -f libmodernize.fixes.fix_import
2017-06-01 09:39:23 +02:00
Tomas Kopecek
b1da150c01
python-modernize -f libmodernize.fixes.fix_imports_six
2017-06-01 09:39:21 +02:00
Tomas Kopecek
7eb264eb4c
updated tests
2017-03-30 09:25:51 -04:00
Tomas Kopecek
78a87f725e
check that correct builder is used
2017-03-30 09:25:51 -04:00
Tomas Kopecek
b133f9c983
more runroot tests
2017-03-29 18:13:39 -04:00
Mike Bonnet
17fac58281
protonmsg hub plugin
...
This plugin sends messages to a broker about events in the hub
using the proton library. This library supports the AMQP 1.0
protocol and is compatible with a wide variety of message
brokers. It queues all messages until the postCommit callback,
avoiding race conditions between message reception and database
transaction commit.
2016-11-04 11:59:51 -07:00
Ralph Bean
3a1972e8da
Get the test suite working again.
2016-08-08 18:02:35 -04:00
Ralph Bean
b12905774f
Add a test of the runroot hub plugin.
2016-06-08 12:08:05 -04:00