Skip to content

Commit

Permalink
test: use create secret in integration tests (#17840)
Browse files Browse the repository at this point in the history
  • Loading branch information
neverchanje authored Jul 29, 2024
1 parent a8141dd commit f0f4415
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
1 change: 1 addition & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ services:
# If ENABLE_TELEMETRY is not set, telemetry will start by default
ENABLE_TELEMETRY: ${ENABLE_TELEMETRY:-true}
RW_TELEMETRY_TYPE: ${RW_TELEMETRY_TYPE:-"docker-compose"}
RW_SECRET_STORE_PRIVATE_KEY_HEX: ${RW_SECRET_STORE_PRIVATE_KEY_HEX:-0123456789abcdef}
container_name: risingwave-standalone
healthcheck:
test:
Expand Down
6 changes: 4 additions & 2 deletions integration_tests/doris-sink/create_sink.sql
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
create secret doris_secret with (backend = 'meta') as '123456';

CREATE SINK bhv_doris_sink
FROM
bhv_mv WITH (
connector = 'doris',
type = 'append-only',
doris.url = 'http://fe:8030',
doris.user = 'users',
doris.password = '123456',
doris.password = secret doris_secret,
doris.database = 'demo',
doris.table='demo_bhv_table',
force_append_only='true'
Expand All @@ -18,7 +20,7 @@ FROM
type = 'upsert',
doris.url = 'http://fe:8030',
doris.user = 'users',
doris.password = '123456',
doris.password = secret doris_secret,
doris.database = 'demo',
doris.table='upsert_table',
primary_key = 'user_id'
Expand Down
5 changes: 3 additions & 2 deletions integration_tests/mysql-cdc/create_source.sql
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
create secret mysql_pwd with (backend = 'meta') as '123456';

create source mysql_mydb with (
connector = 'mysql-cdc',
hostname = 'mysql',
port = '3306',
username = 'root',
password = '123456',
password = secret mysql_pwd,
database.name = 'mydb',
server.id = '2'
);
Expand All @@ -27,4 +28,4 @@ CREATE TABLE lineitem_rw (
L_SHIPMODE VARCHAR,
L_COMMENT VARCHAR,
PRIMARY KEY(L_ORDERKEY, L_LINENUMBER)
) FROM mysql_mydb TABLE 'mydb.lineitem';
) FROM mysql_mydb TABLE 'mydb.lineitem';
8 changes: 5 additions & 3 deletions integration_tests/postgres-cdc/create_source.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
create secret postgres_pwd with (backend = 'meta') as '123456';

create table person (
"id" int,
"name" varchar,
Expand All @@ -10,7 +12,7 @@ create table person (
hostname = 'postgres',
port = '5432',
username = 'myuser',
password = '123456',
password = secret postgres_pwd,
database.name = 'mydb',
schema.name = 'public',
table.name = 'person',
Expand Down Expand Up @@ -56,9 +58,9 @@ CREATE TABLE orders_rw (
hostname = 'postgres',
port = '5432',
username = 'myuser',
password = '123456',
password = secret postgres_pwd,
database.name = 'mydb',
schema.name = 'public',
table.name = 'orders',
slot.name = 'orders'
);
);
14 changes: 8 additions & 6 deletions integration_tests/starrocks-sink/create_sink.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
create secret starrocks_secret with (backend = 'meta') as '123456';

CREATE SINK bhv_starrocks_sink_primary
FROM
bhv_mv WITH (
Expand All @@ -7,7 +9,7 @@ FROM
starrocks.mysqlport = '9030',
starrocks.httpport = '8030',
starrocks.user = 'users',
starrocks.password = '123456',
starrocks.password = secret starrocks_secret,
starrocks.database = 'demo',
starrocks.table = 'demo_primary_table',
force_append_only='true'
Expand All @@ -22,7 +24,7 @@ FROM
starrocks.mysqlport = '9030',
starrocks.httpport = '8030',
starrocks.user = 'users',
starrocks.password = '123456',
starrocks.password = secret starrocks_secret,
starrocks.database = 'demo',
starrocks.table = 'demo_duplicate_table',
force_append_only='true'
Expand All @@ -37,7 +39,7 @@ FROM
starrocks.mysqlport = '9030',
starrocks.httpport = '8030',
starrocks.user = 'users',
starrocks.password = '123456',
starrocks.password = secret starrocks_secret,
starrocks.database = 'demo',
starrocks.table = 'demo_aggregate_table',
force_append_only='true'
Expand All @@ -52,7 +54,7 @@ FROM
starrocks.mysqlport = '9030',
starrocks.httpport = '8030',
starrocks.user = 'users',
starrocks.password = '123456',
starrocks.password = secret starrocks_secret,
starrocks.database = 'demo',
starrocks.table = 'demo_unique_table',
force_append_only='true'
Expand All @@ -67,7 +69,7 @@ FROM
starrocks.mysqlport = '9030',
starrocks.httpport = '8030',
starrocks.user = 'users',
starrocks.password = '123456',
starrocks.password = secret starrocks_secret,
starrocks.database = 'demo',
starrocks.table = 'upsert_table',
primary_key = 'user_id'
Expand All @@ -82,7 +84,7 @@ FROM
starrocks.mysqlport = '9030',
starrocks.httpport = '8030',
starrocks.user = 'users',
starrocks.password = '123456',
starrocks.password = secret starrocks_secret,
starrocks.database = 'demo',
starrocks.table = 'starrocks_types',
force_append_only='true'
Expand Down

0 comments on commit f0f4415

Please sign in to comment.