mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 00:47:11 +02:00
Revert poll message ID changes (going with a different approach)
*** Reason for rollback *** Going with a safer approach to using fresh poll message IDs that doesn't mutate domains themselves. *** Original change description *** Use PollMessage IDs that are globally unique across all time The previous functionality was reusing the same PollMessage ID for Autorenews every year. This can potentially cause confusion at registrars if they were expecting these to be globall unique across all time. So this change simply changes the ID during autorenew. *** ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=177081870
This commit is contained in:
parent
38b2cb13bf
commit
0935ba6450
5 changed files with 11 additions and 134 deletions
|
@ -364,61 +364,6 @@ public class EppLifecycleDomainTest extends EppTestCase {
|
|||
assertCommandAndResponse("logout.xml", "logout_response.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDomainCreate_annualAutoRenewPollMessagesAreSent() throws Exception {
|
||||
assertCommandAndResponse("login_valid.xml", "login_response.xml");
|
||||
// Create the domain.
|
||||
createFakesite();
|
||||
|
||||
// The first autorenew poll message isn't seen until after the initial two years of registration
|
||||
// are up.
|
||||
assertCommandAndResponse(
|
||||
"poll.xml", "poll_response_empty.xml", DateTime.parse("2001-01-01T00:01:00Z"));
|
||||
assertCommandAndResponse(
|
||||
"poll.xml",
|
||||
ImmutableMap.of(),
|
||||
"poll_response_autorenew.xml",
|
||||
ImmutableMap.of(
|
||||
"ID", "1-C-EXAMPLE-13-16",
|
||||
"QDATE", "2002-06-01T00:04:00Z",
|
||||
"DOMAIN", "fakesite.example",
|
||||
"EXDATE", "2003-06-01T00:04:00Z"),
|
||||
DateTime.parse("2002-07-01T00:01:00Z"));
|
||||
assertCommandAndResponse(
|
||||
"poll_ack.xml",
|
||||
ImmutableMap.of("ID", "1-C-EXAMPLE-13-16"),
|
||||
"poll_ack_response_empty.xml",
|
||||
null,
|
||||
DateTime.parse("2002-07-01T00:02:00Z"));
|
||||
|
||||
// The second autorenew poll message isn't seen until after another year, and it should have a
|
||||
// different ID.
|
||||
assertCommandAndResponse(
|
||||
"poll.xml", "poll_response_empty.xml", DateTime.parse("2002-07-01T00:05:00Z"));
|
||||
assertCommandAndResponse(
|
||||
"poll.xml",
|
||||
ImmutableMap.of(),
|
||||
"poll_response_autorenew.xml",
|
||||
ImmutableMap.of(
|
||||
"ID", "1-C-EXAMPLE-13-17", // Note -- different than the previous ID.
|
||||
"QDATE", "2003-06-01T00:04:00Z",
|
||||
"DOMAIN", "fakesite.example",
|
||||
"EXDATE", "2004-06-01T00:04:00Z"),
|
||||
DateTime.parse("2003-07-01T00:05:00Z"));
|
||||
|
||||
// Ack the second poll message and verify that none remain.
|
||||
assertCommandAndResponse(
|
||||
"poll_ack.xml",
|
||||
ImmutableMap.of("ID", "1-C-EXAMPLE-13-17"),
|
||||
"poll_ack_response_empty.xml",
|
||||
null,
|
||||
DateTime.parse("2003-07-01T00:05:05Z"));
|
||||
assertCommandAndResponse(
|
||||
"poll.xml", "poll_response_empty.xml", DateTime.parse("2003-07-01T00:05:10Z"));
|
||||
|
||||
assertCommandAndResponse("logout.xml", "logout_response.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDomainTransferPollMessage_serverApproved() throws Exception {
|
||||
// As the losing registrar, create the domain.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue