331 Commits

Author SHA1 Message Date
Josef Reidinger
12dc09c900 Add test for inherit maintainer role
Inherited maintainer role is explicitelly ignored to force setting
of maintainer to required user. The test verify behavior and
allows easier future changes of such behavior.
2021-07-28 16:48:39 +02:00
Josef Reidinger
75226473fc Avoid creation of duplicate add_role requests (fixes #2609) 2021-07-28 09:51:28 +02:00
Imobach González Sosa
7b59f33442
Merge pull request #2601 from imobachgs/maintainers-check
Check for maintainers in the source project
2021-07-16 09:08:53 +01:00
Imobach González Sosa
00ea25e609
Properly handle required-source-maintainer when it is group
Co-authored-by: Knut Alejandro Anderssen González <kanderssen@suse.com>
2021-07-14 10:52:09 +01:00
Imobach González Sosa
632cbf92bc
Updates from code review 2021-07-13 16:30:53 +01:00
Josef Reidinger
156afbe363 Make test CWD agnostic 2021-07-13 13:06:51 +02:00
Ancor Gonzalez Sosa
1e868aa7ee
Check for maintainers in the source project
* It introduces a new configuration parameter 'required-source-maintainer'.
* If defined, it is expected to be a maintainer of the devel project.
* If that's not the case, the request is declined and an add_role
  request is created.

Co-authored-by: Ancor Gonzalez Sosa <ancor@suse.de>
Co-authored-by: Knut Alejandro Anderssen González <kanderssen@suse.com>
2021-07-13 11:41:13 +01:00
Imobach González Sosa
d8822dcfdc
Add descriptions to check_source tests 2021-07-13 11:39:27 +01:00
Imobach González Sosa
b9044fc11a
Test accepting a package from a devel project 2021-07-08 14:38:09 +01:00
Ancor Gonzalez Sosa
a5a56061a7
Initial testcase for check_source.py 2021-07-08 14:38:09 +01:00
Dirk Mueller
0dda4a83d0 Support Leap:15.3:ARM:Images as well
We need this to run TTM against :images and properly determine the
pseudometa package.
2021-06-07 15:16:29 +02:00
0acbe1bfc9 Add Leap:15.3:ARM to test armv7 Step:15 2021-02-25 11:03:48 +01:00
ad5a9af1a7 Leap 15.3: Jump project discontinued but Leap 15.3 started 2020-11-02 16:14:06 +08:00
94d00c949e fix tests 2020-08-11 15:15:24 +08:00
Fabian Vogt
3ec840fb22 Fix flake error F541 in tests/origin_tests.py 2020-06-08 11:20:19 +02:00
Stephan Kulow
a2eeea143e Fix httpretty using tests
Looks like OSC in Tumbleweed changed behaviour of internal functions
2020-05-02 10:50:59 +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
334862a372 Adopt fixture to changes in obs' xml output 2020-03-16 08:05:14 +01:00
fc77bd123d
Staging accept: No longer set the version in .product files on accept
In the past, we had a dashboard reading the version of the current source from the .product file.
Not immediately updating this version after a checkin would have been confusing as the dashboard would
have shown incorrect/outdated information.

the new dashboard (https://factory-dashboard.opensuse.org) reads the source version directly from the
attribute, so this mis-match is eliminated.

The .product files will be updated by pkglistgen in due time.
2020-01-31 14:49:33 +01:00
ad06348dcf More flake8 cleanups 2019-12-10 12:50:57 +01:00
ea3b07568c Fix E203
This fixes incorrect whitespacing inside dictionaries.
2019-12-10 08:54:32 +01:00
ec88760187 Fix Flake E241
One more step towards white space sanity. Next group is E20x.
2019-12-10 08:46:02 +01:00
Stephan Kulow
345321f98d Don't take multibuild packages as subpackage of itself 2019-12-06 11:43:59 +01:00
Stephan Kulow
8b0a0324b4 Extend tests for accept command 2019-12-05 16:52:05 +01:00
Stephan Kulow
7113e5fedc Add test for selecting multibuild with 2 spec 2019-12-05 16:52:05 +01:00
32ad0adc2d Fix all E22x errors
This cleans up white spaces around various kinds of operators to be
consistent.
2019-11-27 11:08:06 +01:00
8483632683 Some flake8 improvements
Was bored while waiting for a test run to finish. The rule is
that two empty lines distinguish larger blocks and shouldn't be
used between functions or within functions.
2019-11-27 10:40:15 +01:00
Stephan Kulow
13238d280f Reenable the move test 2019-11-26 15:56:00 +01:00
Stephan Kulow
8576f22876 Fix test suite for accept 2019-11-24 19:21:14 +01:00
Stephan Kulow
529c5623a6 Remove nonfree handling
Prepare NonFree as onlyadi project, so it can have its own staging workflow
2019-11-21 14:49:29 +01:00
Stephan Kulow
e3c7407386 Remove comments tests for selecting 2019-11-20 16:38:19 +01:00
Stephan Kulow
fd1871b99e Fix check_tests - and reduce what we test there 2019-11-20 16:10:30 +01:00
Stephan Kulow
d014002bc3 Disable move test for now
Waiting for https://github.com/openSUSE/open-build-service/issues/7360
2019-11-20 16:10:30 +01:00
Stephan Kulow
8c5ee9257f Fix for frozen_enough test 2019-11-20 16:10:30 +01:00
Stephan Kulow
448795b3fc Fix test_add_sr not to add twice
Once a request is staged, the API refuses to stage again - and avoiding
this in our code is just wasting time, so stop testing it
2019-11-20 16:10:30 +01:00
Stephan Kulow
f3e69183a6 Fix rm_from_project test
The API automatically adds the staging manager back, so the request
won't become 'new'
2019-11-20 16:10:30 +01:00
Stephan Kulow
088ba65690 Adopt accept_tests: Selecting no longer leaves a comment 2019-11-20 16:10:30 +01:00
Stephan Kulow
12d6b22895 Setup staging workflow in tests 2019-11-19 08:04:11 +01:00
Jimmy Berry
03a954aebd
Merge pull request #2307 from jberry-suse/origin-manager-automatic-updates-initial-blacklist
osclib/origin: origin_update(): support blacklist patterns for initial updates.
2019-11-08 15:43:46 -06:00
Jimmy Berry
5f937588e6 osclib/origin: origin_update(): support blacklist patterns for initial updates. 2019-11-08 13:19:04 -06:00
Jimmy Berry
d02f06898c origin-manager: indicate the decision may be overridden via command. 2019-11-07 15:39:23 -06:00
Jimmy Berry
c34a58061b tests/OBSLocal: randomString() use fixed length of 2.
Reduce random consumption as test environment lacks input.
2019-11-07 10:16:17 -06:00
Jimmy Berry
57ebf5a5fe tests/OBSLocal: Request: print message once created. 2019-11-07 10:16:17 -06:00
Jimmy Berry
e771dc653f osclib/origin: provide automatic update mode controls. 2019-11-07 08:46:02 -06:00
Jimmy Berry
931b760456
Merge pull request #2287 from jberry-suse/origin-manager-new-package-submission
origin-manager: submit new packages from origins with automatic_updates_initial enabled.
2019-11-05 09:04:01 -06:00
Jimmy Berry
2b68e743df tests/origin_tests: provide test for new package submission. 2019-11-05 08:23:40 -06:00
Stephan Kulow
31ee1047cd Remove dependency from cache to config
Getting the right config depends on too many things that cache.py can't
know - so just rely on environment variables instead

Fixes #2289
2019-11-05 11:29:04 +01:00
Jimmy Berry
72409c5432 tests/origin_tests: provide split product origin tests. 2019-11-04 14:18:12 -06:00
Jimmy Berry
ad0d0b28ea tests/origin_tests: provide devel origin tests. 2019-11-04 14:18:12 -06:00