409 Commits

Author SHA1 Message Date
Jimmy Berry
f98a78c1ae Remove Vim config in favor of EditorConfig. 2018-01-23 00:48:00 -06:00
Jimmy Berry
6631598dc6 ReviewBot: comment_write(): provide bot_name_suffix parameter.
Cleanly allows for multiple comments from the same tool on one entity.
2018-01-19 08:50:32 -06:00
Jimmy Berry
61c83500d3 osclib/conf: allow devel projects to utilize tools that require conf. 2018-01-08 21:22:04 -06:00
Jimmy Berry
865750258c osclib/conf: order config defaults by priority.
Ensures that less specific patterns do not overtake more specific patterns
by allowing for priority based ordering.
2018-01-08 21:21:51 -06:00
Jimmy Berry
43dea82d28
Merge pull request #1319 from jberry-suse/ReviewBot-tests
tests/ReviewBot: add full set of comment_write() tests.
2018-01-04 07:59:35 -06:00
Jimmy Berry
4634d44c21 tests/ReviewBot_tests: add test_dryrun(). 2018-01-03 17:58:09 -06:00
Jimmy Berry
6408478581 tests/ReviewBot_tests: add test_only_replace_none(). 2018-01-03 17:52:27 -06:00
Jimmy Berry
9c44f78cdf tests/ReviewBot_tests: add test_workflow() complex test. 2018-01-03 17:52:14 -06:00
Jimmy Berry
0bf1c79e03 tests/ReviewBot_tests: add test_basic_logger() as initial test. 2018-01-03 17:51:52 -06:00
Jimmy Berry
23542327e1 tests/comment_test: add test_delete_nested(). 2018-01-03 16:40:29 -06:00
Jimmy Berry
20f73f49b2 tests/comment_test: add test_delete_batch(). 2018-01-03 16:25:43 -06:00
Jimmy Berry
f514b22828 tests/comment_test: add test_basic() against OBSLocal. 2018-01-03 16:25:28 -06:00
Jimmy Berry
89ebe7e67d tests/comment_test: move COMMENT* constants to file level. 2018-01-03 16:24:21 -06:00
Jimmy Berry
df8cd0f677 tests/OBSLocal: re-parse config and reset authentication when changing user.
Previously, the user was changed, but the authentication not reset. For
osc.core calls made within the text context they would still run as Admin
while separate processes (like scripts) would run as the desired user. As
such this was not an issue before since only scripts were meant to run as
a different user.
2018-01-03 16:22:13 -06:00
Jimmy Berry
f1462def6e tests/OBSLocal: setup test separate cookiejar. 2018-01-03 16:19:28 -06:00
Jimmy Berry
7778d056d7 tests/comment_tests: add test_comment_find(). 2018-01-03 14:34:05 -06:00
Jimmy Berry
2bedaf61f4 tests/comment_tests: add test_remove_marker(). 2018-01-03 14:33:38 -06:00
Jimmy Berry
344520c424 tests/comment_tests: add test_add_marker(). 2018-01-03 14:32:13 -06:00
Jimmy Berry
e3150a7626 tests/OBSLocal: invoke scripts using coverage to include in report. 2017-10-24 18:06:33 -05:00
Jimmy Berry
e0491e3aae tests/OBSLocal: split out execute() to provide osc and generic versions. 2017-10-24 18:05:48 -05:00
Jimmy Berry
476fbcd818 tests/OBSLocal: include assertOBS() to clarify OBS status before test.
Otherwise, end up with first OBS call in test failing which does not make
the issue as clear to understand.
2017-10-24 18:05:48 -05:00
Jimmy Berry
6faebca998 tests/OBSLocal: add email and include spaces in generated oscrc file. 2017-10-24 18:05:48 -05:00
Jimmy Berry
69a02fde86 tests/OBSLocal: rework OSCRC handling to use non-default file. 2017-10-24 18:05:38 -05:00
Jimmy Berry
c5cf186d18 tests/OBSLocal: add workaround for obs.py leakage. 2017-10-24 18:00:47 -05:00
Jimmy Berry
ed662be413 tests/devel_project: provide basic test against local OBS. 2017-10-24 17:55:31 -05:00
Jimmy Berry
35bbaf3a66 tests/OBSLocal: provide based class for testing against local OBS. 2017-10-24 17:52:42 -05:00
Jimmy Berry
443b432699 Merge pull request #1219 from jberry-suse/conffile-over-env
osclib/conf: prefer already parsed conffile over OSC_CONFIG env variable.
2017-10-24 15:15:33 -05:00
Jimmy Berry
f8225a3d48 osclib/conf: prefer already parsed conffile over OSC_CONFIG env variable.
This is consistent with expected behavior when using:
  osc.core.conf.get_config(override_conffile...)

