Mike McLean
3d0791ff10
_direct_untag_build for consistency
2016-11-21 12:37:49 -05:00
Mike McLean
38a42e9997
stub test for _tag_build
2016-11-21 12:37:49 -05:00
Mike McLean
4c6992a090
unit test for create_tag()
2016-11-21 12:37:49 -05:00
Mike McLean
12d339d584
more pkglist...
2016-11-21 12:37:49 -05:00
Mike McLean
06692a23cc
also pkglist_add
2016-11-21 12:37:49 -05:00
Mike McLean
71f1b22dda
provide some lower-level functions sans access check
2016-11-21 12:37:49 -05:00
Mike McLean
d550938b50
PR#210 ut: cli - for handle_maven_build and some functions related in koji.utils
...
Merges #210
https://pagure.io/koji/pull-request/210
2016-11-21 11:00:08 -05:00
Yuming Zhu
4a5b2d0b21
ut: test case for koji.util.tsort()
2016-11-21 10:52:32 -05:00
Yuming Zhu
de5a34288a
ut: koji.utils - cases for related Maven build utils
2016-11-21 10:52:32 -05:00
Yuming Zhu
edbed0a167
ut: format testcases
2016-11-21 10:52:32 -05:00
Yuming Zhu
00fbfe274a
ut: cli - test_maven_build
2016-11-21 10:52:32 -05:00
Mike McLean
4dc18c7eea
Merge #195 protonmsg hub plugin
2016-11-15 18:15:28 +00:00
Mike Bonnet
f09d3115b0
add dependency on python-qpid-proton to koji-hub-plugins
...
python-qpid-proton is required by the protonmsg hub plugin
2016-11-04 11:59:51 -07:00
Mike Bonnet
17fac58281
protonmsg hub plugin
...
This plugin sends messages to a broker about events in the hub
using the proton library. This library supports the AMQP 1.0
protocol and is compatible with a wide variety of message
brokers. It queues all messages until the postCommit callback,
avoiding race conditions between message reception and database
transaction commit.
2016-11-04 11:59:51 -07:00
Mike McLean
f2e5d43b23
Merge #196 update copyright year and point the powered by link to pagure.io/koji
2016-10-28 17:32:09 +00:00
Dennis Gilmore
1f2aa41709
update copyright year and point the powered by link to pagure.io/koji
...
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2016-10-27 16:42:49 -05:00
Mike McLean
3828b8a26f
fix typo in assign-task command
2016-10-27 12:15:52 -04:00
Mike McLean
f3a8d6e1dc
PR#101 Added CG_Importer tests
...
Merge #101
https://pagure.io/koji/pull-request/101
2016-10-26 15:18:20 -04:00
Mike McLean
23778dceb7
update CG_Importer.get_build test
2016-10-26 15:14:22 -04:00
Joel Vasallo
f0918c7941
Leveraging koji.fixEncoding() and cleaned up spacing
2016-10-26 14:40:14 -04:00
Joel Vasallo
3d37674b23
Added test cases for get_build
2016-10-26 14:37:34 -04:00
Joel Vasallo
5204c757e0
Added more CG_Importer unit tests
2016-10-26 14:37:34 -04:00
Joel Vasallo
c012f78317
Added test for CG_Importer test_build
2016-10-26 14:37:34 -04:00
Joel Vasallo
65347a73f7
Added support for unicode in lookup_name
...
- Need to make sure to sanitize this properly in the future.
- read metadata as binary to be explicit
2016-10-26 14:37:34 -04:00
Joel Vasallo
e2b2276e94
Added tests for assert_cg_access
2016-10-26 14:34:39 -04:00
Joel Vasallo
5da1a7cd1e
Cleaned up test cases for get_metadata
2016-10-26 14:34:39 -04:00
Joel Vasallo
845026ad66
Added default.json and finished get_metadata tests
2016-10-26 14:34:39 -04:00
Joel Vasallo
8530353023
Added tests for get_metadata
...
- Fixed Typo
2016-10-26 14:34:39 -04:00
Joel Vasallo
d53b7c35a4
Added base test case for CG_Importer
2016-10-26 14:34:39 -04:00
Mike McLean
de4b141422
PR#90 optimize table joins for faster counting performance
...
Merges #90
https://pagure.io/koji/pull-request/90
2016-10-26 14:24:46 -04:00
Rayson Zhu
1eccf0574c
optimize table joins for faster counting performance
...
Tests shows that changing inner joins to left outer joins on non-null fields will significantly improve the counting performance on PostgreSQL server 9.X.
Only large tables (task, build, and rpminfo) are involved in this commit.
2016-10-26 14:19:55 -04:00
Mike McLean
61db89cae6
PR#67 add --logfile parameter, no behaviour changes if omitted
...
Merges #67
https://pagure.io/koji/pull-request/67
2016-10-26 14:13:12 -04:00
Karsten Hopp
f86dd31077
back out top broken changes
2016-10-26 13:57:49 -04:00
Karsten Hopp
ca15aff82b
add --logfile parameter, no behaviour changes if omitted
2016-10-26 13:57:49 -04:00
Mike McLean
26189d839b
PR#187 ut: cli - for handle_build / _unique_path / _upload_progress_callback / _running_in_bg ...
...
Merges #187
https://pagure.io/koji/pull-request/187
2016-10-26 13:44:51 -04:00
Yuming Zhu
2aec75f476
ut: cli - test_chain_build
...
cli.handle_chain_build: remove unused '--noprogress'
add '--quiet'
2016-10-26 13:41:12 -04:00
Yuming Zhu
ae90e278d0
remove unused code
2016-10-26 13:41:12 -04:00
Yuming Zhu
56e955819b
ut: cli - test_running_in_bg
2016-10-26 13:41:12 -04:00
Yuming Zhu
ebf4e88d7d
ut: cli - test_build
2016-10-26 13:41:12 -04:00
Yuming Zhu
dcb2d2336e
ut: cli - test_upload_progress_callback
2016-10-26 13:41:12 -04:00
Yuming Zhu
90d723b01a
ut: cli - test_unique_path
2016-10-26 13:41:12 -04:00
Mike McLean
0a3179a971
Merge #185 unit tests updates: policy, stray outputs, uncovered code
2016-10-25 21:17:10 +00:00
Mike McLean
b02b91ab06
drop commented debug code
2016-10-25 17:16:12 -04:00
Mike McLean
2817de2361
mock session.getAPIVersion in runroot tests
...
This was resulting in some stray warnings while running tests
2016-10-25 17:16:12 -04:00
Mike McLean
09f1b7d567
change stray stderr writes to logger.info on hub
2016-10-25 17:16:12 -04:00
Mike McLean
47ec115355
More policy tests -- 100% coverage for policy.py
2016-10-25 17:16:12 -04:00
Mike McLean
b4be256abd
no coverage for unreached code
2016-10-25 17:16:12 -04:00
Mike McLean
a1c8808544
ImportErrors are uncovered
2016-10-25 17:16:12 -04:00
Mike McLean
e225cfcea2
Merge #188 callback fixup
2016-10-25 20:46:13 +00:00
Mike Bonnet
238d1db039
provide more information to the pre/postRPMSign callback
...
The existing pre/postRPMSign callback was following the format of
the Task/BuildStateChange callbacks. This isn't necessary for a
one-time operation. This change removes the attribute/old/new
arguments, and replaces them with sigkey, sighash, build, and rpm
arguments. This is more clear, and should make writing handlers
for this callback simpler.
2016-10-20 13:48:07 -07:00