mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Add TLD-specific logic for application creates
This CL applies the status flag logic, but doesn't yet do any name checking ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=138769004
This commit is contained in:
parent
274b070b54
commit
8d97fa5858
6 changed files with 88 additions and 3 deletions
|
@ -358,7 +358,6 @@ public final class DomainApplicationCreateFlow implements TransactionalFlow {
|
||||||
extraFlowLogic.get().performAdditionalApplicationCreateLogic(
|
extraFlowLogic.get().performAdditionalApplicationCreateLogic(
|
||||||
newApplication,
|
newApplication,
|
||||||
clientId,
|
clientId,
|
||||||
newApplication.getCreationTime(),
|
|
||||||
years,
|
years,
|
||||||
eppInput,
|
eppInput,
|
||||||
historyEntry);
|
historyEntry);
|
||||||
|
|
|
@ -41,7 +41,6 @@ public interface RegistryExtraFlowLogic {
|
||||||
public void performAdditionalApplicationCreateLogic(
|
public void performAdditionalApplicationCreateLogic(
|
||||||
DomainApplication application,
|
DomainApplication application,
|
||||||
String clientId,
|
String clientId,
|
||||||
DateTime asOfDate,
|
|
||||||
int years,
|
int years,
|
||||||
EppInput eppInput,
|
EppInput eppInput,
|
||||||
HistoryEntry historyEntry) throws EppException;
|
HistoryEntry historyEntry) throws EppException;
|
||||||
|
|
27
javatests/google/registry/flows/dotapp/testdata/application_create_no_flags.xml
vendored
Normal file
27
javatests/google/registry/flows/dotapp/testdata/application_create_no_flags.xml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
|
||||||
|
<command>
|
||||||
|
<create>
|
||||||
|
<domain:create xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
|
||||||
|
<domain:name>example.tld</domain:name>
|
||||||
|
<domain:period unit="y">1</domain:period>
|
||||||
|
<domain:ns>
|
||||||
|
<domain:hostObj>ns1.example.net</domain:hostObj>
|
||||||
|
<domain:hostObj>ns2.example.net</domain:hostObj>
|
||||||
|
</domain:ns>
|
||||||
|
<domain:registrant>jd1234</domain:registrant>
|
||||||
|
<domain:contact type="admin">sh8013</domain:contact>
|
||||||
|
<domain:contact type="tech">sh8013</domain:contact>
|
||||||
|
<domain:authInfo>
|
||||||
|
<domain:pw>2fooBAR</domain:pw>
|
||||||
|
</domain:authInfo>
|
||||||
|
</domain:create>
|
||||||
|
</create>
|
||||||
|
<extension>
|
||||||
|
<launch:create
|
||||||
|
xmlns:launch="urn:ietf:params:xml:ns:launch-1.0">
|
||||||
|
<launch:phase name="landrush">sunrise</launch:phase>
|
||||||
|
</launch:create>
|
||||||
|
</extension>
|
||||||
|
<clTRID>ABC-12345</clTRID>
|
||||||
|
</command>
|
||||||
|
</epp>
|
30
javatests/google/registry/flows/dotapp/testdata/application_create_one_flag.xml
vendored
Normal file
30
javatests/google/registry/flows/dotapp/testdata/application_create_one_flag.xml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
|
||||||
|
<command>
|
||||||
|
<create>
|
||||||
|
<domain:create xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
|
||||||
|
<domain:name>example.tld</domain:name>
|
||||||
|
<domain:period unit="y">1</domain:period>
|
||||||
|
<domain:ns>
|
||||||
|
<domain:hostObj>ns1.example.net</domain:hostObj>
|
||||||
|
<domain:hostObj>ns2.example.net</domain:hostObj>
|
||||||
|
</domain:ns>
|
||||||
|
<domain:registrant>jd1234</domain:registrant>
|
||||||
|
<domain:contact type="admin">sh8013</domain:contact>
|
||||||
|
<domain:contact type="tech">sh8013</domain:contact>
|
||||||
|
<domain:authInfo>
|
||||||
|
<domain:pw>2fooBAR</domain:pw>
|
||||||
|
</domain:authInfo>
|
||||||
|
</domain:create>
|
||||||
|
</create>
|
||||||
|
<extension>
|
||||||
|
<flags:create xmlns:flags="urn:google:params:xml:ns:flags-0.1">
|
||||||
|
<flags:flag>%FLAG%</flags:flag>
|
||||||
|
</flags:create>
|
||||||
|
<launch:create
|
||||||
|
xmlns:launch="urn:ietf:params:xml:ns:launch-1.0">
|
||||||
|
<launch:phase name="landrush">sunrise</launch:phase>
|
||||||
|
</launch:create>
|
||||||
|
</extension>
|
||||||
|
<clTRID>ABC-12345</clTRID>
|
||||||
|
</command>
|
||||||
|
</epp>
|
31
javatests/google/registry/flows/dotapp/testdata/application_create_two_flags.xml
vendored
Normal file
31
javatests/google/registry/flows/dotapp/testdata/application_create_two_flags.xml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
|
||||||
|
<command>
|
||||||
|
<create>
|
||||||
|
<domain:create xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
|
||||||
|
<domain:name>example.tld</domain:name>
|
||||||
|
<domain:period unit="y">1</domain:period>
|
||||||
|
<domain:ns>
|
||||||
|
<domain:hostObj>ns1.example.net</domain:hostObj>
|
||||||
|
<domain:hostObj>ns2.example.net</domain:hostObj>
|
||||||
|
</domain:ns>
|
||||||
|
<domain:registrant>jd1234</domain:registrant>
|
||||||
|
<domain:contact type="admin">sh8013</domain:contact>
|
||||||
|
<domain:contact type="tech">sh8013</domain:contact>
|
||||||
|
<domain:authInfo>
|
||||||
|
<domain:pw>2fooBAR</domain:pw>
|
||||||
|
</domain:authInfo>
|
||||||
|
</domain:create>
|
||||||
|
</create>
|
||||||
|
<extension>
|
||||||
|
<flags:create xmlns:flags="urn:google:params:xml:ns:flags-0.1">
|
||||||
|
<flags:flag>%FLAG1%</flags:flag>
|
||||||
|
<flags:flag>%FLAG2%</flags:flag>
|
||||||
|
</flags:create>
|
||||||
|
<launch:create
|
||||||
|
xmlns:launch="urn:ietf:params:xml:ns:launch-1.0">
|
||||||
|
<launch:phase name="landrush">sunrise</launch:phase>
|
||||||
|
</launch:create>
|
||||||
|
</extension>
|
||||||
|
<clTRID>ABC-12345</clTRID>
|
||||||
|
</command>
|
||||||
|
</epp>
|
|
@ -118,7 +118,6 @@ public class TestExtraLogicManager implements RegistryExtraFlowLogic {
|
||||||
public void performAdditionalApplicationCreateLogic(
|
public void performAdditionalApplicationCreateLogic(
|
||||||
DomainApplication application,
|
DomainApplication application,
|
||||||
String clientId,
|
String clientId,
|
||||||
DateTime asOfDate,
|
|
||||||
int years,
|
int years,
|
||||||
EppInput eppInput,
|
EppInput eppInput,
|
||||||
HistoryEntry historyEntry) throws EppException {
|
HistoryEntry historyEntry) throws EppException {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue