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:
mcilwain 2016-12-16 13:42:50 -08:00 committed by Ben McIlwain
parent 9764ab0a56
commit d485c5d7e2
3 changed files with 56 additions and 3 deletions

View file

@ -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();