77 Commits

Author SHA1 Message Date
Dirk Müller
730630f06f
Use f-strings where possible 2024-05-07 21:52:32 +02:00
b9d0e32a54
Fixes for osc-1.x 2023-01-25 14:17:29 +01:00
Stephan Kulow
6f1314730c Stay with minversion 3.6 (and require module we already use elsewhere)
Fixes #2770
2022-03-25 09:43:56 +01:00
Stephan Kulow
e7c7a4097b Add test for remote services in factory-auto
Can't test it atm, need to have miniobs updated first
2022-03-24 10:31:34 +01:00
Stephan Kulow
db41ef3536 Add a test case for check_bugowner 2022-03-10 11:40:09 +01:00
Stephan Kulow
00af16cc80 tests: Create OSRT:FreezeTime for all tests 2022-03-04 09:48:06 +01:00
Stephan Kulow
aaab4af930 Target F401 - Unused imports 2022-02-18 18:29: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
27c364b0c9 Target E251 - Unexpected spaces around keyword
https://www.flake8rules.com/rules/E251.html
2022-02-18 17:28:13 +01:00
Stephan Kulow
d8f5d0874e Remove E201 - Whitespace after '('
https://www.flake8rules.com/rules/E201.html
2022-02-18 17:23:19 +01:00
Stephan Kulow
54079e949f Target E202 - Whitespace before ')'
https://www.flake8rules.com/rules/E202.html
2022-02-18 17:18:29 +01:00
Stephan Kulow
529d1dafae Target E302 - add two comment lines before class 2022-02-18 17:15:48 +01:00
Stephan Kulow
0561e06cb1 Target E261 - two spaces before inline comment 2022-02-18 16:39:16 +01:00
Stephan Kulow
5df665ccc5 Targeting E123 - Closing bracket does not match indentation
https://www.flake8rules.com/rules/E123.html
2022-02-18 15:52:47 +01:00
Stephan Kulow
f705a24db1 Only have one statement in a line E701
https://www.flake8rules.com/rules/E701.html
2022-02-18 13:42:57 +01:00
Stephan Kulow
1152d4c419 Remove bare excepts - https://www.flake8rules.com/rules/E722.html
The bare except in osc-credentials lead me to remove it and the scripts
using it
2022-02-18 12:03:56 +01:00
Josef Reidinger
8bef4c3cf2
check_source: Fix revert case for patch detection (fix#2640) 2021-09-23 10:58:23 +02:00
Stephan Kulow
a8f7146baf Remove E713 offense from flaker 2021-09-21 14:20:08 +02:00
Ancor Gonzalez Sosa
6540e8baad Test to showcase a submit request to SLE 2021-09-16 16:47:09 +02:00
Ancor Gonzalez Sosa
2213e2c89c Fix typo in documentation 2021-09-16 14:59:11 +02:00
Ancor Gonzalez Sosa
3d466b2b19 OBSLocal: functions to easily manage several review bots 2021-09-15 15:55:16 +02:00
Ancor Gonzalez Sosa
c9ff2171c3 OBSLocal: rename assertReviewBot to assertReviewScript
The function fully relies on the content of the script attribute and all other
functions that do so contain "script" in the name instead of "bot".
2021-09-15 15:08:11 +02:00
Ancor Gonzalez Sosa
8c1cac7d76 OBSLocal: improve documentation about scripts and asserts 2021-09-15 15:07:41 +02:00
Ancor Gonzalez Sosa
d31398e85a OBSLocal: small reorganization 2021-09-09 20:58:26 +02:00
Ancor Gonzalez Sosa
7f377f082f Extract useful stuff to a base OBSLocal.StagingWorkflow class 2021-09-09 20:58:26 +02:00
Ancor Gonzalez Sosa
ca3eb87931 OBSLocal: clarify some aspects of attributes management 2021-09-09 20:58:17 +02:00
Ancor Gonzalez Sosa
28c771927a Rename OBSLocal.StagingWorkflow to OBSLocal.FactoryWorkflow 2021-09-09 15:07:34 +02:00
José Iván López González
c74900f3b9 Create ProductVersion attribute 2021-09-07 13:17:04 +01:00
José Iván López González
352ce10c24 Remove attributes when destroying a workflow 2021-09-07 13:16:57 +01:00
Ancor Gonzalez Sosa
827ecacf45 Test to showcase a submit request to Factory 2021-08-19 16:29:24 +02:00
Ancor Gonzalez Sosa
b188340266 OBSLocal: top-level classes documentation to clarify the scope 2021-08-05 12:16:22 +02:00
Martin Vidner
b536914570 Point to osc.core to compare the APIs 2021-08-05 10:59:52 +02:00
Martin Vidner
73b91a6668 More improvements in the OBSLocal.py documentation 2021-08-05 10:18:25 +02:00
Martin Vidner
de330e42b3 In OBSLocal.StagingWorkflow.submit_package, package may not be None
did not make sense; i've checked all call sites
2021-08-05 10:17:33 +02:00
Ancor Gonzalez Sosa
f85c1b46b6 Some convenience extensions to OBSLocal 2021-08-04 17:25:46 +02:00
Ancor Gonzalez Sosa
038bfef67b OBSLocal: improved management of meta 2021-08-03 13:00:01 +02:00
Ancor Gonzalez Sosa
db9dbd4ecb Improvements in the OBSLocal.py documentation 2021-08-03 12:55:05 +02:00
Ancor Gonzalez Sosa
ab1baf665d Convert OBSLocal documentation to reStructured Text 2021-08-03 12:55:05 +02:00
Josef Reidinger
f16c803e7c document OBSLocal.py 2021-08-03 12:55:05 +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
ec88760187 Fix Flake E241
One more step towards white space sanity. Next group is E20x.
2019-12-10 08:46:02 +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
Stephan Kulow
8c5ee9257f Fix for frozen_enough test 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
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
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
5a5d60b5f6 tests/OBSLocal: provide randomString() for ensuring tools not name dependent. 2019-11-04 14:18:12 -06:00
Jimmy Berry
e7d8c9857e tests/OBSLocal: provide assertReviewBot() for review script workflows. 2019-11-04 14:18:12 -06:00