Skip to content

UID2-7235 Assert /attest 401 reasons in CoreTest#146

Open
swibi-ttd wants to merge 3 commits into
mainfrom
swi-UID2-7235-e2e-attest-401
Open

UID2-7235 Assert /attest 401 reasons in CoreTest#146
swibi-ttd wants to merge 3 commits into
mainfrom
swi-UID2-7235-e2e-attest-401

Conversation

@swibi-ttd
Copy link
Copy Markdown
Contributor

@swibi-ttd swibi-ttd commented Jun 4, 2026

Adds two CoreTest cases asserting that /attest rejects bad operator keys with HTTP 401 and a reason in the response body:

  • testAttest_UnrecognizedOperatorKey — unknown/mistyped key → unrecognized_key (no setup required)
  • testAttest_DisabledOperatorKey — recognized-but-disabled key → key_disabled

Adds Core.attestWithApiKey and HttpException.getCode helpers.

Dependencies

swibi-ttd and others added 3 commits June 5, 2026 09:28
Covers unrecognized and disabled operator keys returning HTTP 401 with a reason in the response body. Adds Core.attestWithApiKey and HttpException.getCode helpers.

The disabled-key case relies on a disabled operator key in the admin localstack seed, and both cases require the corresponding uid2-core change for the new 401 body.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@swibi-ttd swibi-ttd changed the title Assert /attest 401 reasons in CoreTest UID2-7235 Assert /attest 401 reasons in CoreTest Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant