-
Notifications
You must be signed in to change notification settings - Fork 126
feat: integration test for incremental sync and partitioning #521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: staging
Are you sure you want to change the base?
Conversation
streamUpdateCmd := updateStreamsCommand(*cfg.TestConfig, cfg.Namespace, []string{currentTestTable}, true) | ||
streamUpdateCmd := updateSelectedStreamsCommand(*cfg.TestConfig, cfg.Namespace, cfg.PartitionRegex, []string{currentTestTable}, true) | ||
if code, out, err := utils.ExecCommand(ctx, c, streamUpdateCmd); err != nil || code != 0 { | ||
return fmt.Errorf("failed to enable normalization in streams.json (%d): %s\n%s", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update this error message as well
streamUpdateCmd = updateSelectedStreamsCommand(*cfg.TestConfig, cfg.Namespace, cfg.PartitionRegex, []string{currentTestTable}, true) | ||
if code, out, err := utils.ExecCommand(ctx, c, streamUpdateCmd); err != nil || code != 0 { | ||
return fmt.Errorf("failed to enable normalization in streams.json for incremental (%d): %s\n%s", | ||
code, err, out, | ||
) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is getting repeated here.
// Initial incremental run (equivalent to full on first run) | ||
t.Log("Running Incremental - full load") | ||
if err := runSync(c, true, "", "r", cfg.ExpectedData); err != nil { | ||
return err | ||
} | ||
|
||
// Delta incremental: add new rows and sync again | ||
t.Log("Running Incremental - inserts") | ||
cfg.ExecuteQuery(ctx, t, []string{currentTestTable}, "insert", false) | ||
if err := runSync(c, true, "", "u", cfg.ExpectedData); err != nil { | ||
return err | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here as well a test cases array can be created and call that same for loop
Description
Fixes # (issue)
Type of change
How Has This Been Tested?
Screenshots or Recordings
Related PR's (If Any):