Skip to content

[ISSUE #8422] Add a WebSocket gateway runtime probe - #18

Open
weixiaobing1 wants to merge 1 commit into
apache:mainfrom
weixiaobing1:test/8422-websocket-gateway-probe
Open

weixiaobing1 wants to merge 1 commit into
apache:mainfrom
weixiaobing1:test/8422-websocket-gateway-probe

Conversation

@weixiaobing1

Copy link
Copy Markdown

Related to apache/shenyu#8422.

Add a JDK-only WebSocket probe for the client-side runtime checks and document
how to run it against the migrated Spring example. The probe opens the full
gateway path, sends a unique payload, checks the exact echo, and requires a
normal close frame. Each phase has a deadline and reports a failure through
the process exit status.

This change is independently mergeable ahead of #16. Wiring the probe into
that PR's source-runtime harness, exercising isFull and registry discovery,
and checking route removal and sibling availability remain follow-up work.

Local verification

  • Ran through Admin and Bootstrap from apache/shenyu@ada1872599eae871648d6760a05d7747459ea051 and the separately built shenyu-example-spring-native-websocket from apache/shenyu-client-java#16@a37668298edef5c501e8b56a0595ed50ef895656 with Spring Boot 3.3.1 and local discovery.
  • Confirmed that Admin persisted the selector and rule, the gateway at /ws-native/myWebSocket exchanged the exact echo and a normal close frame, and the backend observed close status 1000.
  • Confirmed nonzero exits for an unknown subpath and an incorrect expected echo. The same artifacts passed at runtime on Temurin 17.0.15 and 21.0.13.1.
  • The example JAR SHA-256 was e0b10bf67a5ad6b84ca3ead9ddcbbdde3c0aad39a8251ec36f19222ae67edec5.
  • ./mvnw clean install -Dmaven.javadoc.skip=true passed for all 30 modules on the PR branch with JDK 17.

Make sure that:

  • You have read the contribution guidelines.
  • You submit test cases (unit or integration tests) that back your changes.
  • Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

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