allow to use multiple upload and report targets with the same name

In this feature target option must allways point to section name instead
of type. Type will be read from type option. In case if type option is
not presented it will try to check if section with architecture exists
(e.g. target = email, section = email:x86_64); if it does, the correct
section name and type will be used. Otherwise it will check if the
specified section exists; if it does, seection name and type will be
returned.
This commit is contained in:
2021-10-17 05:33:23 +03:00
parent a5a99ec0b8
commit 56b77a84a6
17 changed files with 274 additions and 131 deletions

View File

@ -20,7 +20,7 @@ def github(configuration: Configuration) -> Github:
:param configuration: configuration fixture
:return: github test instance
"""
return Github("x86_64", configuration)
return Github("x86_64", configuration, "github:x86_64")
@pytest.fixture
@ -50,7 +50,7 @@ def rsync(configuration: Configuration) -> Rsync:
:param configuration: configuration fixture
:return: rsync test instance
"""
return Rsync("x86_64", configuration)
return Rsync("x86_64", configuration, "rsync")
@pytest.fixture
@ -60,7 +60,7 @@ def s3(configuration: Configuration) -> S3:
:param configuration: configuration fixture
:return: S3 test instance
"""
return S3("x86_64", configuration)
return S3("x86_64", configuration, "customs3")
@pytest.fixture