mirror of
https://github.com/google/nomulus.git
synced 2025-08-03 00:12:11 +02:00
Add detailed log when DuplicateContactForRoleException is thrown
This change also added a test to verify that EPP request to modify both contacts and registrant at same time can be handled as expected. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=232935690
This commit is contained in:
parent
1c837dcad1
commit
71d65ed73a
4 changed files with 171 additions and 7 deletions
24
javatests/google/registry/flows/domain/testdata/domain_update_contacts_and_registrant.xml
vendored
Normal file
24
javatests/google/registry/flows/domain/testdata/domain_update_contacts_and_registrant.xml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">
|
||||
<command>
|
||||
<update>
|
||||
<domain:update xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd">
|
||||
<domain:name>example.tld</domain:name>
|
||||
<domain:add>
|
||||
<domain:contact type="admin">sh8013</domain:contact>
|
||||
<domain:contact type="tech">sh8013</domain:contact>
|
||||
<domain:contact type="billing">sh8013</domain:contact>
|
||||
</domain:add>
|
||||
<domain:rem>
|
||||
<domain:contact type="admin">mak21</domain:contact>
|
||||
<domain:contact type="tech">mak21</domain:contact>
|
||||
<domain:contact type="billing">mak21</domain:contact>
|
||||
</domain:rem>
|
||||
<domain:chg>
|
||||
<domain:registrant>sh8013</domain:registrant>
|
||||
</domain:chg>
|
||||
</domain:update>
|
||||
</update>
|
||||
<clTRID>ABC-12345</clTRID>
|
||||
</command>
|
||||
</epp>
|
34
javatests/google/registry/flows/domain/testdata/domain_update_multiple_duplicate_contacts.xml
vendored
Normal file
34
javatests/google/registry/flows/domain/testdata/domain_update_multiple_duplicate_contacts.xml
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
|
||||
<command>
|
||||
<update>
|
||||
<domain:update
|
||||
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
|
||||
<domain:name>example.tld</domain:name>
|
||||
<domain:add>
|
||||
<domain:ns>
|
||||
<domain:hostObj>ns2.example.foo</domain:hostObj>
|
||||
</domain:ns>
|
||||
<domain:contact type="tech">mak21</domain:contact>
|
||||
<domain:contact type="tech">sh8013</domain:contact>
|
||||
<domain:contact type="billing">mak21</domain:contact>
|
||||
<domain:contact type="billing">sh8013</domain:contact>
|
||||
<domain:status s="clientHold"
|
||||
lang="en">Payment overdue.</domain:status>
|
||||
</domain:add>
|
||||
<domain:rem>
|
||||
<domain:ns>
|
||||
<domain:hostObj>ns1.example.foo</domain:hostObj>
|
||||
</domain:ns>
|
||||
<domain:status s="clientUpdateProhibited"/>
|
||||
</domain:rem>
|
||||
<domain:chg>
|
||||
<domain:registrant>sh8013</domain:registrant>
|
||||
<domain:authInfo>
|
||||
<domain:pw>2BARfoo</domain:pw>
|
||||
</domain:authInfo>
|
||||
</domain:chg>
|
||||
</domain:update>
|
||||
</update>
|
||||
<clTRID>ABC-12345</clTRID>
|
||||
</command>
|
||||
</epp>
|
Loading…
Add table
Add a link
Reference in a new issue