Variant as a lookaside - configuration
Relates: COMPOSE-2425 Signed-off-by: Ondrej Nosek <onosek@redhat.com>
This commit is contained in:
parent
15ccd309fa
commit
cb3d36be5d
6 changed files with 280 additions and 6 deletions
|
|
@ -406,5 +406,27 @@ class RepoclosureTestCase(ConfigTestCase):
|
|||
["Failed validation in repoclosure_backend: 'fnd' is not one of %s" % options])
|
||||
|
||||
|
||||
class VariantAsLookasideTestCase(ConfigTestCase):
|
||||
def test_empty(self):
|
||||
variant_as_lookaside = []
|
||||
cfg = load_config(
|
||||
PKGSET_REPOS,
|
||||
variant_as_lookaside=variant_as_lookaside,
|
||||
)
|
||||
self.assertValidation(cfg)
|
||||
|
||||
def test_basic(self):
|
||||
variant_as_lookaside = [
|
||||
("Client", "Base"),
|
||||
("Server", "Client"),
|
||||
("Everything", "Spin"),
|
||||
]
|
||||
cfg = load_config(
|
||||
PKGSET_REPOS,
|
||||
variant_as_lookaside=variant_as_lookaside,
|
||||
)
|
||||
self.assertValidation(cfg)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue