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:
mountford 2018-02-08 13:06:14 -08:00 committed by jianglai
parent 178760622b
commit 85f5535811
12 changed files with 112 additions and 44 deletions

View file

@ -69,11 +69,23 @@ public class RdapTestHelper {
case CONTACT:
noticesBuilder.add(
ImmutableMap.of(
"title", "Contact Personal Data Hidden",
"title", "Data Policy",
"description",
ImmutableList.of(
"Contact personal data is visible only to the owning registrar."),
"type", "object truncated due to unexplainable reasons"));
ImmutableList.of(
"Some of the data in this object has been removed.",
"Contact personal data is visible only to the owning registrar."),
"type", "object truncated due to authorization",
"links",
ImmutableList.of(
ImmutableMap.of(
"value",
"https://github.com/google/nomulus/blob/master/docs/rdap.md#authentication",
"rel",
"alternate",
"href",
"https://github.com/google/nomulus/blob/master/docs/rdap.md#authentication",
"type",
"text/html"))));
break;
default:
break;