Use session workspace slug in product smoke
Deploy / deploy (push) Failing after 1m30s
CI / Rust Checks (push) Successful in 5m57s
CI / UI Checks (push) Successful in 5s
CI / Deployment Manifests (push) Successful in 2s
CI / Frontend E2E (push) Successful in 4m34s

This commit is contained in:
github-ops
2026-06-22 18:38:36 +00:00
parent 5f8149d0d1
commit 87cdb95b80
2 changed files with 74 additions and 9 deletions
+32 -2
View File
@@ -35,10 +35,40 @@ class AuthenticatedProductSmokeTests(unittest.TestCase):
smoke = load_smoke_module()
self.assertEqual(
smoke.agent_mcp_url("https://crank.example.com/", "default", "health-smoke"),
"https://crank.example.com/mcp/v1/default/health-smoke",
smoke.agent_mcp_url("https://crank.example.com/", "solo", "health-smoke"),
"https://crank.example.com/mcp/v1/solo/health-smoke",
)
def test_resolve_workspace_prefers_authenticated_session_slug(self) -> None:
smoke = load_smoke_module()
class FakeClient:
def request_json(self, method, path):
self.request = (method, path)
return smoke.JsonResponse(
status=200,
headers={},
body={
"current_workspace_id": "ws_default",
"memberships": [
{
"workspace": {
"id": "ws_default",
"slug": "solo",
}
}
],
},
)
client = FakeClient()
self.assertEqual(
smoke.resolve_workspace(client, "ws_default", "default"),
("ws_default", "solo"),
)
self.assertEqual(client.request, ("GET", "/api/auth/session"))
def test_tool_call_payload_targets_health_tool(self) -> None:
smoke = load_smoke_module()