diff --git a/ci/scripts/e2e-paid-source-test.sh b/ci/scripts/e2e-paid-source-test.sh index 6239569ef3bb9..e0fc1d19f2319 100755 --- a/ci/scripts/e2e-paid-source-test.sh +++ b/ci/scripts/e2e-paid-source-test.sh @@ -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" @@ -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" diff --git a/e2e_test/source/cdc_paid/cdc.load.slt b/e2e_test/source/cdc_paid/cdc.load.slt index f3a6dcc41c711..24f33cc0b40de 100644 --- a/e2e_test/source/cdc_paid/cdc.load.slt +++ b/e2e_test/source/cdc_paid/cdc.load.slt @@ -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}', @@ -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}', @@ -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}', diff --git a/e2e_test/source/cdc_paid/cdc.share_stream.slt b/e2e_test/source/cdc_paid/cdc.share_stream.slt index f976573caabfb..672190c0491ec 100644 --- a/e2e_test/source/cdc_paid/cdc.share_stream.slt +++ b/e2e_test/source/cdc_paid/cdc.share_stream.slt @@ -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}',