chengxilo commented on code in PR #3384:
URL: https://github.com/apache/iggy/pull/3384#discussion_r3341612650
##########
scripts/run-bdd-tests.sh:
##########
@@ -28,23 +28,59 @@ for arg in "$@"; do
done
SDK="${ARGS[0]:-all}"
-FEATURE="${ARGS[1]:-scenarios/basic_messaging.feature}"
+FEATURE="${ARGS[1]:-all}"
-export DOCKER_BUILDKIT=1 FEATURE GO_TEST_EXTRA_FLAGS="${GO_TEST_EXTRA_FLAGS:-}"
+log(){ printf "%b\n" "$*"; }
+
+usage(){
+ log "Usage: $0 [--coverage] <sdk> [feature]"
+ log ""
+ log " sdk: rust | python | go | go-race | node | csharp | java | all |
clean (default: all)"
+ log " feature: basic_messaging | leader_redirection | all (default: all)"
+ log ""
+ log "Examples:"
+ log " $0 rust # run all features for Rust"
+ log " $0 rust basic_messaging # run only basic_messaging for Rust"
+ log " $0 all leader_redirection # run leader_redirection for all
supporting SDKs"
+ log " $0 --coverage go basic_messaging"
+}
+
+case "$FEATURE" in
+ basic_messaging|leader_redirection|all) ;;
+ *)
+ log "Unknown feature: ${FEATURE}"
+ usage
+ exit 2 ;;
+esac
+
+export DOCKER_BUILDKIT=1 BDD_FEATURE="$FEATURE"
GO_TEST_EXTRA_FLAGS="${GO_TEST_EXTRA_FLAGS:-}"
cd "$(dirname "$0")/../bdd"
-COMPOSE_CMD=(docker compose -f docker-compose.yml)
+ALL_COMPOSE_FILES=(
+ -f docker-compose.yml
+ -f docker-compose.server.yml
+ -f docker-compose.cluster.yml
+ -f docker-compose.coverage.yml
+)
+
+COMPOSE_FILES=(-f docker-compose.yml)
+case "$FEATURE" in
Review Comment:
I'm planning to build another scneario for reconnection. I will integrate a
server into the iggy-server image to control the network and stop/kill the
iggy-server, so the single server service won't be used
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]