forked from pingcap/tiflow
-
Notifications
You must be signed in to change notification settings - Fork 0
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 pingcap#10351
Signed-off-by: ti-chi-bot <[email protected]>
- Loading branch information
1 parent
2d5a9f6
commit 1b9c26a
Showing
19 changed files
with
131 additions
and
54 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 |
---|---|---|
|
@@ -101,26 +101,26 @@ func TestValidateSink(t *testing.T) { | |
|
||
// test sink uri error | ||
sinkURI := "mysql://root:[email protected]:3306/" | ||
err := Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig) | ||
err := Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig, nil) | ||
require.NotNil(t, err) | ||
require.Contains(t, err.Error(), "fail to open MySQL connection") | ||
|
||
// test sink uri right | ||
sinkURI = "blackhole://" | ||
err = Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig) | ||
err = Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig, nil) | ||
require.Nil(t, err) | ||
|
||
// test bdr mode error | ||
replicateConfig.BDRMode = util.AddressOf(true) | ||
sinkURI = "blackhole://" | ||
err = Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig) | ||
err = Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig, nil) | ||
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 = util.AddressOf(true) | ||
sinkURI = "kafka://" | ||
err = Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig) | ||
err = Validate(ctx, model.DefaultChangeFeedID("test"), sinkURI, replicateConfig, nil) | ||
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
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
Oops, something went wrong.