1
0
mirror of https://github.com/google/nomulus synced 2026-01-04 20:24:22 +00:00

Add another TestCacheExtension usage (#1750)

This commit is contained in:
gbrodman
2022-08-19 10:17:15 -04:00
committed by GitHub
parent 4e21152f04
commit 8c1fb6bf00
2 changed files with 8 additions and 0 deletions

View File

@@ -22,8 +22,10 @@ import google.registry.testing.AppEngineExtension;
import google.registry.testing.BouncyCastleProviderExtension;
import google.registry.testing.FakeClock;
import google.registry.testing.FakeUrlConnectionService;
import google.registry.testing.TestCacheExtension;
import java.net.HttpURLConnection;
import java.net.URL;
import java.time.Duration;
import java.util.ArrayList;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -43,6 +45,10 @@ abstract class TmchActionTestCase {
@RegisterExtension
public final BouncyCastleProviderExtension bouncy = new BouncyCastleProviderExtension();
@RegisterExtension
public final TestCacheExtension testCacheExtension =
new TestCacheExtension.Builder().withClaimsListCache(Duration.ofHours(6)).build();
final FakeClock clock = new FakeClock();
final Marksdb marksdb = new Marksdb();

View File

@@ -27,6 +27,7 @@ import google.registry.util.ResourceUtils;
import google.registry.util.SystemClock;
import java.nio.file.Path;
import org.joda.time.DateTime;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
@@ -38,6 +39,7 @@ class TmchTestDataExpirationTest {
private static final FluentLogger logger = FluentLogger.forEnclosingClass();
@Disabled("TODO(b/243130376): update the data files when ICANN provides them")
@Test
void testActiveSignedMarkFiles_areValidAndNotExpired() throws Exception {
DomainFlowTmchUtils tmchUtils =