40 Commits

Author SHA1 Message Date
Fabian Vogt
8e4116defc Port from mock to unittest.mock
python3-mock no longer exists, use unittest.mock instead.
2023-03-01 16:57:37 +01:00
Stephan Kulow
c412dada22 CI: Split the tests in multiple runs
A test run of 40 minutes is just too much to wait for. So tag the long
running jobs to run in a special run
2022-03-07 18:48:43 +01:00
Stephan Kulow
f86579642b Target E501 - Line too long
https://www.flake8rules.com/rules/E501.html - but 79 characters is a
joke
2022-02-18 18:17:27 +01:00
Stephan Kulow
f38bd3a7ed Target E128 - Continuation line under-indented for visual indent
https://www.flake8rules.com/rules/E128.html
2022-02-18 17:35:33 +01:00
Stephan Kulow
529d1dafae Target E302 - add two comment lines before class 2022-02-18 17:15:48 +01:00
Stephan Kulow
579145b52c Target F841 - Remove unused variables 2022-02-18 17:01:38 +01:00
Stephan Kulow
cf2c496116 Introduce --remove-exclusion for staging select
The API errors with that option if a request is ignored, so we have to
support it.

Fixes #2374
2022-02-14 13:59:42 +01:00
Ancor Gonzalez Sosa
28c771927a Rename OBSLocal.StagingWorkflow to OBSLocal.FactoryWorkflow 2021-09-09 15:07:34 +02:00
Stephan Kulow
f28b520a92 Wipe all multibuild flavors for delete requests
Fixes #1899
2020-03-25 16:07:19 +01:00
Stephan Kulow
0cef959328 Work around OBS issue 8994
Instead of declining the by_project review, unselect the request and
decline the group review. This way we avoid the OBS problem
2020-03-18 22:40:47 +01:00
Stephan Kulow
345321f98d Don't take multibuild packages as subpackage of itself 2019-12-06 11:43:59 +01:00
Stephan Kulow
7113e5fedc Add test for selecting multibuild with 2 spec 2019-12-05 16:52:05 +01:00
Stephan Kulow
e3c7407386 Remove comments tests for selecting 2019-11-20 16:38:19 +01:00
Stephan Kulow
4db9df6aec Fix and test repository_path_expand on SLE12-SP5
The way OBS collapses repositories is different to what we did
2019-05-11 16:34:31 +02:00
Stephan Kulow
925032e0f9 Redo select tests to test package with multiple spec files 2019-05-06 22:38:57 +02:00
Stephan Kulow
9dcb403753 Merge vcrhelpers into OBSLocal
There are no more vcrs only a local OBS - even if not exported to
localhost
2019-05-05 10:49:05 +02:00
Stephan Kulow
8a7b65d505 Remove fake OBS in favor of using generated test data 2019-05-04 15:44:39 +02:00
Stephan Kulow
c11313b2dc Fix imports, python3 doesn't import from . 2019-04-30 14:29:16 +02:00
Stephan Kulow
e6bf5ccb7b Do no longer CC submitters in request comments
Submitters complain more and more about the spam they're getting from
staging projects - and we rather leave that weapon for actual feedback.

One especially annoying case is if a package is added to one staging project
and then later moved to another, the submitter will receive notifications
of all kind of bots and actions for both staging projects.
2018-10-04 09:52:49 +02:00
Jimmy Berry
6069245350 Remove SUSE copyright, warranty, and license headers.
Distinct copyrights were left as I do not wish to track down commit
history to ensure it properly documents the copyright holders. Also left
non-GPLv2 licenses and left bs_copy untouched as a mirror from OBS.

Already have a mix of with and without headers and even OBS does not place
on majority of files. If SUSE lawyers have an issue it will come up in
legal review for Factory.
2018-08-23 19:18:06 -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
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
Stephan Kulow
47fc31b93d move constructor in tests 2015-07-18 13:48:15 +02:00
Alberto Planas
c9d1e06ca8 Refactor configuration parameters into configuration file. 2015-02-19 11:39:05 +01:00
70631b27d9 Remove empty line. 2014-07-01 09:30:54 +02:00
414ad1390e Enable comments. 2014-06-27 09:50:08 +02:00
c5daf9a956 Remove fake oscs for testing. 2014-06-23 15:06:03 +02:00
Stephan Kulow
4b432b9bb1 fix the test suite for the subpkg tests
actually the biggest impact has my refusal to select into outdated prjs
2014-06-17 14:39:51 +02:00
Ancor Gonzalez Sosa
84193d62e8 Nicer comments (using the improved OBS markup) for (un)select 2014-06-17 11:39:59 +02:00
Ancor Gonzalez Sosa
507e50d633 Write only one comment per action
* For every 'select' or 'unselect' a single comment is written in
   every affected project
 * Previous automatic comments are deleted (as a first approach)
 * For more info, see https://progress.opensuse.org/issues/2564
2014-06-04 16:54:21 +02:00
77d1d18c48 Rewrite OBS mockup test, fixtures and tests. 2014-06-04 11:04:37 +02:00
Tomáš Chvátal
73084cf3dc Import freeze command visibly and fix select test. 2014-03-07 15:10:04 +01:00
Michal Hrusecky
eda367cd99 Fix yet another test 2014-03-07 15:05:22 +01:00
71170d7aff Check package matches in find_request_package() 2014-03-06 16:59:49 +01:00
Stephan Kulow
742d80d059 fix test by giving real results not fake 2014-03-06 10:44:52 +01:00
Michal Hrusecky
75d88686ec Improve select test suite 2014-03-04 16:35:30 +01:00
Stephan Kulow
57216c9819 fix some bugs in select 2014-03-04 16:05:20 +01:00
Michal Hrusecky
ba8dd50bd5 Implement a way to use custom statuses 2014-03-04 15:13:19 +01:00
Michal Hrusecky
a4455ac6d9 Little improvement to select test 2014-03-04 14:53:17 +01:00
Michal Hrusecky
673d08b8a3 Split select test to separate file 2014-03-04 12:45:44 +01:00