[NC-1851] fix ws endpoint protocol (#216)

Nicolas MASSART 6 years ago committed by Lucas Saldanha
parent 824b56f141
commit 7f78c6e62a
  1. 2
      quickstart/listQuickstartServices.sh
  2. 3
      quickstart/src/test/java/tech/pegasys/pantheon/tests/quickstart/DockerQuickstartTest.java

@ -57,7 +57,7 @@ if [ ${#dots} -gt ${maxRetryCount} ]; then
echo "****************************************************************${NORMAL}" echo "****************************************************************${NORMAL}"
else else
echo "JSON-RPC ${BOLD}HTTP${NORMAL}${CYAN} service endpoint : ${ORANGE}http://${HOST}:${explorerMapping##*:}/jsonrpc${CYAN} *" echo "JSON-RPC ${BOLD}HTTP${NORMAL}${CYAN} service endpoint : ${ORANGE}http://${HOST}:${explorerMapping##*:}/jsonrpc${CYAN} *"
echo "JSON-RPC ${BOLD}WebSocket${NORMAL}${CYAN} service endpoint : ${ORANGE}http://${HOST}:${explorerMapping##*:}/jsonws${CYAN} *" echo "JSON-RPC ${BOLD}WebSocket${NORMAL}${CYAN} service endpoint : ${ORANGE}ws://${HOST}:${explorerMapping##*:}/jsonws${CYAN} *"
echo "${CYAN}Web block explorer address : ${ORANGE}http://${HOST}:${explorerMapping##*:}${CYAN} * " echo "${CYAN}Web block explorer address : ${ORANGE}http://${HOST}:${explorerMapping##*:}${CYAN} * "
echo "****************************************************************${NORMAL}" echo "****************************************************************${NORMAL}"
fi fi

@ -293,7 +293,8 @@ public class DockerQuickstartTest {
final Pattern pattern; final Pattern pattern;
EndpointsIdentifier(final String lineLabel) { EndpointsIdentifier(final String lineLabel) {
pattern = Pattern.compile(lineLabel + ".+(http://.+:[0-9]+)", Pattern.DOTALL); pattern =
Pattern.compile(lineLabel + ".+((http|ws)://.+:[0-9]+/{0,1}[a-z]*)", Pattern.DOTALL);
} }
} }

Loading…
Cancel
Save