Add extra flow logic for Restore

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=137191080
This commit is contained in:
mountford 2016-10-25 12:58:40 -07:00 committed by Ben McIlwain
parent a4d78afd70
commit e40db46822
5 changed files with 38 additions and 11 deletions

View file

@ -615,7 +615,8 @@ public class DomainRenewFlowTest extends ResourceFlowTestCase<DomainRenewFlow, D
@Test
public void testFailure_flags_feeMismatch() throws Exception {
setEppInput("domain_renew_flags.xml", ImmutableMap.of("FEE", "11"));
setEppInput(
"domain_renew_flags.xml", ImmutableMap.of("DOMAIN", "renew-42.flags", "FEE", "11"));
persistDomain();
thrown.expect(FeesMismatchException.class);
runFlow();
@ -623,7 +624,8 @@ public class DomainRenewFlowTest extends ResourceFlowTestCase<DomainRenewFlow, D
@Test
public void testSuccess_flags() throws Exception {
setEppInput("domain_renew_flags.xml", ImmutableMap.of("FEE", "42"));
setEppInput(
"domain_renew_flags.xml", ImmutableMap.of("DOMAIN", "renew-42.flags", "FEE", "42"));
persistDomain();
thrown.expect(TestExtraLogicManagerSuccessException.class, "renewed");
runFlow();