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();