mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 08:27:14 +02:00
Add extra flow logic for Restore
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=137191080
This commit is contained in:
parent
a4d78afd70
commit
e40db46822
5 changed files with 38 additions and 11 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue