Configure image name per variant
Up to now it was possible to change the pattern for all images, but there are use-cases where different variants might want different names. For example there could be one main variant that should only have product name in the ISO filename, but addons should still be marked with variant name. JIRA: COMPOSE-3041 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
85bf5535bc
commit
fa752eb2b5
5 changed files with 72 additions and 3 deletions
|
|
@ -104,6 +104,24 @@ class ReleaseConfigTestCase(ConfigTestCase):
|
|||
checks.CONFLICTS.format('release_is_layered', 'False', 'base_product_version')])
|
||||
|
||||
|
||||
class ImageNameConfigTestCase(ConfigTestCase):
|
||||
def test_image_name_simple_string(self):
|
||||
cfg = load_config(
|
||||
PKGSET_REPOS,
|
||||
image_name_format="foobar",
|
||||
)
|
||||
|
||||
self.assertValidation(cfg, [])
|
||||
|
||||
def test_image_name_variant_mapping(self):
|
||||
cfg = load_config(
|
||||
PKGSET_REPOS,
|
||||
image_name_format={"^Server$": "foobar"},
|
||||
)
|
||||
|
||||
self.assertValidation(cfg, [])
|
||||
|
||||
|
||||
class RunrootConfigTestCase(ConfigTestCase):
|
||||
def test_runroot_without_deps(self):
|
||||
cfg = load_config(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue