-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is an automated cherry-pick of #10351
Signed-off-by: ti-chi-bot <[email protected]>
- Loading branch information
1 parent
552a41f
commit cefa9c5
Showing
19 changed files
with
921 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,26 +99,42 @@ func TestValidateSink(t *testing.T) { | |
|
||
// test sink uri error | ||
sinkURI := "mysql://root:[email protected]:3306/" | ||
<<<<<<< HEAD | ||
err := Validate(ctx, sinkURI, replicateConfig) | ||
======= | ||
err := Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig, nil) | ||
>>>>>>> c8ea7d0a75 (sink(ticdc): use pd clock in storage sink (#10351)) | ||
require.NotNil(t, err) | ||
require.Contains(t, err.Error(), "fail to open MySQL connection") | ||
|
||
// test sink uri right | ||
sinkURI = "blackhole://" | ||
<<<<<<< HEAD | ||
err = Validate(ctx, sinkURI, replicateConfig) | ||
======= | ||
err = Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig, nil) | ||
>>>>>>> c8ea7d0a75 (sink(ticdc): use pd clock in storage sink (#10351)) | ||
require.Nil(t, err) | ||
|
||
// test bdr mode error | ||
replicateConfig.BDRMode = true | ||
sinkURI = "blackhole://" | ||
<<<<<<< HEAD | ||
err = Validate(ctx, sinkURI, replicateConfig) | ||
======= | ||
err = Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig, nil) | ||
>>>>>>> c8ea7d0a75 (sink(ticdc): use pd clock in storage sink (#10351)) | ||
require.NotNil(t, err) | ||
require.Contains(t, err.Error(), "sink uri scheme is not supported in BDR mode") | ||
|
||
// test sink-scheme/syncpoint error | ||
replicateConfig.EnableSyncPoint = true | ||
sinkURI = "kafka://" | ||
<<<<<<< HEAD | ||
err = Validate(ctx, sinkURI, replicateConfig) | ||
======= | ||
err = Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig, nil) | ||
>>>>>>> c8ea7d0a75 (sink(ticdc): use pd clock in storage sink (#10351)) | ||
require.NotNil(t, err) | ||
require.Contains( | ||
t, err.Error(), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.