-
Notifications
You must be signed in to change notification settings - Fork 986
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
[Reverse Replication] Adding load test for custom transformation #2061
base: main
Are you sure you want to change the base?
[Reverse Replication] Adding load test for custom transformation #2061
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2061 +/- ##
==========================================
Coverage 46.87% 46.87%
- Complexity 4009 4336 +327
==========================================
Files 874 874
Lines 52038 52042 +4
Branches 5453 5454 +1
==========================================
+ Hits 24393 24397 +4
+ Misses 25905 25904 -1
- Partials 1740 1741 +1
|
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.
Some minor comments.
MigrationTransformationResponse response = | ||
new MigrationTransformationResponse(responseRow, false); | ||
return response; | ||
} else if (request.getTableName().equals("Person")) { |
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.
Can you add a todo and probably create a bug to rename this file? Looks like we are reusing this for Reverse replication Load tests, so the name should not contain ForLive
and IT
suffix.
} | ||
|
||
@Test | ||
public void reverseReplication1KTpsLoadTest() |
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.
Please change the method name to contain context of full test case. reverseReplication1KTpsWithCustomTransformation
maybe?
private final String spannerDdlResource = "SpannerToMySqlSourceLT/spanner-schema.sql"; | ||
private final String sessionFileResource = "SpannerToMySqlCustomTransformationLT/session.json"; | ||
private final String dataGeneratorSchemaResource = | ||
"SpannerToMySqlSourceLT/datagenerator-schema.json"; |
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.
Do you not need a new datagenerator-schema?
No description provided.