Commit graph

268 commits

Author SHA1 Message Date
Franz Chih-Ping Hsieh
cb0d9ba37d add unittests for koji command line:
- call
 - hello / moshimoshi
 - maven-chain
 - resubmit
2017-10-30 16:13:40 -04:00
Franz Chih-Ping Hsieh
17f006511d add unittests for koji commands
- assign-task
 - wrapper-rpm
2017-10-30 16:13:40 -04:00
Tomas Kopecek
f4e3f7bccf safe_rmtree: more constraints on tests 2017-10-30 12:09:04 -04:00
Tomas Kopecek
b5b6c50e79 safe_rmtree: fix tests for backward-compatibility 2017-10-30 12:09:04 -04:00
Mike McLean
4c1396b955 update rmtree patch in unit test for recycle_build 2017-10-30 12:09:04 -04:00
Tomas Kopecek
5b23fb1629 consolidate safe_rmtree, rmtree and shutil.rmtree
shutil.rmtree should be avoided in almost all cases
safe_rmtree has its usage in tasks module, but innards are replaced with
koji.util.rmtree, so we don't have two implementations of same task

Related: https://pagure.io/koji/issue/648
2017-10-30 12:09:04 -04: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
Tomas Kopecek
fe4c83a229 typo fix + tests 2017-10-27 17:20:40 -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
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