• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

m-lab / token-exchange / 21215743118
67%

Build:
DEFAULT BRANCH: main
Ran 21 Jan 2026 03:40PM UTC
Jobs 1
Files 8
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Jan 2026 03:39PM UTC coverage: 69.057% (-0.4%) from 69.504%
21215743118

push

github

web-flow
feat(store): add create-integration CLI tool (#11)

* feat(store): add create-integration CLI tool

Add CreateIntegration and CreateAPIKey methods to ClientIntegrationManager
for creating new integrations and API keys in Datastore. Also adds:
- Exported constants for API key format prefixes
- GenerateKeyID() for generating random key IDs
- FormatAPIKey() helper for formatting API key strings
- cmd/create-integration CLI tool for creating integrations

* feat(store): add description field to integration metadata

Add Description field to clientIntegrationMeta struct and update
CreateIntegration to accept a description parameter. Split the CLI
-description flag into -integration-description and -key-description.

* test(store): add tests for 100% coverage on clientintegration.go

Add function variables (generateKeyIDFunc, generateAPIKeyFunc, randRead)
to enable mocking random generation in tests. Add tests for error paths
in GenerateKeyID and CreateAPIKey.

* feat(auth): add tier field to API keys and JWT tokens

Add a tier field (integer, 0-N, default 0) to each API key stored in
Datastore and include it as a claim in generated JWTs. The tier is
stored per-key to maintain O(1) key validation without additional
fetches.

* fix(store): keep ki_ prefix in keyID for datastore consistency

parseAPIKey now preserves the ki_ prefix in keyID instead of stripping
it, ensuring CreateAPIKey and ValidateKey use the same key format for
datastore operations.

* fix: lc "error"

* test(store): add end-to-end test for client integration flow

78 of 118 new or added lines in 4 files covered. (66.1%)

366 of 530 relevant lines covered (69.06%)

0.77 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
40
0.0
cmd/create-integration/main.go
Jobs
ID Job ID Ran Files Coverage
1 0 - 21215743118.1 21 Jan 2026 03:40PM UTC 8
69.06
GitHub Action Run
Source Files on build 21215743118
  • Tree
  • List 8
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9aa57cdc on github
  • Prev Build on main (#20937229087)
  • Next Build on main (#21216219621)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc