diff --git a/tests/unit/test_charm.py b/tests/unit/test_charm.py index b8267a90..0ef0f1d5 100644 --- a/tests/unit/test_charm.py +++ b/tests/unit/test_charm.py @@ -604,7 +604,6 @@ def test_when_external_hostname_is_invalid_go_into_blocked_status(self): def test_lb_annotations(self): test_cases = [ ("key1=value1,key2=value2", {"key1": "value1", "key2": "value2"}), - ("key1=value1,key2", None), ("", {}), ( "key1=value1,key_2=value2,key-3=value3,", @@ -629,6 +628,7 @@ def test_lb_annotations(self): "kubernetes.io/description=this-is-valid,custom.io/key=value", None, ), # Reserved prefix used + ("key1=value1,key2", None), ("key1=value1,example..com/key2=value2", None), # Invalid domain format (double dot) ("key1=value1,key=value2,key3=", None), # Trailing equals for key3 ("key1=value1,=value2", None), # Missing key