Skip to content
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

Add RewrapManyDataKeyProseTest #1083

Merged
merged 2 commits into from
Feb 13, 2023
Merged
Show file tree
Hide file tree
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
Prev Previous commit
Rename and add comment
  • Loading branch information
katcharov committed Feb 13, 2023
commit 7ce09c82563203a6e8aed20e36ae43dfd543ed25
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@

import com.mongodb.ClientEncryptionSettings;
import com.mongodb.MongoClientSettings;
import com.mongodb.client.AbstractRewrapManyDataKeyProseTest;
import com.mongodb.client.AbstractClientEncryptionRewrapManyDataKeyProseTest;
import com.mongodb.client.MongoClient;
import com.mongodb.client.vault.ClientEncryption;
import com.mongodb.client.vault.ClientEncryptions;
import com.mongodb.reactivestreams.client.syncadapter.SyncMongoClient;

public class RewrapManyDataKeyProseTest extends AbstractRewrapManyDataKeyProseTest {
public class ClientEncryptionRewrapManyDataKeyProseTest extends AbstractClientEncryptionRewrapManyDataKeyProseTest {

@Override
protected MongoClient createMongoClient(final MongoClientSettings settings) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@
import static com.mongodb.client.Fixture.getMongoClientSettingsBuilder;
import static org.junit.jupiter.api.Assertions.assertEquals;

public abstract class AbstractRewrapManyDataKeyProseTest {
/**
* See <a href="https://github.com/mongodb/specifications/tree/master/source/client-side-encryption/tests#rewrap">
* 16. Rewrap</a>.
*/
public abstract class AbstractClientEncryptionRewrapManyDataKeyProseTest {

private static final Map<String, BsonDocument> MASTER_KEYS_BY_PROVIDER = new HashMap<>();
static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import com.mongodb.client.vault.ClientEncryption;
import com.mongodb.client.vault.ClientEncryptions;

public class RewrapManyDataKeyProseTest extends AbstractRewrapManyDataKeyProseTest {
public class ClientEncryptionRewrapManyDataKeyProseTest extends AbstractClientEncryptionRewrapManyDataKeyProseTest {

@Override
protected MongoClient createMongoClient(final MongoClientSettings settings) {
Expand Down