mirror of
https://github.com/google/nomulus.git
synced 2025-06-29 07:43:37 +02:00
Add TLD extra create flow logic
This CL implements the TLD-specific extra flow logic for Create commands, including tests. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=135922961
This commit is contained in:
parent
cfbf62ef4e
commit
1a9f91ed9e
3 changed files with 74 additions and 0 deletions
21
javatests/google/registry/flows/dotapp/testdata/domain_create_no_flags.xml
vendored
Normal file
21
javatests/google/registry/flows/dotapp/testdata/domain_create_no_flags.xml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
<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>
|
||||
<clTRID>ABC-12345</clTRID>
|
||||
</command>
|
||||
</epp>
|
26
javatests/google/registry/flows/dotapp/testdata/domain_create_one_flag.xml
vendored
Normal file
26
javatests/google/registry/flows/dotapp/testdata/domain_create_one_flag.xml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
<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>
|
||||
</extension>
|
||||
<clTRID>ABC-12345</clTRID>
|
||||
</command>
|
||||
</epp>
|
27
javatests/google/registry/flows/dotapp/testdata/domain_create_two_flags.xml
vendored
Normal file
27
javatests/google/registry/flows/dotapp/testdata/domain_create_two_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>
|
||||
<flags:create xmlns:flags="urn:google:params:xml:ns:flags-0.1">
|
||||
<flags:flag>%FLAG1%</flags:flag>
|
||||
<flags:flag>%FLAG2%</flags:flag>
|
||||
</flags:create>
|
||||
</extension>
|
||||
<clTRID>ABC-12345</clTRID>
|
||||
</command>
|
||||
</epp>
|
Loading…
Add table
Add a link
Reference in a new issue