-
Notifications
You must be signed in to change notification settings - Fork 114
Add support for testing against multiple FDB clusters #3575
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
Merged
+590
−127
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
99c8a89
Add support for connecting to multiple cluster files in tests
ScottDugas 43aa388
Add support for testing specifically against multiple clusters
ScottDugas c26e200
Ensure FDB gets opened even if there are no cluster files
ScottDugas 672b305
Have fdb-extensions get cluster info from yaml too
ScottDugas f4aea84
Fix handling behavior when there is no cluster file specified
ScottDugas 11c900a
Throw RecordCoreException in FDBDatabaseExtepsion setup
ScottDugas d15b81e
Fix up exception conversion
ScottDugas d31a46d
Start two fdb clusters in CI
ScottDugas e058377
Add snakeyaml dependency to projects depending on core tests
ScottDugas 8e84a0e
Fix sqlline test
ScottDugas 71db28c
Use dbExtension.getDatabase in FDBRecordContextTest
ScottDugas 68fa77a
Create database with cluster file in ResolverMappingReplicatorTest.te…
ScottDugas ad284a6
Fixup RankIndexTest.writeOnlyRankQuery
ScottDugas f418350
Try creating an FDBTestClusterConfig in testFixtures
ScottDugas 2b9af6d
Don't use fixtures yet
ScottDugas 66c5f5f
Update some tests to get random cluster files from FDBTestEnvironment
ScottDugas 9cb9f2c
Update remaining tests to not use `null` clusterFile
ScottDugas 134938e
Fix checkstyle/javadoc checks
ScottDugas 64deb2b
Add option to start RelationalServer with a clusterFile & use that
ScottDugas e48f0f3
LocatableResolverTest needs to use the same clusterFile in tests that…
ScottDugas 74b886e
Fix last couple tests that wipe FDB
ScottDugas 6a953b0
Fix JDBC tests that depend on creating in process server
ScottDugas d1c1ee1
Fixup InProcessRelationalServer to use FDBTestEnvironment
ScottDugas fa20608
Update yaml-tests to use FDBTestEnvironment
ScottDugas 44037f2
Have YamlConnection provide cluster file so we can apply direct opera…
ScottDugas dae9a82
ExternalServerTest needs to provide a clusterFile
ScottDugas ffec130
Fixup comments in FDBTestEnvironment
ScottDugas 4617fc7
Change TestDatabaseExtension to pick a random database
ScottDugas 83f2657
Cleanup some cases where tests were using multiple clusters unintenti…
ScottDugas c9eeaa4
Have FDBDatabaseExtension use a single cluster for the test
ScottDugas 1e5552f
Always provide a cluster file, and reset in afterEach
ScottDugas 244c5f0
Properly handle null clusterFile
ScottDugas 0b63c36
Merge branch 'main' into multiple-fdb-clusters
ScottDugas e4d4631
Fixup post merge
ScottDugas 252f879
Fixup dependencies to use testFixtures.
ScottDugas 241055f
Merge branch 'main' into multiple-fdb-clusters
ScottDugas 521ce8b
Move FDBTestEnvironment to fdb-test-utils and update gradle dependencies
ScottDugas cc3ab6f
Remove unnecessary RelationalServer() overload
ScottDugas 54f6f5f
Add private constructor to FDBTestEnvironment
ScottDugas f2b81a5
Add coverage of RelationalServer.main
ScottDugas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 test could probably just use
dbExtension.getDatabase(), but I didn't want to change too much in this PR. And you have to take care to make sure you're not reusing a database created in the setup.