Skip to content

Commit d790ba3

Browse files
Address failing integration tests
1 parent 335dedc commit d790ba3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/charm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ def __init__(self, *args):
213213
self,
214214
key=TEMPO_SERVER_CERT_KEY,
215215
certificates_relation_name=TRACING_CERTIFICATES_RELATION_NAME,
216+
peer_relation_name=PEER,
216217
sans=[socket.getfqdn()],
217218
)
218219
self.framework.observe(

tests/integration/test_tls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ async def test_enable_tls(ops_test: OpsTest) -> None:
114114

115115
# Relate with TLS charm
116116
logger.info("Relate to TLS operator")
117-
await ops_test.model.relate(app, TLS_APP_NAME)
117+
await ops_test.model.relate(f"{app}:certificates", f"{TLS_APP_NAME}:certificates")
118118

119119
# Wait for hooks start reconfiguring app
120120
# add as a wait since app state does not change

0 commit comments

Comments
 (0)