Skip to content

Commit 6772291

Browse files
Make public CI portability fixtures host-neutral
1 parent 0c7ea1b commit 6772291

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/test_ci_checkout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
@pytest.mark.parametrize(
1616
"runner_server_url",
17-
["https://github.com", "https://forgejo.example.test"],
18-
ids=["github", "forgejo"],
17+
["https://github.com", "https://ci.example.test"],
18+
ids=["github", "alternate-runner"],
1919
)
2020
@pytest.mark.parametrize(
2121
("repository", "public_url"),

tests/test_ci_integration_endpoint.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ def health_server() -> Iterator[int]:
5858
("runner_server_url", "docker_host", "expected_host"),
5959
[
6060
("https://github.com", None, "localhost"),
61-
("https://forgejo.example.test", "127.0.0.1", "127.0.0.1"),
61+
("https://ci.example.test", "127.0.0.1", "127.0.0.1"),
6262
],
63-
ids=["github-localhost", "containerized-forgejo-docker-host"],
63+
ids=["github-localhost", "containerized-alternate-runner-docker-host"],
6464
)
6565
def test_endpoint_selection_probes_the_runner_reachable_server(
6666
tmp_path: Path,
@@ -103,7 +103,7 @@ def test_endpoint_selection_probes_the_runner_reachable_server(
103103
assert expected_endpoint in result.stdout
104104

105105

106-
def test_containerized_forgejo_discovers_the_linux_docker_host_gateway(
106+
def test_containerized_alternate_runner_discovers_the_linux_docker_host_gateway(
107107
tmp_path: Path,
108108
monkeypatch: pytest.MonkeyPatch,
109109
) -> None:
@@ -119,7 +119,7 @@ def test_containerized_forgejo_discovers_the_linux_docker_host_gateway(
119119

120120
monkeypatch.setattr(endpoint_module, "_host_docker_internal", lambda: None)
121121
monkeypatch.setattr(endpoint_module, "_default_route_gateway", lambda: gateway)
122-
candidates = endpoint_module.endpoint_candidates({"GITHUB_SERVER_URL": "https://forgejo.example.test"})
122+
candidates = endpoint_module.endpoint_candidates({"GITHUB_SERVER_URL": "https://ci.example.test"})
123123

124124
assert candidates == ["http://172.18.0.1:8080", "http://localhost:8080"]
125125

0 commit comments

Comments
 (0)