INNER CODE UNIT · Python
test_direct_mode_requires_cloudflare_dns
onedr0p/cluster-template · template/scripts/test_validate.py:131
def test_direct_mode_requires_cloudflare_dns():
raw = config_from("internal.toml", **{"ingress.mode": "direct"})
with pytest.raises(ConfigError, match="requires dns.provider 'cloudflare'"):
_load_raw(raw)
def test_schematic_id_inherits_from_talos_section():
raw = config_from("public.toml")
cfg = _load_raw(raw)
assert cfg.nodes[0].schematic_id == cfg.talos.schematic_id
assert cfg.nodes[1].schematic_id is not None
def test_partial_bgp_rejected():
raw = config_from("private.toml", **{"cilium.bgp.router_addr": "10.10.1.1", "cilium.bgp.router_asn": "64513"})
with pytest.raises(ConfigError, match="partially configured"):
_load_raw(raw)