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

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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.

db.drop();
}

Expand Down