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
Mike McLean
0c8d4c8f07
implement caching in _fix_cb_args
2017-08-07 12:41:40 -04:00
Mike McLean
fe7c0b4052
unit test for encode_datetime
2017-08-07 12:41:40 -04:00
Mike McLean
ab928e6196
add unit test for convert_datetime decorator
2017-08-07 12:41:40 -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
Mike McLean
b405701b53
hub: rework match_kojifile() and add a unit test
2017-07-25 16:45:25 -04:00
Tomas Kopecek
64f2467fd0
kojifile component type
2017-07-25 12:37:46 -04:00