mirror of
https://github.com/google/nomulus.git
synced 2025-06-28 07:13:34 +02:00
RDAP: Change data policy remark for redacted contacts
Changes the code to be in compliance with the RDAP Pilot Profile document, which specifies: 1.4.11. If permitted or required by an ICANN agreement provision, waiver, or Consensus Policy, an RDAP response may contain redacted registrant, administrative, technical and/or other contact information. If any information is redacted, the response MUST include a remarks member with title "Data Policy", type "object truncated due to authorization", a description containing the string "Some of the data in this object has been removed" and a links member with the elements rel:alternate and href indicating where the data policy can be found. An entity with redacted information MUST include the "removed" value in the status element. We were using the "removed" status to indicate deleted contacts and inactive registrars. Instead, we will now use "inactive", so that we can use "removed" to indicated redaction. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=185039201
This commit is contained in:
parent
178760622b
commit
85f5535811
12 changed files with 112 additions and 44 deletions
|
@ -946,7 +946,7 @@ public class RdapEntitySearchActionTest extends RdapSearchActionTestCase {
|
|||
public void testNameMatchRegistrar_found_inactiveAsSameRegistrar() throws Exception {
|
||||
action.includeDeletedParam = Optional.of(true);
|
||||
login("2-RegistrarInact");
|
||||
runSuccessfulNameTest("No Way", "21", "No Way", "removed", null, null, "rdap_registrar.json");
|
||||
runSuccessfulNameTest("No Way", "21", "No Way", "inactive", null, null, "rdap_registrar.json");
|
||||
verifyMetrics(0);
|
||||
}
|
||||
|
||||
|
@ -954,7 +954,7 @@ public class RdapEntitySearchActionTest extends RdapSearchActionTestCase {
|
|||
public void testNameMatchRegistrar_found_inactiveAsAdmin() throws Exception {
|
||||
action.includeDeletedParam = Optional.of(true);
|
||||
loginAsAdmin();
|
||||
runSuccessfulNameTest("No Way", "21", "No Way", "removed", null, null, "rdap_registrar.json");
|
||||
runSuccessfulNameTest("No Way", "21", "No Way", "inactive", null, null, "rdap_registrar.json");
|
||||
verifyMetrics(0);
|
||||
}
|
||||
|
||||
|
@ -1059,7 +1059,7 @@ public class RdapEntitySearchActionTest extends RdapSearchActionTestCase {
|
|||
"6-ROID",
|
||||
"6-ROID",
|
||||
"",
|
||||
"removed",
|
||||
"inactive",
|
||||
"",
|
||||
"",
|
||||
"rdap_contact_deleted.json");
|
||||
|
@ -1074,7 +1074,7 @@ public class RdapEntitySearchActionTest extends RdapSearchActionTestCase {
|
|||
"6-ROID",
|
||||
"6-ROID",
|
||||
"",
|
||||
"removed",
|
||||
"inactive",
|
||||
"",
|
||||
"",
|
||||
"rdap_contact_deleted.json");
|
||||
|
@ -1106,7 +1106,7 @@ public class RdapEntitySearchActionTest extends RdapSearchActionTestCase {
|
|||
"6-ROI*",
|
||||
"6-ROID",
|
||||
"",
|
||||
"removed",
|
||||
"inactive",
|
||||
"",
|
||||
"",
|
||||
"rdap_contact_deleted.json");
|
||||
|
@ -1121,7 +1121,7 @@ public class RdapEntitySearchActionTest extends RdapSearchActionTestCase {
|
|||
"6-ROI*",
|
||||
"6-ROID",
|
||||
"",
|
||||
"removed",
|
||||
"inactive",
|
||||
"",
|
||||
"",
|
||||
"rdap_contact_deleted.json");
|
||||
|
@ -1321,7 +1321,7 @@ public class RdapEntitySearchActionTest extends RdapSearchActionTestCase {
|
|||
public void testHandleMatchRegistrar_found_inactiveAsSameRegistrar() throws Exception {
|
||||
action.includeDeletedParam = Optional.of(true);
|
||||
login("2-RegistrarInact");
|
||||
runSuccessfulHandleTest("21", "21", "No Way", "removed", null, null, "rdap_registrar.json");
|
||||
runSuccessfulHandleTest("21", "21", "No Way", "inactive", null, null, "rdap_registrar.json");
|
||||
verifyMetrics(0);
|
||||
}
|
||||
|
||||
|
@ -1329,7 +1329,7 @@ public class RdapEntitySearchActionTest extends RdapSearchActionTestCase {
|
|||
public void testHandleMatchRegistrar_found_inactiveAsAdmin() throws Exception {
|
||||
action.includeDeletedParam = Optional.of(true);
|
||||
loginAsAdmin();
|
||||
runSuccessfulHandleTest("21", "21", "No Way", "removed", null, null, "rdap_registrar.json");
|
||||
runSuccessfulHandleTest("21", "21", "No Way", "inactive", null, null, "rdap_registrar.json");
|
||||
verifyMetrics(0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue