refactor(cli): let the client own its endpoints and split resolving from announcing

This commit is contained in:
Hugo Durand
2026-09-22 16:31:38 -04:00
parent 4ea2701a29
commit 80b94edd75
5 changed files with 66 additions and 61 deletions
@@ -692,6 +692,7 @@ def test_push_to_places_a_new_deployment_on_the_only_listener(
"listener_id": "listener-1",
"listener_config": {"k8s_namespace": "agents"},
}
assert "Deploying through listener listener-1 in namespace agents" in result.output
def test_push_to_places_a_new_deployment_on_the_chosen_listener(
@@ -840,18 +841,6 @@ def test_listener_flags_are_refused_on_an_existing_deployment(
assert deploy_project.docker.verbs() == []
def test_automatic_placement_is_announced(deploy_project: DeployProject) -> None:
deploy_project.control_plane.listeners = [LISTENER]
result = deploy_project.run(
"--push-to", PUSH_REPOSITORY, host_url=CLOUD_CONTROL_PLANE_URL
)
assert result.exit_code == 0, result.output
assert "listener-1" in result.output
assert "agents" in result.output
def test_a_deployment_without_a_listener_announces_nothing(
deploy_project: DeployProject,
) -> None: