Skip to content

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanhphan1147 committed Mar 15, 2024
1 parent 41eebd8 commit 023050f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)


Expand Down

0 comments on commit 023050f

Please sign in to comment.