mirror of
https://github.com/google/nomulus
synced 2026-01-08 07:11:44 +00:00
Fix missing LRP token during LRP period behavior
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=137321673
This commit is contained in:
@@ -893,18 +893,6 @@ public class DomainApplicationCreateFlowTest
|
||||
assertThat(ofy().load().entity(token).now().getRedemptionHistoryEntry()).isNotNull();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_landrush_duringLrpWithMissingToken() throws Exception {
|
||||
createTld("tld", TldState.LANDRUSH);
|
||||
persistResource(Registry.get("tld").asBuilder()
|
||||
.setLrpPeriod(new Interval(clock.nowUtc().minusDays(1), clock.nowUtc().plusDays(1)))
|
||||
.build());
|
||||
setEppInput("domain_create_landrush.xml");
|
||||
persistContactsAndHosts();
|
||||
clock.advanceOneMilli();
|
||||
doSuccessfulTest("domain_create_landrush_response.xml", false);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_landrushLrpApplication_superuser() throws Exception {
|
||||
// Using an LRP token as superuser should still mark the token as redeemed (i.e. same effect
|
||||
@@ -1028,6 +1016,19 @@ public class DomainApplicationCreateFlowTest
|
||||
assertThat(ofy().load().entity(token).now().getRedemptionHistoryEntry()).isNull();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_landrush_duringLrpWithMissingToken() throws Exception {
|
||||
createTld("tld", TldState.LANDRUSH);
|
||||
persistResource(Registry.get("tld").asBuilder()
|
||||
.setLrpPeriod(new Interval(clock.nowUtc().minusDays(1), clock.nowUtc().plusDays(1)))
|
||||
.build());
|
||||
setEppInput("domain_create_landrush.xml");
|
||||
persistContactsAndHosts();
|
||||
clock.advanceOneMilli();
|
||||
thrown.expect(InvalidLrpTokenException.class);
|
||||
runFlow();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_landrushWithPeriodInMonths() throws Exception {
|
||||
createTld("tld", TldState.LANDRUSH);
|
||||
|
||||
Reference in New Issue
Block a user