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

stacklok / toolhive / 18651008938
59%

Build:
DEFAULT BRANCH: main
Ran 20 Oct 2025 11:53AM UTC
Jobs 1
Files 293
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

20 Oct 2025 11:47AM UTC coverage: 46.565% (-0.02%) from 46.584%
18651008938

push

github

web-flow
test(runner): add unit tests for token-exchange middleware integration (Priority 1) (#2227)

* test(runner): add unit tests for token-exchange middleware integration

Add Priority 1 (Core Integration) unit tests for token-exchange middleware in pkg/runner/config_builder.go.

These tests:
- Verify middleware is not added when tokenExchangeConfig is nil
- Verify middleware is added and correctly ordered (auth → token-exchange → MCP parser)
- Validate middleware chain integrity

Fixes: #2149

Signed-off-by: Mohamed Fawas <fawastmh@gmail.com>

* test(runner): add core integration tests for token-exchange middleware

This commit adds Priority 1 (Core Integration) tests for the token-exchange middleware in pkg/runner/config_builder_test.go.

Changes include:
- Verified middleware is not added when `tokenExchangeConfig` is nil.
- Verified middleware order (auth → token-exchange → mcp parser) when config is provided.
- Confirmed that middleware parameters are populated and match the provided `tokenexchange.Config`.

This improves coverage and ensures correct integration behavior between authentication and token-exchange components.

Signed-off-by: Mohamed Fawas <fawastmh@gmail.com>

---------

Signed-off-by: Mohamed Fawas <fawastmh@gmail.com>

17978 of 38608 relevant lines covered (46.57%)

15.62 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
92.86
-1.43% pkg/secrets/keyring/composite.go
2
81.62
-0.56% pkg/transport/proxy/httpsse/http_proxy.go
3
72.39
-1.12% pkg/ignore/processor.go
21
48.94
-22.34% pkg/secrets/keyring/keyctl_linux.go
Jobs
ID Job ID Ran Files Coverage
1 18651008938.1 20 Oct 2025 11:52AM UTC 293
46.57
GitHub Action Run
Source Files on build 18651008938
  • Tree
  • List 293
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18651008938
  • 783d0bcb on github
  • Prev Build on main (#18650463368)
  • Next Build on main (#18654700556)
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