Skip to content

Support serving risk intelligence fixtures#6

Merged
rokostik merged 2 commits intomainfrom
rok/risk-intelligence-fixtures
Mar 2, 2026
Merged

Support serving risk intelligence fixtures#6
rokostik merged 2 commits intomainfrom
rok/risk-intelligence-fixtures

Conversation

@rokostik
Copy link
Contributor

@rokostik rokostik commented Mar 2, 2026

This PR implements serving risk intelligence /retrieve fixtures alongside the captcha /siteverify ones. It also adds the actual fixtures. The old /api/v1/tests endpoint still serves the siteverify fixtures until all SKD tests are updated.

@rokostik rokostik requested a review from gzuidhof March 2, 2026 12:51
@rokostik rokostik self-assigned this Mar 2, 2026
Copy link
Contributor

@gzuidhof gzuidhof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

}
}

var testCases model.CaptchaSiteverifyTestCasesFile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think making this a generic value T you can re-use this function for both the siteverify+retrieve data.

@rokostik rokostik merged commit ab6ae39 into main Mar 2, 2026
1 check passed
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.

2 participants