Skip to content

Fix the "database name is too long" error that happens when running against Serverless #1082

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

Conversation

stIncMale
Copy link
Member

@stIncMale stIncMale requested a review from katcharov February 9, 2023 22:57
@@ -88,7 +88,7 @@ public void setUp() {
provider -> provider.name, provider -> provider.propertiesSupplier)))
.build());
client.getDatabase(KEY_VAULT_NAMESPACE.getDatabaseName()).drop();
db = client.getDatabase(AbstractClientSideEncryptionAutoDataKeysTest.class.getSimpleName());
db = client.getDatabase("test");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps this should substring the first n characters of the test name instead? (I assume we use the original convention to match up databases with tests.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no convention for test namespaces. Renamed to autoDataKeysTest, which may be better than an abrupt cut-off that potentially tears a word apart.

@stIncMale stIncMale requested a review from katcharov February 10, 2023 15:03
Copy link
Collaborator

@katcharov katcharov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@stIncMale stIncMale merged commit a96faf6 into mongodb:master Feb 10, 2023
@stIncMale stIncMale deleted the JAVA-4679_fix_database_name_too_long_on_serverless branch February 10, 2023 17:40
@stIncMale stIncMale self-assigned this Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants