Add a missing verification to DomainApplicationUpdateFlow.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=135712711
This commit is contained in:
cgoldfeder 2016-10-10 13:25:12 -07:00 committed by Ben McIlwain
parent dfe0ba32cb
commit 049c636966
17 changed files with 27 additions and 14 deletions

View file

@ -35,6 +35,7 @@ import google.registry.flows.ResourceFlowTestCase;
import google.registry.flows.ResourceFlowUtils.ResourceDoesNotExistException;
import google.registry.flows.ResourceFlowUtils.ResourceNotOwnedException;
import google.registry.flows.domain.DomainApplicationUpdateFlow.ApplicationStatusProhibitsUpdateException;
import google.registry.flows.domain.DomainFlowUtils.ApplicationDomainNameMismatchException;
import google.registry.flows.domain.DomainFlowUtils.DuplicateContactForRoleException;
import google.registry.flows.domain.DomainFlowUtils.EmptySecDnsUpdateException;
import google.registry.flows.domain.DomainFlowUtils.LinkedResourcesDoNotExistException;
@ -399,6 +400,14 @@ public class DomainApplicationUpdateFlowTest
runFlow();
}
@Test
public void testFailure_applicationDomainNameMismatch() throws Exception {
persistReferencedEntities();
persistResource(newApplicationBuilder().setFullyQualifiedDomainName("something.tld").build());
thrown.expect(ApplicationDomainNameMismatchException.class);
runFlow();
}
@Test
public void testFailure_neverExisted() throws Exception {
persistReferencedEntities();

View file

@ -3,7 +3,7 @@
<update>
<domain:update
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com</domain:name>
<domain:name>example.tld</domain:name>
<domain:add>
<domain:contact type="tech">sh8013</domain:contact>
<domain:status s="clientHold"

View file

@ -3,7 +3,7 @@
<update>
<domain:update
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com</domain:name>
<domain:name>example.tld</domain:name>
<domain:chg>
<domain:authInfo>
<domain:pw>2BARfoo</domain:pw>

View file

@ -5,7 +5,7 @@
<update>
<domain:update
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com</domain:name>
<domain:name>example.tld</domain:name>
</domain:update>
</update>
<extension>

View file

@ -5,7 +5,7 @@
<update>
<domain:update
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com</domain:name>
<domain:name>example.tld</domain:name>
</domain:update>
</update>
<extension>

View file

@ -5,7 +5,7 @@
<update>
<domain:update
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com</domain:name>
<domain:name>example.tld</domain:name>
</domain:update>
</update>
<extension>

View file

@ -5,7 +5,7 @@
<update>
<domain:update
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com</domain:name>
<domain:name>example.tld</domain:name>
</domain:update>
</update>
<extension>

View file

@ -5,7 +5,7 @@
<update>
<domain:update
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com</domain:name>
<domain:name>example.tld</domain:name>
</domain:update>
</update>
<extension>

View file

@ -5,7 +5,7 @@
<update>
<domain:update
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com</domain:name>
<domain:name>example.tld</domain:name>
</domain:update>
</update>
<extension>

View file

@ -5,7 +5,7 @@
<update>
<domain:update
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com</domain:name>
<domain:name>example.tld</domain:name>
</domain:update>
</update>
<extension>

View file

@ -5,7 +5,7 @@
<update>
<domain:update
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com</domain:name>
<domain:name>example.tld</domain:name>
</domain:update>
</update>
<extension>

View file

@ -5,7 +5,7 @@
<update>
<domain:update
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com</domain:name>
<domain:name>example.tld</domain:name>
</domain:update>
</update>
<extension>

View file

@ -3,7 +3,7 @@
<update>
<domain:update
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com</domain:name>
<domain:name>example.tld</domain:name>
<domain:add>
<domain:contact type="tech">sh8013</domain:contact>
</domain:add>

View file

@ -3,7 +3,7 @@
<update>
<domain:update
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com</domain:name>
<domain:name>example.tld</domain:name>
<domain:rem>
<domain:contact type="admin">sh8013</domain:contact>
</domain:rem>

View file

@ -3,7 +3,7 @@
<update>
<domain:update
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.com</domain:name>
<domain:name>example.tld</domain:name>
<domain:add>
<domain:contact type="admin">mak21</domain:contact>
<domain:contact type="billing">mak21</domain:contact>