mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 00:17:20 +02:00
Add a domain application update custom pricing logic test
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=142294037
This commit is contained in:
parent
9764ab0a56
commit
d485c5d7e2
3 changed files with 56 additions and 3 deletions
|
@ -673,11 +673,13 @@ public class DomainApplicationUpdateFlowTest
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_flags_feeMismatch() throws Exception {
|
||||
public void testFailure_customPricingLogic_feeMismatch() throws Exception {
|
||||
persistReferencedEntities();
|
||||
persistResource(
|
||||
newDomainApplication("update-42.flags").asBuilder().setRepoId("1-ROID").build());
|
||||
setEppInput("domain_update_sunrise_flags.xml", ImmutableMap.of("FEE", "12"));
|
||||
newDomainApplication("non-free-update.tld").asBuilder().setRepoId("1-ROID").build());
|
||||
setEppInput(
|
||||
"domain_update_sunrise_fee.xml",
|
||||
ImmutableMap.of("DOMAIN", "non-free-update.tld", "AMOUNT", "12"));
|
||||
clock.advanceOneMilli();
|
||||
thrown.expect(FeesMismatchException.class);
|
||||
runFlow();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue