Skip to content

Commit b40d3d6

Browse files
committed
fix cassandra and redis tests
1 parent 9f3b1d4 commit b40d3d6

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

backend/test/mock.factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ export class MockFactory {
294294
const dto = new CreateConnectionDto() as any;
295295
dto.title = 'Test connection to Redis in Docker';
296296
dto.type = ConnectionTypesEnum.redis;
297-
dto.host = 'redis-e2e-testing';
297+
dto.host = 'test-redis-e2e-testing';
298298
dto.port = 6379;
299299
dto.password = 'SuperSecretRedisPassword';
300300
dto.ssh = false;

docker-compose.tst.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ services:
1717
- test-oracle-e2e-testing
1818
- test-ibm-db2-e2e-testing
1919
- test-dynamodb-e2e-testing
20+
- test-redis-e2e-testing
21+
- test-cassandra-e2e-testing
2022
links:
2123
- postgres
2224
- testMySQL-e2e-testing
@@ -25,6 +27,8 @@ services:
2527
- test-oracle-e2e-testing
2628
- test-ibm-db2-e2e-testing
2729
- test-dynamodb-e2e-testing
30+
- test-redis-e2e-testing
31+
- test-cassandra-e2e-testing
2832
command: ["yarn", "start"]
2933
backend_test:
3034
build:
@@ -54,6 +58,8 @@ services:
5458
condition: service_healthy
5559
test-redis-e2e-testing:
5660
condition: service_healthy
61+
test-cassandra-e2e-testing:
62+
condition: service_healthy
5763
command: ["/bin/sh", "-c", "yarn test $EXTRA_ARGS"]
5864
develop:
5965
watch:
@@ -161,6 +167,31 @@ services:
161167
- backend
162168
depends_on:
163169
- backend
170+
test-cassandra-e2e-testing:
171+
image: cassandra:5.0.4
172+
ports:
173+
- 9042:9042
174+
environment:
175+
- CASSANDRA_CLUSTER_NAME=TestCluster
176+
- CASSANDRA_DC=TestDC
177+
- CASSANDRA_RACK=TestRack
178+
restart: always
179+
healthcheck:
180+
test:
181+
[
182+
"CMD",
183+
"cqlsh",
184+
"-u",
185+
"cassandra",
186+
"-p",
187+
"cassandra",
188+
"-e",
189+
"describe keyspaces",
190+
]
191+
interval: 30s
192+
timeout: 10s
193+
retries: 5
194+
start_period: 60s
164195

165196
test-redis-e2e-testing:
166197
image: redis:7.0.11

0 commit comments

Comments
 (0)