Mike McLean
83015e643c
fakeclient: support multiple calls per key
2017-11-28 13:40:29 -05:00
Mike McLean
d97cf1f961
use fake client for watch_tasks testing
2017-11-28 13:40:29 -05:00
Mike McLean
cf19091d9c
cleanup
2017-11-28 13:40:29 -05:00
Mike McLean
0957874f8f
partial work
2017-11-28 13:40:29 -05:00
Tomas Kopecek
921fcae6fe
return xmlrpc-compatible list instead of set
2017-11-22 15:54:31 -05:00
Tomas Kopecek
f40fee4b7d
fix tests
2017-11-22 15:54:31 -05:00
Tomas Kopecek
cbbedd12b2
make query more secure
2017-11-22 15:54:31 -05:00
Tomas Kopecek
67149d3f91
don't send notifications to disabled users or hosts
...
Related: https://pagure.io/koji/issue/613
2017-11-22 15:54:31 -05:00
Yuming Zhu
14a24abbde
make grab_session_options to accept dict directly
...
fixes #663
2017-11-09 17:47:36 -05:00
Mike McLean
8f6d5d41cd
clean up tests
2017-11-09 17:40:52 -05:00
Mike McLean
44a17e5dfe
fix unit test
2017-11-09 17:40:52 -05:00
Mike McLean
40bf35c0f1
move tests to correct subdirs
2017-11-09 17:40:52 -05:00
Mike McLean
d8132543c5
move apply_argspec to koji.util
2017-11-09 17:40:52 -05:00
Mike McLean
bf9e7520f7
fix defaults handling in apply_argspec
2017-11-09 17:40:52 -05:00
Mike McLean
9e48e440e8
cleanup, more testing
2017-11-09 17:40:52 -05:00
Mike McLean
1bdf7a0f09
basic unit test
2017-11-09 17:40:52 -05:00
Mike McLean
4f97237a84
more tests
2017-11-09 17:40:52 -05:00
Mike McLean
8a8999e01c
partial work on apply_argspec function
2017-11-09 17:40:52 -05:00
Tomas Kopecek
e040745181
use six.StringIO everywhere
2017-11-09 17:27:23 -05:00
Franz Chih-Ping Hsieh
efe68e54df
- add unit test for koji/util: (coverage 58%->100%)
...
- minor fix: check if input string time is valid
2017-11-07 09:58:21 -05:00
Mike McLean
6bb32b699e
handle DateTime objects in encode_datetime
2017-11-02 15:59:18 -04:00
Tomas Kopecek
379ec8ae63
python-modernize -f lib2to3.fixes.file . -w
2017-10-31 16:05:16 +01:00
Franz Chih-Ping Hsieh
2096c6fce8
mock koji.commands._running_in_bg funtion to run unittest in background
2017-10-30 22:08:20 -04:00
Franz Chih-Ping Hsieh
85f489ee98
rename testcase class name
2017-10-30 16:13:40 -04:00
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