Skip to content

Add unit tests and GitHub Actions CI#2

Merged
AdityaK011 merged 2 commits intofeature/v2-oauth-and-toolsfrom
feature/tests-and-ci
Apr 13, 2026
Merged

Add unit tests and GitHub Actions CI#2
AdityaK011 merged 2 commits intofeature/v2-oauth-and-toolsfrom
feature/tests-and-ci

Conversation

@AdityaK011
Copy link
Copy Markdown
Owner

@AdityaK011 AdityaK011 commented Apr 13, 2026

Summary

Adds 36 unit tests and GitHub Actions CI for the k8scope MCP server.

  • Auth tests (24) — session CRUD, TTL expiry, one-time use codes, client registration, OAuth metadata, dynamic client
    registration, middleware auth gate, bearer extraction, rate limiting
  • Tools tests (8) — input validation regex, helper functions (str, num), error formatting
  • K8s tests (2) — cluster details cache hit and expiry
  • CI workflow — build, vet, test with race detector on all pushes and PRs to main

Test plan

  • go test ./... -v -race — 36/36 passing
  • go vet ./... clean

@AdityaK011 AdityaK011 marked this pull request as ready for review April 13, 2026 15:17
@AdityaK011 AdityaK011 self-assigned this Apr 13, 2026
@AdityaK011 AdityaK011 merged commit fa9ab15 into feature/v2-oauth-and-tools Apr 13, 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