mirror of
https://github.com/google/nomulus.git
synced 2025-08-06 01:35:17 +02:00
Add domain lifecycle test for renew with total term >10 years
Also some minor cleanup to make renewal testdata files easier to reuse. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=187508329
This commit is contained in:
parent
27894df45f
commit
ef26dabf32
6 changed files with 79 additions and 24 deletions
13
javatests/google/registry/flows/testdata/domain_renew.xml
vendored
Normal file
13
javatests/google/registry/flows/testdata/domain_renew.xml
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
|
||||
<command>
|
||||
<renew>
|
||||
<domain:renew
|
||||
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
|
||||
<domain:name>%DOMAIN%</domain:name>
|
||||
<domain:curExpDate>%EXPDATE%</domain:curExpDate>
|
||||
<domain:period unit="y">%YEARS%</domain:period>
|
||||
</domain:renew>
|
||||
</renew>
|
||||
<clTRID>ABC-12345</clTRID>
|
||||
</command>
|
||||
</epp>
|
11
javatests/google/registry/flows/testdata/domain_renew_response_exceeds_max_years.xml
vendored
Normal file
11
javatests/google/registry/flows/testdata/domain_renew_response_exceeds_max_years.xml
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
|
||||
<response>
|
||||
<result code="2004">
|
||||
<msg>New registration period exceeds maximum number of years (10)</msg>
|
||||
</result>
|
||||
<trID>
|
||||
<clTRID>ABC-12345</clTRID>
|
||||
<svTRID>server-trid</svTRID>
|
||||
</trID>
|
||||
</response>
|
||||
</epp>
|
Loading…
Add table
Add a link
Reference in a new issue