Skip to content

Commit 0e3329e

Browse files
committed
Add test suite against cluster
1 parent f3e4544 commit 0e3329e

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

.github/workflows/test-rabbitmq-alphas.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,18 @@ jobs:
4141
-Dclient.key=./tls-gen/basic/result/client_$(hostname)_key.pem
4242
- name: Test (dynamic-batch publishing)
4343
run: |
44-
./mvnw verify -Drabbitmqctl.bin=DOCKER:rabbitmq \
44+
./mvnw test -Drabbitmqctl.bin=DOCKER:rabbitmq \
4545
-Drabbitmq.stream.producer.dynamic.batch=true \
4646
-Dca.certificate=./tls-gen/basic/result/ca_certificate.pem \
4747
-Dclient.certificate=./tls-gen/basic/result/client_$(hostname)_certificate.pem \
4848
-Dclient.key=./tls-gen/basic/result/client_$(hostname)_key.pem
4949
- name: Stop broker
5050
run: docker stop rabbitmq && docker rm rabbitmq
51+
- name: Start cluster
52+
run: ci/start-cluster.sh
53+
env:
54+
RABBITMQ_IMAGE: ${{ matrix.rabbitmq-image }}
55+
- name: Test against cluster
56+
run: ./mvnw test -Dtest="*ClusterTest" -Drabbitmqctl.bin=DOCKER:rabbitmq0
57+
- name: Stop cluster
58+
run: docker compose --file ci/cluster/docker-compose.yml down

.github/workflows/test-supported-java-versions.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,17 @@ jobs:
4343
-Dnet.bytebuddy.experimental=true -Djacoco.skip=true -Dspotbugs.skip=true
4444
- name: Test (dynamic-batch publishing)
4545
run: |
46-
./mvnw verify -Drabbitmqctl.bin=DOCKER:rabbitmq \
46+
./mvnw test -Drabbitmqctl.bin=DOCKER:rabbitmq \
4747
-Drabbitmq.stream.producer.dynamic.batch=true \
4848
-Dca.certificate=./tls-gen/basic/result/ca_certificate.pem \
4949
-Dclient.certificate=./tls-gen/basic/result/client_$(hostname)_certificate.pem \
5050
-Dclient.key=./tls-gen/basic/result/client_$(hostname)_key.pem \
5151
-Dnet.bytebuddy.experimental=true -Djacoco.skip=true -Dspotbugs.skip=true
5252
- name: Stop broker
5353
run: docker stop rabbitmq && docker rm rabbitmq
54+
- name: Start cluster
55+
run: ci/start-cluster.sh
56+
- name: Test against cluster
57+
run: ./mvnw test -Dtest="*ClusterTest" -Drabbitmqctl.bin=DOCKER:rabbitmq0
58+
- name: Stop cluster
59+
run: docker compose --file ci/cluster/docker-compose.yml down

.github/workflows/test.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,19 @@ jobs:
4242
-Dclient.key=./tls-gen/basic/result/client_$(hostname)_key.pem
4343
- name: Test (dynamic-batch publishing)
4444
run: |
45-
./mvnw verify -Drabbitmqctl.bin=DOCKER:rabbitmq \
45+
./mvnw test -Drabbitmqctl.bin=DOCKER:rabbitmq \
4646
-Drabbitmq.stream.producer.dynamic.batch=true \
4747
-Dca.certificate=./tls-gen/basic/result/ca_certificate.pem \
4848
-Dclient.certificate=./tls-gen/basic/result/client_$(hostname)_certificate.pem \
4949
-Dclient.key=./tls-gen/basic/result/client_$(hostname)_key.pem
5050
- name: Stop broker
5151
run: docker stop rabbitmq && docker rm rabbitmq
52+
- name: Start cluster
53+
run: ci/start-cluster.sh
54+
- name: Test against cluster
55+
run: ./mvnw test -Dtest="*ClusterTest" -Drabbitmqctl.bin=DOCKER:rabbitmq0
56+
- name: Stop cluster
57+
run: docker compose --file ci/cluster/docker-compose.yml down
5258
- name: Upload Codecov report
5359
run: bash <(curl -s https://codecov.io/bash)
5460
- name: Publish snapshot

0 commit comments

Comments
 (0)