Commit graph

2144 commits

Author SHA1 Message Date
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
Mike Bonnet
c41107ea51 pass build information consistently to the postImport callback
Always pass the build infomation as the "build" argument to the
postImport callback. For type='build' and type='image' imports,
this change is additive, and so is unlikely to affect existing
plugins. For type='cg' imports, this change makes the callback
consistent with the other callback types, and the CG import
mechanism is new enough that there is probably no code making
use of it yet.
2016-10-20 13:46:32 -07:00
Mike McLean
4bde148118 PR#154: ut: cli - test_watch_tasks / test_add_group / test_add_host ...
Merges #154
https://pagure.io/koji/pull-request/154
2016-10-13 00:49:57 -04:00
Yuming Zhu
d36d908795 remove renaming in cli 2016-10-13 00:48:59 -04:00
Yuming Zhu
aede0d752f change handle_remove_pkg to multicall 2016-10-13 00:48:59 -04:00
Yuming Zhu
f5d070384f change handle_block_pkg to multicall 2016-10-13 00:48:59 -04:00
Yuming Zhu
9c984a4f5d ut: cli - test_add_pkg 2016-10-13 00:48:59 -04:00
Yuming Zhu
f54bb557f6 ut: cli - test_rename_channel 2016-10-13 00:48:59 -04:00
Yuming Zhu
096179ac00 ut: cli - test_remove_channel 2016-10-13 00:48:58 -04:00
Yuming Zhu
8e5c80f86b ut: correct typos 2016-10-13 00:48:58 -04:00
Yuming Zhu
a4afb1119f ut: cli - test_remove_host_from_channel 2016-10-13 00:48:58 -04:00
Yuming Zhu
c100b57122 ut: cli - test_add_host_to_channel 2016-10-13 00:48:58 -04:00
Yuming Zhu
75c6d2d28b pep8 format for tests/test_cli 2016-10-13 00:48:58 -04:00
Yuming Zhu
63ecac12eb ut: cli - test_edit_host 2016-10-13 00:48:58 -04:00
Yuming Zhu
1814b11aff ut: cli - test_add_host 2016-10-13 00:48:58 -04:00
Yuming Zhu
afe91cd3d3 ut: cli - test_add_group 2016-10-13 00:48:58 -04:00
Yuming Zhu
cab2b2ee69 ut: cli - watch_tasks with KeyboardInterrupt
change display_tasklist_status() to _display_tasklist_status()
               display_task_results() to _display_task_results()
2016-10-13 00:48:48 -04:00
Yuming Zhu
2da05e9e59 ut: cli - test_watch_tasks 2016-10-13 00:40:21 -04:00
Mike McLean
d06d15bea3 PR#178: Expose optional rpm deps
Merges #178
https://pagure.io/koji/pull-request/178

Fixes #142
2016-10-13 00:30:59 -04:00
Mike McLean
386704a190 rename test spec file 2016-10-13 00:29:39 -04:00
Tomas Kopecek
82ea17e808 don't show optional deps if they are not supported by rpm 2016-10-13 00:29:39 -04:00
Tomas Kopecek
78d34d7b9d ignore optional deps for rpm < 4.12 2016-10-13 00:29:39 -04:00
Tomas Kopecek
1e103eb94d show optional deps in web ui 2016-10-13 00:29:39 -04:00
Tomas Kopecek
51eca7346e getRPMDeps exposes additional deps
Adding Conflicts, Suggests, Enhances, Supplements and Recommend header fields
in addition to original Requires, Conflicts, Obsoletes and Provides

relates: https://pagure.io/koji/issue/142
2016-10-13 00:29:39 -04:00
Mike McLean
0e664ad779 PR#184: Port Koji comps/group functionality from yum.comps to libcomps
Merges #170
https://pagure.io/koji/pull-request/170

Fixes #184
2016-10-13 00:16:40 -04:00
Yuming Zhu
3e04ab172b require python-libcomps on rhel7 2016-10-13 00:16:15 -04:00
Yuming Zhu
766f572503 add generate_out_calls for tests 2016-10-13 00:16:15 -04:00
Mike McLean
9693482ae2 skip some subtests of modules missing 2016-10-13 00:16:15 -04:00
Mike McLean
491210a2af require python-libcomps on Fedora 2016-10-13 00:16:15 -04:00