Commit graph

306 commits

Author SHA1 Message Date
Mike McLean
c3f5b5b124 unit tests for gssapi auth 2017-12-07 18:16:03 -05:00
Yuming Zhu
377fecbbfc fix unit test - test_formatChangelog 2017-12-06 14:08:37 +08:00
Mike McLean
8a4c75ee7f rename fixPrint->_fix_print and add a docstring 2017-12-06 13:32:51 +08:00
Mike McLean
1da06800cf adjustments to test_formatChangelog 2017-12-06 13:32:51 +08:00
Yuming Zhu
3464adae2e cli: fix changelog encode for PY3
relates [issue#577](https://pagure.io/koji/issue/577)
2017-12-06 13:32:29 +08:00
Tomas Kopecek
47164a9d58 test intermediate calls 2017-12-05 10:28:24 -05:00
Mike McLean
cb64ee6bd8 taskWaitResults: more unit tests 2017-12-05 10:28:24 -05:00
Mike McLean
88fb2a9b8c add unit test for host.taskWaitResults 2017-12-05 10:28:24 -05:00
Franz Chih-Ping Hsieh
ec99419f3b Add unit tests for koji image_build command 2017-11-30 15:02:00 -05:00
Franz Chih-Ping Hsieh
f16f26be63 Add unit tests for koji commands 2017-11-30 15:02:00 -05:00
Franz Chih-Ping Hsieh
d331fdfa11 refactory CLI unittests including:
- introduce new CliTestCase class
 - implement useful assert functions in CliTestCase
2017-11-30 15:02:00 -05:00
Mike McLean
d38a2f30da py3 fixes for watch-tasks unit tests 2017-11-28 13:40:29 -05:00
Mike McLean
704e542b65 test_watch_tasks_with_keyboardinterrupt() 2017-11-28 13:40:29 -05:00
Mike McLean
2b0146a0ba another watch-tasks test 2017-11-28 13:40:29 -05:00
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