@pytest.mark.parametrize('image', ['local/dynamic-sidecar:development', 'local/dynamic-sidecar:production', 'itisfoundation/dynamic-sidecar:merge-github-testbuild-latest', 'itisfoundation/dynamic-sidecar:1.0.0', 'local/dynamic-sidecar:0.0.1', 'dynamic-sidecar:production', '/dynamic-sidecar:latest', '/local/dynamic-sidecar:latest'])
def test_dynamic_sidecar_settings(image: str) -> None:
    required_kwards = dict(DYNAMIC_SIDECAR_IMAGE=image, SIMCORE_SERVICES_NETWORK_NAME='test', TRAEFIK_SIMCORE_ZONE='', SWARM_STACK_NAME='', DYNAMIC_SIDECAR_PROXY_SETTINGS=DynamicSidecarProxySettings(), REGISTRY=RegistrySettings(REGISTRY_URL='http://te.st', REGISTRY_AUTH=True, REGISTRY_USER='test', REGISTRY_PW='test', REGISTRY_SSL=False))
    settings = DynamicSidecarSettings(**required_kwards)
    assert (settings.DYNAMIC_SIDECAR_IMAGE == image.lstrip('/'))
@pytest.mark.parametrize('image', ['local/dynamic-sidecar:development', 'local/dynamic-sidecar:production', 'itisfoundation/dynamic-sidecar:merge-github-testbuild-latest', 'itisfoundation/dynamic-sidecar:1.0.0', 'local/dynamic-sidecar:0.0.1', 'dynamic-sidecar:production', '/dynamic-sidecar:latest', '/local/dynamic-sidecar:latest'])
def test_dynamic_sidecar_settings(image: str) -> None:
    required_kwards = dict(DYNAMIC_SIDECAR_IMAGE=image, SIMCORE_SERVICES_NETWORK_NAME='test', TRAEFIK_SIMCORE_ZONE=, SWARM_STACK_NAME=, DYNAMIC_SIDECAR_PROXY_SETTINGS=DynamicSidecarProxySettings(), REGISTRY=RegistrySettings(REGISTRY_URL='http://te.st', REGISTRY_AUTH=True, REGISTRY_USER='test', REGISTRY_PW='test', REGISTRY_SSL=False))
    settings = DynamicSidecarSettings(**required_kwards)
    assert (settings.DYNAMIC_SIDECAR_IMAGE == image.lstrip('/'))