fix(cli): point a managed build at --push-to in a listener workspace

This commit is contained in:
Hugo Durand
2026-09-22 16:05:15 -04:00
parent a4ed4dc356
commit e42ab5d589
2 changed files with 38 additions and 10 deletions
@@ -932,3 +932,18 @@ def test_a_listener_without_an_id_is_ignored(deploy_project: DeployProject) -> N
"listener_id": "listener-1",
"listener_config": {"k8s_namespace": "agents"},
}
def test_a_managed_build_in_a_listener_workspace_points_at_push_to(
deploy_project: DeployProject,
) -> None:
deploy_project.control_plane.create_error = (
"Source configuration error: 'source_config.listener_id' is required "
"for workspace with available listener IDs: ['listener-1']"
)
result = deploy_project.run("--no-remote")
assert result.exit_code != 0
assert "--push-to" in result.output
assert deploy_project.docker.verbs() == []