mirror of
https://github.com/google/nomulus
synced 2026-04-28 20:07:28 +00:00
Add the START_DATE_SUNRISE phase
The START_DATE_SUNRISE phase allows registration of domains only with a signed mark. In all other respects - it is identical to the GENERAL_AVAILABILITY phase. Note that Anchor Tenants bypass all checks, and are hence able to register domains without a signed mark. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=185534793
This commit is contained in:
@@ -1192,6 +1192,15 @@ public class DomainApplicationCreateFlowTest
|
||||
assertAboutEppExceptions().that(thrown).marshalsToXml();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_startDateSunrise() throws Exception {
|
||||
createTld("tld", TldState.START_DATE_SUNRISE);
|
||||
persistContactsAndHosts();
|
||||
clock.advanceOneMilli();
|
||||
EppException thrown = expectThrows(BadCommandForRegistryPhaseException.class, this::runFlow);
|
||||
assertAboutEppExceptions().that(thrown).marshalsToXml();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_wrongDeclaredPhase() throws Exception {
|
||||
setEppInput("domain_create_landrush_signed_mark.xml");
|
||||
@@ -1242,6 +1251,14 @@ public class DomainApplicationCreateFlowTest
|
||||
runSuperuserFlow("domain_create_sunrush_response.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_superuserStartDateSunrise() throws Exception {
|
||||
createTld("tld", TldState.START_DATE_SUNRISE);
|
||||
persistContactsAndHosts();
|
||||
clock.advanceOneMilli();
|
||||
runSuperuserFlow("domain_create_sunrush_response.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_superuserWrongDeclaredPhase() throws Exception {
|
||||
setEppInput("domain_create_landrush_signed_mark.xml");
|
||||
|
||||
Reference in New Issue
Block a user