Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
KeXiangWang committed Jun 25, 2024
1 parent 309a035 commit e26df72
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ci/scripts/e2e-paid-source-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ risedev slt './e2e_test/source/cdc_paid/cdc.validate.sql_server.slt'

echo "--- Cdc share source test"
# cdc share stream test cases
export MSSQL_HOST=db MSSQL_PORT=1433 MSSQL_USER=sa MSSQL_PASSWORD=YourPassword123 MSSQL_DATABASE=mydb
export MSSQL_HOST=sqlserver-server MSSQL_PORT=1433 MSSQL_USER=sa MSSQL_PASSWORD=YourPassword123 MSSQL_DATABASE=mydb
risedev slt './e2e_test/source/cdc_paid/cdc.share_stream.slt'

echo "--- Sql Server load and check"
Expand All @@ -71,7 +71,7 @@ echo "> cluster killed "


# insert new rows
export MSSQL_HOST=db MSSQL_PORT=1433 MSSQL_USER=sa MSSQL_PASSWORD=YourPassword123 MSSQL_DATABASE=mydb
export MSSQL_HOST=sqlserver-server MSSQL_PORT=1433 MSSQL_USER=sa MSSQL_PASSWORD=YourPassword123 MSSQL_DATABASE=mydb
sqlcmd -S $MSSQL_HOST -U $MSSQL_USER -P $MSSQL_PASSWORD -d $MSSQL_DATABASE -i ./e2e_test/source/cdc_paid/sql_server_cdc_insert.sql
echo "> inserted new rows into sql server"

Expand Down
6 changes: 3 additions & 3 deletions e2e_test/source/cdc_paid/cdc.load.slt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ CREATE TABLE orders (
order_status SMALLINT
) WITH (
connector = 'sqlserver-cdc',
hostname = '${MSSQL_HOST:localhost}',
hostname = '${MSSQL_HOST:sqlserver-server}',
port = '${MSSQL_PORT:1433}',
username = '${MSSQL_USER:$USER}',
password = '${MSSQL_PASSWORD}',
Expand All @@ -28,7 +28,7 @@ CREATE TABLE single_type (
PRIMARY KEY (id)
) WITH (
connector = 'sqlserver-cdc',
hostname = '${MSSQL_HOST:localhost}',
hostname = '${MSSQL_HOST:sqlserver-server}',
port = '${MSSQL_PORT:1433}',
username = '${MSSQL_USER:$USER}',
password = '${MSSQL_PASSWORD}',
Expand All @@ -55,7 +55,7 @@ CREATE TABLE sqlserver_all_data_types (
c_datetimeoffset TIMESTAMPTZ
) WITH (
connector = 'sqlserver-cdc',
hostname = '${MSSQL_HOST:localhost}',
hostname = '${MSSQL_HOST:sqlserver-server}',
port = '${MSSQL_PORT:1433}',
username = '${MSSQL_USER:$USER}',
password = '${MSSQL_PASSWORD}',
Expand Down
2 changes: 1 addition & 1 deletion e2e_test/source/cdc_paid/cdc.share_stream.slt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ control substitution on
statement ok
CREATE SOURCE mssql_source WITH (
connector = 'sqlserver-cdc',
hostname = '${MSSQL_HOST:localhost}',
hostname = '${MSSQL_HOST:sqlserver-server}',
port = '${MSSQL_PORT:1433}',
username = '${MSSQL_USER:$USER}',
password = '${MSSQL_PASSWORD}',
Expand Down

0 comments on commit e26df72

Please sign in to comment.