Repository navigation
test: e2e against KTMS and light-tokenmeter main - #23
Merged
Merged
Conversation
scripts/e2e.sh builds both services from their main branches, turns light-tokenmeter's authentication on, and drives the console's API: health, models, vendor keys, rules, client keys, spend limits, organizations and teams, a playground call through a mock vendor, its usage report, and a token without the read scope shown as refused. It runs on every pull request and daily.
…in run - Every wait and request is bounded; the job times out after 30 min. - A refused call prints the console's error body; build, clone and setup failures dump logs through fail(). - PRs test the pair in scripts/e2e.refs; a separate daily workflow tests KTMS and light-tokenmeter main. - The revoked key is checked to be disabled; usage is queried from the day before the call; organization creation is checked.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of ai-process/docs#75 (the other criterion holds: no branch uses
llmproxy.v1).scripts/e2e.sh(Docker, curl, jq): builds KTMS (slim) and light-tokenmeter frommain(overridable byKTMS_REF/TOKENMETER_REF), the KTMS mock upstream, Postgres and Redis; light-tokenmeter runs with write/read tokens. Through the console's own API (INSECURE_NO_AUTH, localhost): mint the console key with the bootstrap key, health, model + vendor key + rule, config, client key mint/list/revoke, spend limit, organization + team, playground → KTMS → mock, usage report from light-tokenmeter, and a write-only token reported as "refused".CI: new
e2ejob on PRs, pushes and a daily schedule. README Compatibility mentions it. Targets the release branch because the CSRF header value there isktms-admin. Passed locally.