-
Notifications
You must be signed in to change notification settings - Fork 40
Merge ConsensusCommitTestUtils and ConsensusCommitIntegrationTestUtils #2733
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
Merge ConsensusCommitTestUtils and ConsensusCommitIntegrationTestUtils #2733
Conversation
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.
Pull Request Overview
This PR consolidates two similar utility classes by merging ConsensusCommitIntegrationTestUtils into ConsensusCommitTestUtils and updating all references accordingly.
- Unified suffix addition functionality across integration tests by replacing all calls to ConsensusCommitIntegrationTestUtils with ConsensusCommitTestUtils.
- Removed the obsolete ConsensusCommitIntegrationTestUtils file.
Reviewed Changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| integration-test/.../TwoPhaseConsensusCommitWithIncludeMetadataEnabledIntegrationTestBase.java | Updated suffix addition call to use ConsensusCommitTestUtils |
| integration-test/.../TwoPhaseConsensusCommitSpecificIntegrationTestBase.java | Updated both properties1 and properties2 suffix addition calls |
| integration-test/.../TwoPhaseConsensusCommitIntegrationTestBase.java | Replaced suffix addition calls in both getProperties1 and getProperties2 |
| integration-test/.../TwoPhaseConsensusCommitCrossPartitionScanIntegrationTestBase.java | Updated calls to add suffix to coordinator namespace |
| integration-test/.../ConsensusCommitWithIncludeMetadataEnabledIntegrationTestBase.java | Replaced suffix addition call in beforeAll() |
| integration-test/.../ConsensusCommitTestUtils.java | Introduced new merged utility method and preserved existing functionality |
| integration-test/.../ConsensusCommitSpecificIntegrationTestBase.java | Updated suffix addition call in beforeAll() |
| integration-test/.../ConsensusCommitNullMetadataIntegrationTestBase.java | Replaced suffix addition call in beforeAll() |
| integration-test/.../ConsensusCommitIntegrationTestBase.java | Updated suffix addition call in getProperties() |
| integration-test/.../ConsensusCommitCrossPartitionScanIntegrationTestBase.java | Updated suffix addition call in getProperties() |
| integration-test/.../ConsensusCommitAdminRepairIntegrationTestBase.java | Updated suffix addition call in getProperties() |
| integration-test/.../ConsensusCommitAdminIntegrationTestBase.java | Updated suffix addition call in getProperties() |
| integration-test/.../ConsensusCommitAdminImportTableIntegrationTestBase.java | Updated suffix addition call in getProperties() |
| core/.../MultiStorageSchemaLoaderIntegrationTest.java | Replaced suffix addition for both Cassandra and JDBC properties |
| core/.../ConsensusCommitJdbcEnv.java | Updated suffix addition call in getProperties() |
| core/.../ConsensusCommitDynamoEnv.java | Updated suffix addition call in getProperties() |
| core/.../ConsensusCommitCosmosEnv.java | Updated suffix addition call in getProperties() |
| core/.../ConsensusCommitCassandraEnv.java | Updated suffix addition call in getProperties() |
Comments suppressed due to low confidence (2)
integration-test/src/main/java/com/scalar/db/transaction/consensuscommit/TwoPhaseConsensusCommitWithIncludeMetadataEnabledIntegrationTestBase.java:63
- Consider updating the related documentation or in-code comments to reference the merge of ConsensusCommitIntegrationTestUtils into ConsensusCommitTestUtils for clarity.
ConsensusCommitTestUtils.addSuffixToCoordinatorNamespace(properties, TEST_NAME);
integration-test/src/main/java/com/scalar/db/transaction/consensuscommit/ConsensusCommitIntegrationTestUtils.java:1
- Ensure that no external modules or tests rely on ConsensusCommitIntegrationTestUtils now that it has been removed from the codebase.
package com.scalar.db.transaction.consensuscommit; // file removal
| return properties; | ||
| } | ||
|
|
||
| public static void addSuffixToCoordinatorNamespace(Properties properties, String suffix) { |
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.
Moved this method from ConsensusCommitIntegrationTestUtils to ConsensusCommitTestUtils.
feeblefakie
left a comment
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.
LGTM! Thank you!
komamitsu
left a comment
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.
LGTM! 👍
…usCommitIntegrationTestUtils
Description
This PR merges
ConsensusCommitTestUtilsandConsensusCommitIntegrationTestUtils, as their roles are similar.Related issues and/or PRs
N/A
Changes made
ConsensusCommitTestUtilsandConsensusCommitIntegrationTestUtilsChecklist
Additional notes (optional)
N/A
Release notes
N/A