From 023050fc00419c142f9d414aa8fd9a82ecd62bc0 Mon Sep 17 00:00:00 2001 From: Trung Thanh Phan Date: Sat, 16 Mar 2024 00:52:05 +0100 Subject: [PATCH] fix error message --- src/charm.py | 2 +- tests/unit/test_charm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" )