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
Tomas Kopecek
bf0552e6de
use contextlib wrapper for older python-requests
2017-10-16 10:03:42 -04:00
Tomas Kopecek
7e2cb6b156
replace pycurl with requests
...
Related: https://pagure.io/koji/issue/600
2017-10-16 10:03:42 -04:00
Tomas Kopecek
5139031d85
tests for handling user groups
...
Related: https://pagure.io/koji/issue/603
Related: https://pagure.io/koji/issue/604
Related: https://pagure.io/koji/issue/607
2017-10-12 18:07:06 -04:00
Yuming Zhu
659a63a167
set timezone to US/Eastern when test_build_notification executing
...
following PR#628
2017-10-12 10:40:47 -04:00
Mike McLean
00e059c0c0
unit test for buildNotification task handler
2017-10-11 16:36:40 -04:00
Tomas Kopecek
c86f41ebcf
some tests for koji.auth
2017-10-11 12:14:15 -04:00
Tomas Kopecek
77339cc7a1
unit test
2017-10-11 01:05:41 -04:00
Franz Chih-Ping Hsieh
f44dc7d6e8
fix wrong mock.patch target
2017-10-11 00:39:47 -04:00
Mike McLean
a155551267
unit test for get_active_repos
2017-10-06 17:23:45 -04:00
Mike McLean
8c922d0de0
make cg info in policy data more consistent, and honor it in policy_get_cgs
2017-10-06 17:16:04 -04:00
Mike McLean
eb5f74b3c9
add a default option to check_volume_policy
2017-10-06 17:16:03 -04:00
Mike McLean
77d448d4ba
test_check_volume_policy.py
2017-10-06 17:16:03 -04:00
Mike McLean
aeb8ba4b12
apply volume_policy in import_build
2017-10-06 17:16:03 -04:00
Mike McLean
d0902f95ed
mock volume data in image/maven import tests
2017-10-06 17:16:03 -04:00
Mike McLean
9bcce9dc3e
pull in core volume policy functions from earlier branches
2017-10-06 17:16:03 -04:00
Mike McLean
df71995320
fix up test_import_image_internal.py
2017-10-06 17:16:03 -04:00
Mike McLean
d50169b7c4
fix up test_complete_maven_build.py
2017-10-06 17:16:03 -04:00
Mike McLean
92bb782581
fix up test_complete_image_build.py
2017-10-06 17:16:03 -04:00
Mike McLean
3a638314d8
maven/image import tests from first branch
2017-10-06 17:16:03 -04:00
Tomas Kopecek
6871f52ce8
ignore concrete timezone in tests
2017-10-06 17:10:12 -04:00
Tomas Kopecek
470addae97
fix formatTime for DateTime
...
Related: https://pagure.io/koji/issue/623
2017-10-06 17:10:12 -04:00
Tomas Kopecek
5ac2a6b8f0
display suid bit in web ui
...
Related: https://pagure.io/koji/issue/616
2017-10-05 10:38:48 -04:00
Tomas Kopecek
26474b72fc
drop importBuildInPlace call
...
"The importBuildInPlace call is an artifact of a particular bootstrap
event that happened a long time ago. It's not really documented or
recommended for current use."
Related: https://pagure.io/koji/issue/553
2017-09-26 17:32:16 -04:00
Tomas Kopecek
1891892c25
move spin-livemedia to build section
...
Related: https://pagure.io/koji/issue/586
2017-09-26 12:42:56 +02:00
Mike McLean
c457d07246
fix up url checks and extend unit tests for this issue
2017-09-19 14:43:23 -04:00
Tomas Kopecek
647978bb70
update test
2017-09-18 16:56:22 -04:00
Mike McLean
aa9a7b8841
avoid mocking isfile in unit test
2017-09-14 23:34:47 -04:00
Mike McLean
9bd9e07b42
unit tests for activate_session
2017-09-14 22:59:41 -04:00
Mike McLean
71089f449c
test case where rpm size header gives None, but no longsize header
2017-09-08 16:33:09 -04:00
Brendan Reilly
f9f41b46e6
Added better state handling, prefix option, tz handling, sorting to list-builds
2017-09-08 16:20:17 -04:00
Mike McLean
cea43dd458
correct range for i8 (64 bit signed)
2017-08-25 16:48:02 -04:00
Mike McLean
2dfbd7d998
another unit test
2017-08-25 16:48:02 -04:00
Mike McLean
ae4e4e7b51
unit test corner cases. xmlrpcplus coverage 100%
2017-08-25 16:48:02 -04:00
Mike McLean
5bcaf7cebe
include some unicode in unit test data
2017-08-25 16:48:02 -04:00
Mike McLean
6c1d2e637a
use python six to get xmlrpc_client in unit tests
2017-08-25 16:48:02 -04:00
Mike McLean
bce7c414ae
more xmlrpcplus unit tests
2017-08-25 16:48:02 -04:00
Mike McLean
2925e1cf93
some unit tests for xmlrpcplus
2017-08-25 16:48:02 -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
60b4ede377
unit test to check that version in docs matches version in spec
2017-08-24 23:37:12 -04:00
Yuming Zhu
ba087236dd
cli: using PROGRESSFUNCTION before libcurl 7.32.0 in download_file
2017-08-08 12:26:22 -04:00
Yuming Zhu
5df1e3e6e6
cli: do not print extra blank line when noprogress passed
2017-08-08 12:26:22 -04:00
Yuming Zhu
c730f2b3aa
fix cli unittest: test_download_task.py for py3
2017-08-08 12:26:22 -04:00
Yuming Zhu
dc0e0303f2
cli: unittest for download_file
2017-08-08 12:26:22 -04:00
Yuming Zhu
25c36a8b56
unittest for cli:download-task
2017-08-08 12:26:22 -04:00
Yuming Zhu
1e77866b35
cli: change download-task to regular curl download
...
also make 301/302 redirect acceptable by download-build & download-task
2017-08-08 12:26:22 -04:00
Mike McLean
2347aee632
runroot: friendlier parsing of path_subs config
2017-08-08 12:15:42 -04:00
Mike McLean
778d466387
unit test: check get_header_fields() with large size
2017-08-08 12:13:06 -04:00
Mike McLean
c2cb0f1184
fix test_krbv_disabled unit test
2017-08-08 11:39:40 -04:00