mirror of
https://github.com/google/nomulus.git
synced 2025-08-05 17:28:25 +02:00
Fix add/remove calculations when updating multiple domains
Lists used as accumulators were being updated individually for each domain without starting over from a fresh list each time, so the number of changes would grow for each additional domain and potentially be wrong if the previous domains were set up differently. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=204526006
This commit is contained in:
parent
278ec2b289
commit
8942c4fad1
3 changed files with 99 additions and 26 deletions
22
javatests/google/registry/tools/server/testdata/domain_update_add_two_hosts_remove_one.xml
vendored
Normal file
22
javatests/google/registry/tools/server/testdata/domain_update_add_two_hosts_remove_one.xml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<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>%DOMAIN%</domain:name>
|
||||
<domain:add>
|
||||
<domain:ns>
|
||||
<domain:hostObj>ns1.foo.fake</domain:hostObj>
|
||||
<domain:hostObj>ns2.foo.fake</domain:hostObj>
|
||||
</domain:ns>
|
||||
</domain:add>
|
||||
<domain:rem>
|
||||
<domain:ns>
|
||||
<domain:hostObj>%REMOVEHOST%</domain:hostObj>
|
||||
</domain:ns>
|
||||
</domain:rem>
|
||||
</domain:update>
|
||||
</update>
|
||||
<clTRID>RegistryTool</clTRID>
|
||||
</command>
|
||||
</epp>
|
Loading…
Add table
Add a link
Reference in a new issue