Skip to content

Commit 68aeba3

Browse files
authored
switch planner to be the provider (#121)
1 parent 12ad605 commit 68aeba3

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

charms/planner-operator/charmcraft.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

charms/tests/integration/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

charms/tests/integration/test_planner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)