Fix whitelist tests

Followups to []
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=121993530
This commit is contained in:
cgoldfeder 2016-05-10 15:16:14 -07:00 committed by Justine Tunney
parent fc936ec2b0
commit d1f34776d2
7 changed files with 109 additions and 15 deletions

View file

@ -1074,12 +1074,11 @@ public class DomainUpdateFlowTest extends ResourceFlowTestCase<DomainUpdateFlow,
@Test
public void testFailure_newRegistrantNotWhitelisted() throws Exception {
setEppInput("domain_update_registrant_to_tech.xml");
persistReferencedEntities();
persistDomain();
persistResource(
Registry.get("tld").asBuilder()
.setAllowedRegistrantContactIds(ImmutableSet.of("sha8013"))
.setAllowedRegistrantContactIds(ImmutableSet.of("contact1234"))
.build());
clock.advanceOneMilli();
thrown.expect(RegistrantNotAllowedException.class);