diff --git a/javatests/google/registry/flows/EppCommitLogsTest.java b/javatests/google/registry/flows/EppCommitLogsTest.java index e691621bc..56553377a 100644 --- a/javatests/google/registry/flows/EppCommitLogsTest.java +++ b/javatests/google/registry/flows/EppCommitLogsTest.java @@ -101,7 +101,7 @@ public class EppCommitLogsTest extends ShardableTestCase { clock.advanceBy(standardDays(1)); DateTime timeAtCreate = clock.nowUtc(); clock.setTo(timeAtCreate); - eppLoader = new EppLoader(this, "domain_create.xml"); + eppLoader = new EppLoader(this, "domain_create.xml", ImmutableMap.of("DOMAIN", "example.tld")); runFlow(); ofy().clearSessionCache(); Key key = Key.create(ofy().load().type(DomainResource.class).first().now()); diff --git a/javatests/google/registry/flows/EppLifecycleDomainTest.java b/javatests/google/registry/flows/EppLifecycleDomainTest.java index 44e4dbcaf..12585f0ec 100644 --- a/javatests/google/registry/flows/EppLifecycleDomainTest.java +++ b/javatests/google/registry/flows/EppLifecycleDomainTest.java @@ -142,7 +142,8 @@ public class EppLifecycleDomainTest extends EppTestCase { createContacts(DateTime.parse("2000-06-01T00:00:00Z")); // Create domain example.tld - assertThatCommand("domain_create_no_hosts_or_dsdata.xml") + assertThatCommand( + "domain_create_no_hosts_or_dsdata.xml", ImmutableMap.of("DOMAIN", "example.tld")) .atTime("2000-06-01T00:02:00Z") .hasResponse( "domain_create_response.xml", @@ -171,7 +172,8 @@ public class EppLifecycleDomainTest extends EppTestCase { // Create domain example.tld DateTime createTime = DateTime.parse("2000-06-01T00:02:00Z"); - assertThatCommand("domain_create_no_hosts_or_dsdata.xml") + assertThatCommand( + "domain_create_no_hosts_or_dsdata.xml", ImmutableMap.of("DOMAIN", "example.tld")) .atTime(createTime) .hasResponse( "domain_create_response.xml", @@ -219,7 +221,8 @@ public class EppLifecycleDomainTest extends EppTestCase { DateTime createTime = DateTime.parse("2000-06-01T00:02:00Z"); // Create domain example.tld - assertThatCommand("domain_create_no_hosts_or_dsdata.xml") + assertThatCommand( + "domain_create_no_hosts_or_dsdata.xml", ImmutableMap.of("DOMAIN", "example.tld")) .atTime(createTime) .hasResponse( "domain_create_response.xml", @@ -481,7 +484,8 @@ public class EppLifecycleDomainTest extends EppTestCase { createFakesite(); // Create domain example.tld - assertThatCommand("domain_create_no_hosts_or_dsdata.xml") + assertThatCommand( + "domain_create_no_hosts_or_dsdata.xml", ImmutableMap.of("DOMAIN", "example.tld")) .atTime("2000-06-02T00:00:00Z") .hasResponse( "domain_create_response.xml", @@ -948,7 +952,8 @@ public class EppLifecycleDomainTest extends EppTestCase { // Create domain example.bar.foo.tld assertThatCommand( - "domain_create_wildcard.xml", ImmutableMap.of("HOSTNAME", "example.bar.foo.tld")) + "domain_create_no_hosts_or_dsdata.xml", + ImmutableMap.of("DOMAIN", "example.bar.foo.tld")) .atTime("2000-06-01T00:02:00.001Z") .hasResponse( "domain_create_response.xml", @@ -958,7 +963,8 @@ public class EppLifecycleDomainTest extends EppTestCase { "EXDATE", "2002-06-01T00:02:00Z")); // Create domain example.foo.tld - assertThatCommand("domain_create_wildcard.xml", ImmutableMap.of("HOSTNAME", "example.foo.tld")) + assertThatCommand( + "domain_create_no_hosts_or_dsdata.xml", ImmutableMap.of("DOMAIN", "example.foo.tld")) .atTime("2000-06-01T00:02:00.002Z") .hasResponse( "domain_create_response.xml", @@ -968,7 +974,8 @@ public class EppLifecycleDomainTest extends EppTestCase { "EXDATE", "2002-06-01T00:02:00Z")); // Create domain example.tld - assertThatCommand("domain_create_wildcard.xml", ImmutableMap.of("HOSTNAME", "example.tld")) + assertThatCommand( + "domain_create_no_hosts_or_dsdata.xml", ImmutableMap.of("DOMAIN", "example.tld")) .atTime("2000-06-01T00:02:00.003Z") .hasResponse( "domain_create_response.xml", @@ -988,7 +995,8 @@ public class EppLifecycleDomainTest extends EppTestCase { createContacts(DateTime.parse("2000-06-01T00:00:00.000Z")); // Create domain example.tld.foo - assertThatCommand("domain_create_wildcard.xml", ImmutableMap.of("HOSTNAME", "example.tld.foo")) + assertThatCommand( + "domain_create_no_hosts_or_dsdata.xml", ImmutableMap.of("DOMAIN", "example.tld.foo")) .atTime("2000-06-01T00:02:00.001Z") .hasResponse( "domain_create_response.xml", @@ -998,7 +1006,8 @@ public class EppLifecycleDomainTest extends EppTestCase { "EXDATE", "2002-06-01T00:02:00Z")); // Create domain example.tld - assertThatCommand("domain_create_wildcard.xml", ImmutableMap.of("HOSTNAME", "example.tld")) + assertThatCommand( + "domain_create_no_hosts_or_dsdata.xml", ImmutableMap.of("DOMAIN", "example.tld")) .atTime("2000-06-01T00:02:00.002Z") .hasResponse( "domain_create_response.xml", @@ -1045,7 +1054,9 @@ public class EppLifecycleDomainTest extends EppTestCase { "MSG", "Declared launch extension phase does not match the current registry phase")); - assertThatCommand("domain_create_wildcard.xml", ImmutableMap.of("HOSTNAME", "general.example")) + assertThatCommand( + "domain_create_no_hosts_or_dsdata.xml", + ImmutableMap.of("DOMAIN", "general.example")) .atTime(sunriseDate.minusDays(1)) .hasResponse( "response_error.xml", @@ -1068,7 +1079,9 @@ public class EppLifecycleDomainTest extends EppTestCase { .atTime(sunriseDate.plusDays(1).plusMinutes(1)) .hasResponse("generic_success_response.xml"); - assertThatCommand("domain_create_wildcard.xml", ImmutableMap.of("HOSTNAME", "general.example")) + assertThatCommand( + "domain_create_no_hosts_or_dsdata.xml", + ImmutableMap.of("DOMAIN", "general.example")) .atTime(sunriseDate.plusDays(2)) .hasResponse( "response_error.xml", @@ -1086,7 +1099,9 @@ public class EppLifecycleDomainTest extends EppTestCase { "MSG", "Declared launch extension phase does not match the current registry phase")); - assertThatCommand("domain_create_wildcard.xml", ImmutableMap.of("HOSTNAME", "general.example")) + assertThatCommand( + "domain_create_no_hosts_or_dsdata.xml", + ImmutableMap.of("DOMAIN", "general.example")) .atTime(gaDate.plusDays(2)) .hasResponse( "domain_create_response.xml", diff --git a/javatests/google/registry/flows/EppLifecycleHostTest.java b/javatests/google/registry/flows/EppLifecycleHostTest.java index 10889d8fd..37e8d71ca 100644 --- a/javatests/google/registry/flows/EppLifecycleHostTest.java +++ b/javatests/google/registry/flows/EppLifecycleHostTest.java @@ -165,7 +165,8 @@ public class EppLifecycleHostTest extends EppTestCase { // Create domain example.bar.foo.tld assertThatCommand( - "domain_create_wildcard.xml", ImmutableMap.of("HOSTNAME", "example.bar.foo.tld")) + "domain_create_no_hosts_or_dsdata.xml", + ImmutableMap.of("DOMAIN", "example.bar.foo.tld")) .atTime("2000-06-01T00:02:00.000Z") .hasResponse( "domain_create_response.xml", @@ -175,7 +176,8 @@ public class EppLifecycleHostTest extends EppTestCase { "EXDATE", "2002-06-01T00:02:00Z")); // Create domain example.foo.tld - assertThatCommand("domain_create_wildcard.xml", ImmutableMap.of("HOSTNAME", "example.foo.tld")) + assertThatCommand( + "domain_create_no_hosts_or_dsdata.xml", ImmutableMap.of("DOMAIN", "example.foo.tld")) .atTime("2000-06-01T00:02:00.001Z") .hasResponse( "domain_create_response.xml", @@ -185,7 +187,8 @@ public class EppLifecycleHostTest extends EppTestCase { "EXDATE", "2002-06-01T00:02:00Z")); // Create domain example.tld - assertThatCommand("domain_create_wildcard.xml", ImmutableMap.of("HOSTNAME", "example.tld")) + assertThatCommand( + "domain_create_no_hosts_or_dsdata.xml", ImmutableMap.of("DOMAIN", "example.tld")) .atTime("2000-06-01T00:02:00.002Z") .hasResponse( "domain_create_response.xml", diff --git a/javatests/google/registry/flows/domain/DomainCreateFlowTest.java b/javatests/google/registry/flows/domain/DomainCreateFlowTest.java index 3ad107b47..a6fe0e965 100644 --- a/javatests/google/registry/flows/domain/DomainCreateFlowTest.java +++ b/javatests/google/registry/flows/domain/DomainCreateFlowTest.java @@ -166,7 +166,7 @@ public class DomainCreateFlowTest extends ResourceFlowTestCase substitutions = ImmutableMap.of("DOMAIN", "custom-logic-test.tld"); - setEppInput("domain_create_wildcard.xml", substitutions); + setEppInput("domain_create.xml", substitutions); persistContactsAndHosts(); runFlowAssertResponse( CommitMode.LIVE, @@ -1619,7 +1617,6 @@ public class DomainCreateFlowTest extends ResourceFlowTestCase - example.tld + %DOMAIN% 2 ns1.example.net diff --git a/javatests/google/registry/flows/domain/testdata/domain_create_no_hosts_or_dsdata.xml b/javatests/google/registry/flows/domain/testdata/domain_create_no_hosts_or_dsdata.xml index 41c6a586e..7728301c3 100644 --- a/javatests/google/registry/flows/domain/testdata/domain_create_no_hosts_or_dsdata.xml +++ b/javatests/google/registry/flows/domain/testdata/domain_create_no_hosts_or_dsdata.xml @@ -3,7 +3,7 @@ - example.tld + %DOMAIN% 2 jd1234 sh8013 diff --git a/javatests/google/registry/flows/domain/testdata/domain_create_wildcard.xml b/javatests/google/registry/flows/domain/testdata/domain_create_wildcard.xml deleted file mode 100644 index f5bc7c25a..000000000 --- a/javatests/google/registry/flows/domain/testdata/domain_create_wildcard.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - %DOMAIN% - 2 - - ns1.example.net - ns2.example.net - - jd1234 - sh8013 - sh8013 - - 2fooBAR - - - - ABC-12345 - - diff --git a/javatests/google/registry/flows/testdata/domain_create.xml b/javatests/google/registry/flows/testdata/domain_create.xml index d8a4940cd..f5bc7c25a 100644 --- a/javatests/google/registry/flows/testdata/domain_create.xml +++ b/javatests/google/registry/flows/testdata/domain_create.xml @@ -3,7 +3,7 @@ - example.tld + %DOMAIN% 2 ns1.example.net diff --git a/javatests/google/registry/flows/testdata/domain_create_no_hosts_or_dsdata.xml b/javatests/google/registry/flows/testdata/domain_create_no_hosts_or_dsdata.xml index 41c6a586e..7728301c3 100644 --- a/javatests/google/registry/flows/testdata/domain_create_no_hosts_or_dsdata.xml +++ b/javatests/google/registry/flows/testdata/domain_create_no_hosts_or_dsdata.xml @@ -3,7 +3,7 @@ - example.tld + %DOMAIN% 2 jd1234 sh8013 diff --git a/javatests/google/registry/flows/testdata/domain_create_wildcard.xml b/javatests/google/registry/flows/testdata/domain_create_wildcard.xml deleted file mode 100644 index 115b41be8..000000000 --- a/javatests/google/registry/flows/testdata/domain_create_wildcard.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - %HOSTNAME% - 2 - jd1234 - sh8013 - sh8013 - - 2fooBAR - - - - ABC-12345 - -