mirror of
https://github.com/google/nomulus.git
synced 2025-07-25 20:18:34 +02:00
Refactor RdeKeyringModule into FakeKeyringModule
A fake Keyring implementation is needed to test Keyring related tools now, so I've refactored the fake RdeKeyring to support all Keyring API methods and moved it to the common testing package. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=149977968
This commit is contained in:
parent
2353bcd8c5
commit
5779cc988b
15 changed files with 281 additions and 47 deletions
|
@ -24,6 +24,7 @@ import static org.junit.Assume.assumeTrue;
|
|||
import com.google.common.io.CharStreams;
|
||||
import google.registry.keyring.api.Keyring;
|
||||
import google.registry.testing.BouncyCastleProviderRule;
|
||||
import google.registry.testing.FakeKeyringModule;
|
||||
import google.registry.testing.GpgSystemCommandRule;
|
||||
import google.registry.testing.Providers;
|
||||
import google.registry.testing.ShardableTestCase;
|
||||
|
@ -60,7 +61,7 @@ public class RydeGpgIntegrationTest extends ShardableTestCase {
|
|||
RdeTestData.get("pgp-public-keyring.asc"),
|
||||
RdeTestData.get("pgp-private-keyring-escrow.asc"));
|
||||
|
||||
private final RdeKeyringModule keyringFactory = new RdeKeyringModule();
|
||||
private final FakeKeyringModule keyringFactory = new FakeKeyringModule();
|
||||
|
||||
@DataPoints
|
||||
public static GpgCommand[] commands = new GpgCommand[] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue