feat(api): standardize REST contracts and auth
This commit is contained in:
@@ -41,7 +41,7 @@ def test_agent_auth_context_returns_metadata_user_and_project_context():
|
||||
),
|
||||
)
|
||||
|
||||
response = client.get("/api/v1/agent/auth/context")
|
||||
response = client.get("/api/v1/agent-auth-context")
|
||||
|
||||
assert response.status_code == 200
|
||||
assert response.json() == {
|
||||
@@ -90,7 +90,7 @@ def test_agent_auth_context_propagates_project_auth_failures():
|
||||
app.dependency_overrides[get_current_keycloak_payload] = lambda: {"exp": 1781183400}
|
||||
client = TestClient(app)
|
||||
|
||||
response = client.get("/api/v1/agent/auth/context")
|
||||
response = client.get("/api/v1/agent-auth-context")
|
||||
|
||||
assert response.status_code == 403
|
||||
assert response.json()["detail"] == "No access to project"
|
||||
|
||||
Reference in New Issue
Block a user