Fix NATS JetStream conformance tests

Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
This commit is contained in:
Tomasz Pietrek 2022-12-20 11:06:47 +01:00
parent 986a5246fe
commit 9bfb0b1718
3 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,19 @@
version: '2'
services:
nats:
image: nats:2.9.9
ports:
- "4222:4222"
networks: ["nats"]
command: "--js"
startup:
image: natsio/nats-box
networks: ["nats"]
depends_on:
- nats
entrypoint: sh -c "sleep 5 && nats -s nats:4222 stream add pubsub --subjects testTopic,multiTopic1,multiTopic2,testTopicBulk --storage=file --replicas=1 --retention=limits --discard=old --max-msgs=-1 --max-msgs-per-subject=-1 --max-bytes=-1 --max-age=-1 --max-msg-size=-1 --dupe-window=2m0s --no-allow-rollup --no-deny-delete --no-deny-purge"
networks:
nats:
name: nats

View File

@ -373,6 +373,11 @@ jobs:
run: docker-compose -f ./.github/infrastructure/docker-compose-kubemq.yml -p kubemq up -d
if: contains(matrix.component, 'kubemq')
- name: Start nats with JetStream
run: |
docker-compose -f ./.github/infrastructure/docker-compose-jetstream.yml up -p jetstream -d
if: contains(matrix.component, 'jetstream')
- name: Setup KinD test data
if: contains(matrix.component, 'kubernetes')
run: |

View File

@ -12,3 +12,5 @@ spec:
value: config-test
- name: flowControl
value: true
- name: hearbeat
value: 5s