Skip to content

Commit 283a84e

Browse files
committed
chore(tests): move integration scripts to client example dir.
1 parent cb5f638 commit 283a84e

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

scripts/run_phase4_dpop_integration_test.sh renamed to examples/clients/simple-auth-multiprotocol-client/run_dpop_test.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env bash
2-
# Phase 4 DPoP integration test: start simple-auth (AS) and simple-auth-multiprotocol (RS with DPoP),
2+
# DPoP integration test: start simple-auth AS and simple-auth-multiprotocol RS with DPoP,
33
# then run automated DPoP verification tests and optional OAuth+DPoP manual test.
44
#
5-
# Usage: from repo root, run: ./scripts/run_phase4_dpop_integration_test.sh
5+
# This test is for testing DPoP + OAuth2 flow with multi-protocol support.
6+
# Usage: in the repo root, run: ./examples/clients/simple-auth-multiprotocol-client/run_dpop_test.sh
67
#
78
# Env variables:
89
# MCP_RS_PORT - Resource Server port (default: 8002)
@@ -17,7 +18,7 @@
1718

1819
set -e
1920

20-
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
21+
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd)"
2122
SIMPLE_AUTH_SERVER="${REPO_ROOT}/examples/servers/simple-auth"
2223
MULTIPROTOCOL_SERVER="${REPO_ROOT}/examples/servers/simple-auth-multiprotocol"
2324
MULTIPROTOCOL_CLIENT="${REPO_ROOT}/examples/clients/simple-auth-multiprotocol-client"

scripts/run_phase2_multiprotocol_integration_test.sh renamed to examples/clients/simple-auth-multiprotocol-client/run_multiprotocol_test.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
#!/usr/bin/env bash
2-
# Phase 2 multi-protocol integration test: start simple-auth-multiprotocol RS (and optionally AS for OAuth),
2+
# Multi-protocol integration test: start simple-auth-multiprotocol RS (and optionally AS for OAuth),
33
# then run client with API Key, OAuth, or Mutual TLS (placeholder).
4-
# Usage: from repo root, run: ./scripts/run_phase2_multiprotocol_integration_test.sh
4+
# This test is for testing multi-protocol support with API Key, OAuth, or Mutual TLS.
5+
# Usage: in the repo root, run: ./examples/clients/simple-auth-multiprotocol-client/run_multiprotocol_test.sh
56
# Env: MCP_PHASE2_PROTOCOL=api_key (default) | oauth | mutual_tls (client will show "not implemented" for mTLS).
67
# For api_key/mutual_tls: simple-auth-multiprotocol-client; for oauth: simple-auth-client (complete OAuth in browser).
78
# You must run at mcp> prompt: list, call get_time {}, quit.
89

910
set -e
1011

11-
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
12+
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd)"
1213
SIMPLE_AUTH_SERVER="${REPO_ROOT}/examples/servers/simple-auth"
1314
MULTIPROTOCOL_SERVER="${REPO_ROOT}/examples/servers/simple-auth-multiprotocol"
1415
MULTIPROTOCOL_CLIENT="${REPO_ROOT}/examples/clients/simple-auth-multiprotocol-client"

scripts/run_phase1_oauth2_integration_test.sh renamed to examples/clients/simple-auth-multiprotocol-client/run_oauth2_test.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
#!/usr/bin/env bash
2-
# Phase 1 OAuth2 integration test: start simple-auth (AS + RS) and run simple-auth-client.
3-
# Usage: from repo root, run: ./scripts/run_phase1_oauth2_integration_test.sh
2+
# OAuth2 integration test: start simple-auth (AS + RS) and run simple-auth-client.
3+
# This test is for testing Oauth2 flow with multi-protocol support.
4+
# Usage: in the repo root, run: ./examples/clients/simple-auth-multiprotocol-client/run_oauth2_test.sh
45
# You must complete OAuth in the browser and run list / call get_time / quit at the mcp> prompt.
56

67
set -e
78

8-
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
9+
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd)"
910
SIMPLE_AUTH_SERVER="${REPO_ROOT}/examples/servers/simple-auth"
1011
SIMPLE_AUTH_CLIENT="${REPO_ROOT}/examples/clients/simple-auth-client"
1112
AS_PORT=9000

0 commit comments

Comments
 (0)