mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Support custom effective date for fee check command
Added support to specify custom effective date to run the fee check command. Such functionality is useful for TLDs with creation price as a function of time, such as those with EAP. However the implementation is not limited EAP or create price check. Any fee check can specify a date, as long as its XML schema supports a date. Currently conforming to fee extension v12, subject to schema changes. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=133420255
This commit is contained in:
parent
aa7c05cb8b
commit
743ff99ca3
12 changed files with 134 additions and 5 deletions
|
@ -776,7 +776,8 @@ public class DomainCheckFlowTest
|
|||
.setEapFeeSchedule(ImmutableSortedMap.of(
|
||||
START_OF_TIME, Money.of(USD, 0),
|
||||
clock.nowUtc().minusDays(1), Money.of(USD, 100),
|
||||
clock.nowUtc().plusDays(1), Money.of(USD, 0)))
|
||||
clock.nowUtc().plusDays(1), Money.of(USD, 50),
|
||||
clock.nowUtc().plusDays(2), Money.of(USD, 0)))
|
||||
.build());
|
||||
setEppInput(inputFile);
|
||||
runFlowAssertResponse(readFile(outputFile));
|
||||
|
@ -796,4 +797,11 @@ public class DomainCheckFlowTest
|
|||
public void testSuccess_eapFeeCheck_v12() throws Exception {
|
||||
runEapFeeCheckTest("domain_check_fee_v12.xml", "domain_check_eap_fee_response_v12.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_eapFeeCheck_date_v12() throws Exception {
|
||||
runEapFeeCheckTest("domain_check_fee_date_v12.xml",
|
||||
"domain_check_eap_fee_response_date_v12.xml");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue