Jimmy Berry
5b5d917074
osclib/conf: provide cached get() method to supersede ReviewBot cache.
...
Given the slow migration of everything to the shared project config in
tools that change project contexts multiple times a consistent way of
accessing the config without forcing remote calls is needed.
2018-08-17 10:16:43 -05:00
Jimmy Berry
dace1c3997
tests/obs: improve format of default Config attribute.
2018-08-16 21:54:20 -05:00
Jimmy Berry
760ddf39e6
osclib/conf: decouple from StagingAPI and always fetch remote config.
...
As the remote config is no longer optional for SLE and is utilized by
openSUSE to the point were it is dangerous not to load the remote config
it should be required. Currently only certain users call apply_remote()
while this will make it built-in during construction and thus makes the
usage consistent and no longer require StagingAPI.
2018-08-16 21:53:40 -05:00
Björn Geuken
9552b16330
Rename superseded_by_id to superseded_by
...
OBS is going to drop the superseded_by_id attribute soon as it is just
an alias for superseded_by.
2018-08-01 10:49:10 +02:00
Stephan Kulow
ae97da90e5
Remove more of :DVD subproject handling
2018-07-05 20:43:07 +02:00
76c20501ab
tests: remove all subproject related part
2018-07-05 17:01:37 +08:00
Ludwig Nussel
9e59de4feb
stagingapi: add support for Backports
2018-07-03 15:25:56 +02:00
30c32af1aa
No longer have Ring2 and staging :DVD subproject
2018-06-29 18:29:47 +08:00
Ludwig Nussel
cc2fa88058
leaper: adjust for SLE 15SP1 and SLE12SP4
2018-06-28 14:24:35 +02:00
Stephan Kulow
0180de281a
Fix test cases
2018-06-15 13:16:46 +02:00
Jimmy Berry
a40ebc1544
ReviewBot: provide comment command override.
...
For example:
@leaper override accept
@repo-checker override decline
2018-03-06 16:42:12 -06:00
Jimmy Berry
78c87be188
osclib/util: project_list_family_prior(): provide last parameter.
2018-02-12 17:55:39 -06:00
Jimmy Berry
47bc54daae
osclib/util: project_list_family(): handle IBS SLE naming style.
2018-02-12 17:31:26 -06:00
Jimmy Berry
c57afdd258
osclib/util: provide project_list_family* and project_version().
2018-02-06 00:13:43 -06:00
Jimmy Berry
b1ec7efb3c
osclib/stagingapi: get_staging_projects(): utilize project_list_prefix().
2018-02-06 00:13:43 -06:00
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