mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-09 10:16:29 +00:00
Add tests for add-ons map (#821)
This commit is contained in:
parent
0fab3e940a
commit
a5ecd597ed
@ -52,3 +52,11 @@ def test_valid_repository():
|
|||||||
config['image'] = custom_registry
|
config['image'] = custom_registry
|
||||||
valid_config = vd.SCHEMA_ADDON_CONFIG(config)
|
valid_config = vd.SCHEMA_ADDON_CONFIG(config)
|
||||||
assert valid_config['image'] == custom_registry
|
assert valid_config['image'] == custom_registry
|
||||||
|
|
||||||
|
|
||||||
|
def test_valid_map():
|
||||||
|
"""Validate basic config with different valid maps"""
|
||||||
|
config = load_json_fixture("basic-addon-config.json")
|
||||||
|
|
||||||
|
config['map'] = ['backup:rw', 'ssl:ro', 'config']
|
||||||
|
valid_config = vd.SCHEMA_ADDON_CONFIG(config)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user