Repository navigation
test: check for 401 when a deleted project API key is used - #475
Conversation
The test asserted the gateway's error text, which Ory Network no longer returns since Nov 20, 2026: rejected requests get a generic message. Asserting the status code keeps the test independent of that wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DUBUDrtUWz53K65Ph4T34j
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
TestCommandHelper/func=CreateProjectAPIKey_and_DeleteApiKeynow checks that a deleted project API key gets401 Unauthorized, instead of checking the error text the CLI prints.client-goand asserts the status code.ory list identitiesprints only the error message, so the status code isn't visible through the CLI.Related Issue or Design Document
Previously unknown bug: the nightly CI run has failed every night since Nov 21, 2026 with
Since Nov 20, 2026, Ory Network's API gateway answers rejected requests with a generic message. The key is still rejected with a 401; only the wording changed.
Checklist
and signed the CLA.
introduces a new feature.
vulnerability. If this pull request addresses a security vulnerability, I
confirm that I got approval (please contact
security@ory.com) from the maintainers to push
the changes.
works.
appropriate).
Further comments
The test passed locally against staging, and
make lintreports 0 issues.🤖 Generated with Claude Code
https://claude.ai/code/session_01DUBUDrtUWz53K65Ph4T34j
Summary by CodeRabbit