Skip to content

Commit 41393e5

Browse files
authored
Revert "Remove contact as a supported object type in EPP (#2932)" (#2938)
This reverts commit d8e6473.
1 parent a7387e9 commit 41393e5

File tree

20 files changed

+26
-2
lines changed

20 files changed

+26
-2
lines changed

core/src/main/java/google/registry/model/eppcommon/ProtocolDefinition.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ public class ProtocolDefinition {
4646
public static final String LANGUAGE = "en";
4747

4848
public static final ImmutableSet<String> SUPPORTED_OBJECT_SERVICES =
49-
ImmutableSet.of("urn:ietf:params:xml:ns:host-1.0", "urn:ietf:params:xml:ns:domain-1.0");
49+
ImmutableSet.of(
50+
"urn:ietf:params:xml:ns:host-1.0",
51+
"urn:ietf:params:xml:ns:domain-1.0",
52+
"urn:ietf:params:xml:ns:contact-1.0");
5053

5154
/** Enum representing which environments should have which service extensions enabled. */
5255
private enum ServiceExtensionVisibility {

core/src/test/java/google/registry/model/eppinput/EppInputTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ void testUnmarshalling_login() throws Exception {
6868
assertThat(loginCommand.options.version).isEqualTo("1.0");
6969
assertThat(loginCommand.options.language).isEqualTo("en");
7070
assertThat(loginCommand.services.objectServices)
71-
.containsExactly("urn:ietf:params:xml:ns:host-1.0", "urn:ietf:params:xml:ns:domain-1.0");
71+
.containsExactly(
72+
"urn:ietf:params:xml:ns:host-1.0",
73+
"urn:ietf:params:xml:ns:domain-1.0",
74+
"urn:ietf:params:xml:ns:contact-1.0");
7275
assertThat(loginCommand.services.serviceExtensions)
7376
.containsExactly("urn:ietf:params:xml:ns:launch-1.0", "urn:ietf:params:xml:ns:rgp-1.0");
7477
}

core/src/test/resources/google/registry/flows/greeting.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<version>1.0</version>
77
<lang>en</lang>
88
<objURI>urn:ietf:params:xml:ns:host-1.0</objURI>
9+
<objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
910
<objURI>urn:ietf:params:xml:ns:domain-1.0</objURI>
1011
<svcExtension>
1112
<extURI>urn:ietf:params:xml:ns:launch-1.0</extURI>

core/src/test/resources/google/registry/flows/login.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<svcs>
1111
<objURI>urn:ietf:params:xml:ns:host-1.0</objURI>
1212
<objURI>urn:ietf:params:xml:ns:domain-1.0</objURI>
13+
<objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
1314
<svcExtension>
1415
<extURI>urn:ietf:params:xml:ns:launch-1.0</extURI>
1516
<extURI>urn:ietf:params:xml:ns:rgp-1.0</extURI>

core/src/test/resources/google/registry/flows/login_update_password.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<svcs>
1212
<objURI>urn:ietf:params:xml:ns:host-1.0</objURI>
1313
<objURI>urn:ietf:params:xml:ns:domain-1.0</objURI>
14+
<objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
1415
<svcExtension>
1516
<extURI>urn:ietf:params:xml:ns:launch-1.0</extURI>
1617
<extURI>urn:ietf:params:xml:ns:rgp-1.0</extURI>

core/src/test/resources/google/registry/flows/login_valid_fee_extension.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<svcs>
1111
<objURI>urn:ietf:params:xml:ns:host-1.0</objURI>
1212
<objURI>urn:ietf:params:xml:ns:domain-1.0</objURI>
13+
<objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
1314
<svcExtension>
1415
<extURI>urn:ietf:params:xml:ns:launch-1.0</extURI>
1516
<extURI>urn:ietf:params:xml:ns:rgp-1.0</extURI>

core/src/test/resources/google/registry/flows/login_wrong_case.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<svcs>
1212
<objURI>urn:ietf:params:xml:ns:host-1.0</objURI>
1313
<objURI>urn:ietf:params:xml:ns:domain-1.0</objURI>
14+
<objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
1415
<svcExtension>
1516
<extURI>urn:ietf:params:xml:ns:launch-1.0</extURI>
1617
<extURI>urn:ietf:params:xml:ns:rgp-1.0</extURI>

core/src/test/resources/google/registry/flows/session/greeting.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<version>1.0</version>
77
<lang>en</lang>
88
<objURI>urn:ietf:params:xml:ns:host-1.0</objURI>
9+
<objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
910
<objURI>urn:ietf:params:xml:ns:domain-1.0</objURI>
1011
<svcExtension>
1112
<extURI>urn:ietf:params:xml:ns:launch-1.0</extURI>

core/src/test/resources/google/registry/flows/session/login_invalid_extension.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<svcs>
1111
<objURI>urn:ietf:params:xml:ns:host-1.0</objURI>
1212
<objURI>urn:ietf:params:xml:ns:domain-1.0</objURI>
13+
<objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
1314
<svcExtension>
1415
<extURI>http://custom/obj1ext-1.0</extURI>
1516
</svcExtension>

core/src/test/resources/google/registry/flows/session/login_invalid_language.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<svcs>
1111
<objURI>urn:ietf:params:xml:ns:host-1.0</objURI>
1212
<objURI>urn:ietf:params:xml:ns:domain-1.0</objURI>
13+
<objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
1314
</svcs>
1415
</login>
1516
<clTRID>ABC-12345</clTRID>

0 commit comments

Comments
 (0)