From a4aa614bfe51bce45d576d39ecd67584b4665d32 Mon Sep 17 00:00:00 2001 From: mcilwain Date: Thu, 30 May 2019 13:56:59 -0700 Subject: [PATCH] Add tests that some domain operations work in quiet periods This specifically includes info, transfer, and update. Note that normal domain creates do not work in quiet periods and are not expected to. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=250755940 --- .../registry/flows/domain/DomainInfoFlowTest.java | 14 ++++++++++++++ .../domain/DomainTransferRequestFlowTest.java | 12 ++++++++++++ .../flows/domain/DomainUpdateFlowTest.java | 15 +++++++++++++++ 3 files changed, 41 insertions(+) diff --git a/javatests/google/registry/flows/domain/DomainInfoFlowTest.java b/javatests/google/registry/flows/domain/DomainInfoFlowTest.java index bbc4ea291..342ff8015 100644 --- a/javatests/google/registry/flows/domain/DomainInfoFlowTest.java +++ b/javatests/google/registry/flows/domain/DomainInfoFlowTest.java @@ -17,6 +17,7 @@ package google.registry.flows.domain; import static com.google.common.io.BaseEncoding.base16; import static com.google.common.truth.Truth.assertThat; import static google.registry.model.ofy.ObjectifyService.ofy; +import static google.registry.model.registry.Registry.TldState.QUIET_PERIOD; import static google.registry.testing.DatastoreHelper.assertNoBillingEvents; import static google.registry.testing.DatastoreHelper.createTld; import static google.registry.testing.DatastoreHelper.newDomainBase; @@ -26,10 +27,12 @@ import static google.registry.testing.DatastoreHelper.persistResource; import static google.registry.testing.EppExceptionSubject.assertAboutEppExceptions; import static google.registry.testing.JUnitBackports.assertThrows; import static google.registry.testing.TestDataHelper.updateSubstitutions; +import static google.registry.util.DateTimeUtils.START_OF_TIME; import com.google.common.base.Predicates; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; +import com.google.common.collect.ImmutableSortedMap; import com.googlecode.objectify.Key; import google.registry.flows.EppException; import google.registry.flows.FlowUtils.UnknownCurrencyEppException; @@ -55,6 +58,7 @@ import google.registry.model.eppcommon.AuthInfo.PasswordAuth; import google.registry.model.eppcommon.StatusValue; import google.registry.model.host.HostResource; import google.registry.model.ofy.RequestCapturingAsyncDatastoreService; +import google.registry.model.registry.Registry; import google.registry.testing.AppEngineRule; import org.joda.time.DateTime; import org.junit.Before; @@ -269,6 +273,16 @@ public class DomainInfoFlowTest extends ResourceFlowTestCase