Commit c26b3dc
committed
Add integration tests for execution proxy
Comprehensive integration tests covering:
- Basic flow: OAuth auth → service connection → token issuance → proxied request
- Path restrictions: Verify glob-style allowlisting works correctly
- Token expiration: Short-lived tokens (2s) expire and are rejected
- Service isolation: Datadog token cannot access Linear service
Test infrastructure:
- FakeBackendAPI simulates external service (Datadog) on port 9091
- Captures all requests for verification
- Returns mock JSON responses
Test configuration:
- Uses config.execution-proxy-test.json with proxy-enabled datadog service
- Points to fake backend and fake service OAuth servers
- Uses in-memory storage for fast testing
Note: Tests follow existing integration test patterns from oauth_test.go.
Could not run tests locally due to Go 1.25 module download network issues.
Tests should be run in CI with proper network connectivity.1 parent 20712d5 commit c26b3dc
File tree
2 files changed
+611
-0
lines changed- integration
- config
2 files changed
+611
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
0 commit comments