Skip to content

[Bug]: Tests failing with FastAPI 0.122.0 #3317

@r4victor

Description

@r4victor

Steps to reproduce

FastAPI 0.122.0 released on Nov 25 introduced a backward incompatible change:

🐛 Use 401 status code in security classes when credentials are missing. PR fastapi/fastapi#13786 by @YuriiMotov.
If your code depended on these classes raising the old (less correct) 403 status code, check the new docs about how to override the classes, to use the same old behavior: Use Old 403 Authentication Error Status Codes.

Some of the tests relied on 403 status code and they are now broken. See https://github.com/dstackai/dstack/actions/runs/19660561178/job/56307940853

Actual behaviour

No response

Expected behaviour

Can be fixed by asserting against both 401 and 403 as many tests do.

dstack version

master

Server logs

Additional information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions