Skip to content

add k6 load test suite#15

Merged
maxmalkin merged 1 commit intomainfrom
add-load-tests
Mar 1, 2026
Merged

add k6 load test suite#15
maxmalkin merged 1 commit intomainfrom
add-load-tests

Conversation

@maxmalkin
Copy link
Owner

@maxmalkin maxmalkin commented Mar 1, 2026

Summary

  • Rewrite token-verify and token-issue tests with proper API payloads, multi-phase scenarios (warmup/baseline/spike), and threshold assertions
  • Add grant-request.js testing POST /v1/grants/request with varied capability sets
  • Rewrite scenarios/full-flow.js covering the full lifecycle: register, grant, issue, verify (N times), revoke
  • Add scenarios/mixed-traffic.js simulating production traffic distribution (80% verify, 10% issue, 5% grant, 3% lookup, 2% health)
  • Add scenarios/soak.js for 30-minute sustained load to detect memory leaks and latency degradation
  • Add results/.gitignore to keep test output out of version control

- token-verify.js: warmup, baseline (50 VUs), and spike (200 VUs) scenarios
- token-issue.js: warmup, baseline (20 VUs), and sustained (50 VUs) scenarios
- grant-request.js: new test covering grant request endpoint with varied capabilities
- scenarios/full-flow.js: complete lifecycle (register, grant, issue, verify, revoke)
- scenarios/mixed-traffic.js: production traffic distribution (80% verify, 10% issue, etc)
- scenarios/soak.js: 30-minute sustained load for leak and degradation detection
- all payloads match actual API request schemas
- results directory gitignored to avoid committing test output
@maxmalkin maxmalkin merged commit b7d03ec into main Mar 1, 2026
6 checks 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.

1 participant