INNER CODE UNIT · Python

test_gateways_may_leave_node_cidr_only_with_bgp

onedr0p/cluster-template · template/scripts/test_validate.py:158

def test_gateways_may_leave_node_cidr_only_with_bgp():
    with_bgp = config_from("public.toml", **{"gateways.external": "192.168.50.1"})
    _load_raw(with_bgp)  # public.toml enables BGP
    without_bgp = config_from("private.toml", **{"gateways.external": "192.168.50.1"})
    with pytest.raises(ConfigError, match="required unless BGP is enabled"):
        _load_raw(without_bgp)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…