mirror of
https://github.com/google/nomulus
synced 2026-09-18 22:14:23 +00:00
Add extra flow logic hooks for transfer approve, cancel and reject
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=139217498
This commit is contained in:
@@ -35,6 +35,8 @@ import google.registry.model.contact.ContactAuthInfo;
|
||||
import google.registry.model.domain.DomainAuthInfo;
|
||||
import google.registry.model.domain.DomainResource;
|
||||
import google.registry.model.domain.GracePeriod;
|
||||
import google.registry.model.domain.TestExtraLogicManager;
|
||||
import google.registry.model.domain.TestExtraLogicManager.TestExtraLogicManagerSuccessException;
|
||||
import google.registry.model.eppcommon.AuthInfo.PasswordAuth;
|
||||
import google.registry.model.eppcommon.Trid;
|
||||
import google.registry.model.poll.PendingActionNotificationResponse;
|
||||
@@ -259,4 +261,13 @@ public class DomainTransferRejectFlowTest
|
||||
|
||||
// NB: No need to test pending delete status since pending transfers will get cancelled upon
|
||||
// entering pending delete phase. So it's already handled in that test case.
|
||||
|
||||
@Test
|
||||
public void testSuccess_extra() throws Exception {
|
||||
setupDomainWithPendingTransfer("extra");
|
||||
clock.advanceOneMilli();
|
||||
RegistryExtraFlowLogicProxy.setOverride("extra", TestExtraLogicManager.class);
|
||||
thrown.expect(TestExtraLogicManagerSuccessException.class, "transfer rejected");
|
||||
doFailingTest("domain_transfer_reject_extra.xml");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user