Skip to content

Commit

Permalink
prepare to run in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed May 15, 2024
1 parent 213143c commit 18c7c5b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
3 changes: 3 additions & 0 deletions ci/scripts/e2e-source-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ echo "--- starting risingwave cluster"
RUST_LOG="info,risingwave_stream=info,risingwave_batch=info,risingwave_storage=info" \
risedev ci-start ci-1cn-1fe-with-recovery

echo "--- postgres recovery test"
risedev slt './e2e_test/sink/recovery/pg.slt'

echo "--- mongodb cdc test"
# install the mongo shell
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
Expand Down
17 changes: 9 additions & 8 deletions e2e_test/sink/recovery/pg.slt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ set background_ddl=true;
statement ok
create sink pg_sink from t with (
connector = 'jdbc',
jdbc.url = 'jdbc:postgresql://localhost:5432/test?user=test&password=connector',
jdbc.url='jdbc:postgresql://db:5432/test?user=test&password=connector',
table.name = 't',
type = 'upsert',
primary_key = 'v1'
Expand Down Expand Up @@ -52,13 +52,14 @@ select count(*) from t;
# Sink back into RW from PG
statement ok
create table t2 (v1 int primary key) with (
connector = 'postgres-cdc',
hostname = 'localhost',
port = '5432',
username = 'test',
password = 'connector',
database.name = 'test',
table.name = 't',
connector = 'postgres-cdc',
hostname = '${PGHOST:localhost}',
port = '${PGPORT:5432}',
username = '${PGUSER:$USER}',
password = '${PGPASSWORD:}',
database.name = '${PGDATABASE:postgres}',
table.name = 't',
slot.name = 'pg_recovery_test_slot'
);

sleep 5s
Expand Down

0 comments on commit 18c7c5b

Please sign in to comment.