-
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.
- Loading branch information
1 parent
f6fa13f
commit 92cccfd
Showing
18 changed files
with
117 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
Oops, something went wrong.