Skip to content

Commit 180d922

Browse files
committed
switch github-runner to be the requirer
1 parent a90b3a5 commit 180d922

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

charmcraft.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ links:
2525
provides:
2626
cos-agent:
2727
interface: cos_agent
28-
planner:
29-
interface: github_runner_planner_v0
3028

3129
requires:
3230
debug-ssh:
@@ -36,6 +34,8 @@ requires:
3634
mongodb:
3735
interface: mongodb_client
3836
limit: 1
37+
planner:
38+
interface: github_runner_planner_v0
3939

4040
config:
4141
options:

tests/integration/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ class AnyCharm(AnyCharmBase):
988988
def __init__(self, *args, **kwargs):
989989
super().__init__(*args, **kwargs)
990990
self.framework.observe(
991-
self.on["require-github-runner-planner-v0"].relation_changed,
991+
self.on["provide-github-runner-planner-v0"].relation_changed,
992992
self._on_planner_relation_changed,
993993
)
994994

tests/integration/test_charm_no_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ async def test_planner_integration(
179179
planner_rel = next(
180180
rel
181181
for rel in unit_data["relation-info"]
182-
if rel["endpoint"] == "require-github-runner-planner-v0"
182+
if rel["endpoint"] == "provide-github-runner-planner-v0"
183183
)
184184
app_data = planner_rel["application-data"]
185185
assert app_data["flavor"] == app_no_runner.name
@@ -188,7 +188,7 @@ async def test_planner_integration(
188188
assert app_data["minimum-pressure"] == "0"
189189

190190
await mock_planner_app.remove_relation(
191-
"require-github-runner-planner-v0", f"{app_no_runner.name}:planner"
191+
"provide-github-runner-planner-v0", f"{app_no_runner.name}:planner"
192192
)
193193
await model.wait_for_idle(
194194
apps=[app_no_runner.name], status=ActiveStatus.name, idle_period=30, timeout=10 * 60

0 commit comments

Comments
 (0)