INNER CODE UNIT · Python
test_derived_fields_are_not_settable
onedr0p/cluster-template · template/scripts/test_validate.py:106
def test_derived_fields_are_not_settable():
raw = config_from("public.toml", cilium_bgp_enabled=True)
with pytest.raises(ConfigError, match="cilium_bgp_enabled"):
_load_raw(raw)
raw = config_from("public.toml", controller_count=3)
with pytest.raises(ConfigError, match="controller_count"):
_load_raw(raw)
def test_cert_sans_single_source():
raw = config_from("public.toml")
assert _load_raw(raw).cert_sans == ["127.0.0.1", "10.10.10.254", "example.com"]
raw = config_from("private.toml")
assert _load_raw(raw).cert_sans == ["127.0.0.1", "10.10.10.254"]
def test_ingress_mode_follows_dns_provider():
cloudflare = config_from("public.toml", ingress=None)