Also removes the need to change the environment in OBS() which removes a
leak.
2017-10-23 23:03:24 -05:00
Jimmy Berry
4eecb9c5c0 tests/obs: move Cache.delete_all() after CACHE_DIR changed.
Otherwise, the real caches are cleared whenever tests are run.
2017-10-23 23:00:44 -05:00
d1c4801578 Another set of low-noise flake8 cleanups 2017-10-20 20:46:44 +02:00
3eb66257e8 Rename checknewer to checknewer.py and fix Flake8 fallout
This is a python script so as the majority of scripts in here
it should end in a .py suffix
2017-10-17 15:47:00 +02:00
35679d10b3 tests: fix testsuite for virtually accept 2017-10-02 17:15:55 +08:00
f10defda8c
Disable ppc64le for now in Tumbleweed stagings 2017-09-15 22:50:48 +02:00
Stephan Kulow
ad0633d60a Do not use direct flag for images
Products are too touchy - I had now 3 cases where the product would not
rebuild if a meta package changed
2017-09-01 13:53:44 +02:00
Jimmy Berry
bf2832aaf2 commentapi: provide truncate() and apply during add_comment(). 2017-08-23 15:59:22 -05:00
Jimmy Berry
85dbc57f12 stagingapi: provide dashboard_content_{load,save,ensure}() and utilize. 2017-07-27 23:52:58 -05:00
Jimmy Berry
c87c3b02e2 ReviewBot: update tests s/withhistory/withfullhistory/. 2017-07-12 15:31:30 -05:00
Jimmy Berry
af83befff3 Drop everything related to old osc-check_repo.py. 2017-07-12 15:31:30 -05:00
Jimmy Berry
dd68116c9c select_tests: fix after comment rework.
These tests are very ugly due to mocking.
2017-06-01 10:12:27 +02:00
Jimmy Berry
beb80534f0 unslect: --cleanup handle superseded request that is never replaced. 2017-05-15 17:52:28 -05:00
Jimmy Berry
3d7a7d487b obslock: unlock other user lock if force. 2017-05-08 21:47:12 -05:00
Jimmy Berry
f4523078b4 osc-staging: skip lock for observation commands. 2017-05-08 19:39:15 -05:00
28a0ee0c8e Merge pull request #881 from nilxam/map_rings_fix
Refactor map_ring_package_to_subject to support corner case
2017-05-05 06:55:32 -05:00
b7cea4615d Fix fixture for ring_pacakge get 2017-05-05 19:05:27 +08:00
Jimmy Berry
75ee7ef3e1 Merge pull request #872 from jberry-suse/unselect-cleanup-conditions
unselect: add conditions to obsolete filter used by --cleanup (along with refactor and tests).
2017-05-04 15:20:07 -05:00
Jimmy Berry
f70544ec81 unselect: extract filter conditions as config variables. 2017-05-04 15:08:41 -05:00
Jimmy Berry
931c8a2908 tests/unselect_tests: add test for cleanup fitler. 2017-05-04 15:08:13 -05:00
Jimmy Berry
412763bc81 tests/obs: define PROJECT as openSUSE:Factory. 2017-05-04 15:08:13 -05:00
Jimmy Berry
73f0ed895f obslock: cleanup hold logic and resolve inheriting an expired hold. 2017-05-03 20:37:03 -05:00
Jimmy Berry
cb282eaeac obslock-tests: correct class name. 2017-05-01 22:33:20 -05:00