mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-08-28 12:29:55 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user