diff --git a/src/charm.py b/src/charm.py index 3a8bcf1f..f07a3fe0 100755 --- a/src/charm.py +++ b/src/charm.py @@ -127,7 +127,7 @@ def _is_ingress_correctly_configured(self) -> typing.Tuple[bool, str]: if not self.ingress_observer.is_ingress_ready(): return (False, "Missing ingress relation") if self.ingress_observer.get_path() != self.agent_discovery_ingress_observer.get_path(): - return (False, "ingress and agent-discovery-ingress must have the same prefix") + return (False, "ingress and agent-discovery-ingress must have the same path") return (True, "") def _on_jenkins_pebble_ready(self, event: ops.PebbleReadyEvent) -> None: diff --git a/tests/unit/test_charm.py b/tests/unit/test_charm.py index 459913aa..51c6d2c9 100644 --- a/tests/unit/test_charm.py +++ b/tests/unit/test_charm.py @@ -266,7 +266,7 @@ def test__on_jenkins_pebble_ready_ingress_routing_mode_mismatch( ), f"unit should be in {WAITING_STATUS_NAME}" assert ( jenkins_charm.unit.status.message - == "ingress and agent-discovery-ingress must have the same prefix" + == "ingress and agent-discovery-ingress must have the same path" )