mirror of
https://github.com/google/nomulus
synced 2026-09-02 06:07:03 +00:00
Replace KeystoreKeyring with KmsKeystore comparison
Replace KeystoreKeyring with ComparatorKeyring between KeystoreKeyring and KmsKeystore. In the opensource version, will replace DummyKeyring with KmsKeyring directly. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=152893767
This commit is contained in:
@@ -23,6 +23,7 @@ import google.registry.rde.Ghostryde.DecodeResult;
|
||||
import google.registry.testing.BouncyCastleProviderRule;
|
||||
import google.registry.testing.FakeKeyringModule;
|
||||
import google.registry.testing.InjectRule;
|
||||
import google.registry.testing.Providers;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
@@ -67,8 +68,8 @@ public class GhostrydeCommandTest extends CommandTestCase<GhostrydeCommand> {
|
||||
public void before() throws Exception {
|
||||
keyring = new FakeKeyringModule().get();
|
||||
command.ghostryde = new Ghostryde(1024);
|
||||
command.rdeStagingDecryptionKey = keyring.getRdeStagingDecryptionKey();
|
||||
command.rdeStagingEncryptionKey = keyring.getRdeStagingEncryptionKey();
|
||||
command.rdeStagingDecryptionKey = Providers.of(keyring.getRdeStagingDecryptionKey());
|
||||
command.rdeStagingEncryptionKey = Providers.of(keyring.getRdeStagingEncryptionKey());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user