mirror of
https://github.com/google/nomulus
synced 2026-09-18 22:14:23 +00:00
Add extra flow logic for Restore
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=137191080
This commit is contained in:
@@ -554,8 +554,22 @@ public class DomainRestoreRequestFlowTest extends
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_flags() throws Exception {
|
||||
setEppInput("domain_update_restore_request_flags.xml");
|
||||
public void testFlags_flagsWithWrongFee() throws Exception {
|
||||
setEppInput(
|
||||
"domain_update_restore_request_flags.xml",
|
||||
ImmutableMap.of("DOMAIN", "renew-42.flags", "FEE", "12"));
|
||||
persistPendingDeleteDomain();
|
||||
thrown.expect(FeesMismatchException.class);
|
||||
runFlow();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_flagsWithCorrectFee() throws Exception {
|
||||
// The total cost should be the renewal cost of 42 (set in the XML file) plus the restore cost
|
||||
// of 17 (set in the test registry).
|
||||
setEppInput(
|
||||
"domain_update_restore_request_flags.xml",
|
||||
ImmutableMap.of("DOMAIN", "renew-42.flags", "FEE", "59"));
|
||||
persistPendingDeleteDomain();
|
||||
thrown.expect(TestExtraLogicManagerSuccessException.class, "restored");
|
||||
runFlow();
|
||||
|
||||
Reference in New Issue
Block a user