File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ requires:
3434 interface : postgresql_client
3535 optional : false
3636 limit : 1
37+
38+ provides :
3739 planner :
3840 interface : github_runner_planner_v0
3941
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ class AnyCharm(AnyCharmBase):
262262 def __init__(self, *args, **kwargs):
263263 super().__init__(*args, **kwargs)
264264 self.framework.observe(
265- self.on['provide -github-runner-planner-v0'].relation_joined,
265+ self.on['require -github-runner-planner-v0'].relation_joined,
266266 self._on_planner_relation_joined,
267267 )
268268
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ def test_planner_github_runner_integration(
9191 stdout = juju .cli ("show-unit" , unit , "--format=json" )
9292 result = json .loads (stdout )
9393 for relation in result [unit ]["relation-info" ]:
94- if relation ["endpoint" ] == "provide -github-runner-planner-v0" :
94+ if relation ["endpoint" ] == "require -github-runner-planner-v0" :
9595 assert "http://" in relation ["application-data" ]["endpoint" ]
9696 assert "secret://" in relation ["application-data" ]["token" ]
9797 break
You can’t perform that action at this time.
0 commit comments