Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test 3.3.0 #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci-pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
name: Build NAPI macos - Node ${{matrix.nodejs}} - ${{matrix.arch}}
runs-on: ${{ matrix.os }}
timeout-minutes: 3000

strategy:
fail-fast: false
matrix:
Expand Down
14 changes: 1 addition & 13 deletions build-support/pulsar-test-container-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

set -e -x

export PULSAR_STANDALONE_CONF=test-conf/standalone.conf
export PULSAR_STANDALONE_CONF=/tmp/pulsar/test-conf/standalone.conf
# There is an issue when starting the pulsar standalone with other metadata store: https://github.com/apache/pulsar/issues/17984
# We need to use Zookeeper here. Otherwise the `Message Chunking` test will not pass.
# We can remove this line after the pulsar release a new version contains this fix: https://github.com/apache/pulsar/pull/18126
Expand All @@ -29,15 +29,3 @@ bin/pulsar-daemon start standalone \
--no-functions-worker --no-stream-storage \
--bookkeeper-dir data/bookkeeper

echo "-- Wait for Pulsar service to be ready"
for i in $(seq 30); do
curl http://localhost:8080/metrics > /dev/null 2>&1 && break
if [ $i -lt 30 ]; then
sleep 1
else
echo '-- Pulsar standalone server startup timed out'
exit 1
fi
done

echo "-- Ready to start tests"
26 changes: 19 additions & 7 deletions build-support/pulsar-test-service-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,27 @@ cd $SRC_DIR

build-support/pulsar-test-service-stop.sh

CONTAINER_ID=$(docker run -i -p 8080:8080 -p 6650:6650 -p 8443:8443 -p 6651:6651 --rm --detach apachepulsar/pulsar:latest sleep 3600)
CONTAINER_ID=$(docker run -i -p 8080:8080 -p 6650:6650 -p 8443:8443 -p 6651:6651 --rm --detach czcoder/pulsar:3.3.0-0771f81 sleep 3600)

echo $CONTAINER_ID >.tests-container-id.txt

docker cp $SRC_DIR/tests/conf $CONTAINER_ID:/pulsar/test-conf
docker cp $SRC_DIR/tests/certificate/server.crt $CONTAINER_ID:/pulsar/test-conf
docker cp $SRC_DIR/tests/certificate/server.key $CONTAINER_ID:/pulsar/test-conf
docker cp $SRC_DIR/build-support/pulsar-test-container-start.sh $CONTAINER_ID:pulsar-test-container-start.sh

docker exec -i $CONTAINER_ID /pulsar-test-container-start.sh
docker exec -i $CONTAINER_ID mkdir -p /tmp/pulsar/test-conf
docker cp $SRC_DIR/tests/conf/* $CONTAINER_ID:/tmp/pulsar/test-conf
docker cp $SRC_DIR/tests/certificate/server.crt $CONTAINER_ID:/tmp/pulsar/test-conf
docker cp $SRC_DIR/tests/certificate/server.key $CONTAINER_ID:/tmp/pulsar/test-conf
docker cp $SRC_DIR/build-support/pulsar-test-container-start.sh $CONTAINER_ID:/tmp/pulsar/pulsar-test-container-start.sh

docker exec -i $CONTAINER_ID /tmp/pulsar/pulsar-test-container-start.sh

echo "-- Wait for Pulsar service to be ready"
for i in $(seq 30); do
curl http://localhost:8080/metrics > /dev/null 2>&1 && break
if [ $i -lt 30 ]; then
sleep 1
else
echo '-- Pulsar standalone server startup timed out'
exit 1
fi
done

echo "-- Ready to start tests"
6 changes: 3 additions & 3 deletions tests/conf/standalone.conf
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,16 @@ delayedDeliveryTickTimeMillis=1000

### --- TLS --- ###
# Path for the TLS certificate file
tlsCertificateFilePath=/pulsar/test-conf/server.crt
tlsCertificateFilePath=/tmp/pulsar/test-conf/server.crt

# Path for the TLS private key file
tlsKeyFilePath=/pulsar/test-conf/server.key
tlsKeyFilePath=/tmp/pulsar/test-conf/server.key

# Path for the trusted TLS certificate file.
# This cert is used to verify that any certs presented by connecting clients
# are signed by a certificate authority. If this verification
# fails, then the certs are untrusted and the connections are dropped.
tlsTrustCertsFilePath=/pulsar/test-conf/server.crt
tlsTrustCertsFilePath=/tmp/pulsar/test-conf/server.crt

### --- Authentication --- ###

Expand Down
Loading