mirror of
https://github.com/google/nomulus
synced 2026-04-14 13:37:25 +00:00
Abstract KMS code with KmsConnection and create a fake KmsConnection
This simplifies the tests for KmsKeyring and KmsUpdater. This is a followup to [] ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=148496758
This commit is contained in:
@@ -39,4 +39,9 @@ public final class KmsModule {
|
||||
.setApplicationName(projectId)
|
||||
.build();
|
||||
}
|
||||
|
||||
@Provides
|
||||
static KmsConnection provideKmsAdapter(KmsConnectionImpl kmsAdapter) {
|
||||
return kmsAdapter;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user