mirror of
https://github.com/google/nomulus.git
synced 2025-08-05 01:11:50 +02:00
Add Carriage Return in WHOIS disclaimer text
WHOIS disclaimer is read from the config yaml file directly and the line breaks within the text does not contain carriage return, which ICANN requires. This CL fixes the non-compliance. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=156359526
This commit is contained in:
parent
16f2799ad9
commit
3f5735ed4b
21 changed files with 60 additions and 9 deletions
|
@ -254,7 +254,10 @@ public class DomainWhoisResponseTest {
|
|||
public void getPlainTextOutputTest() {
|
||||
DomainWhoisResponse domainWhoisResponse =
|
||||
new DomainWhoisResponse(domainResource, clock.nowUtc());
|
||||
assertThat(domainWhoisResponse.getResponse(false, "Doodle Disclaimer"))
|
||||
assertThat(
|
||||
domainWhoisResponse.getResponse(
|
||||
false,
|
||||
"Doodle Disclaimer\nI exist so that carriage return\nin disclaimer can be tested."))
|
||||
.isEqualTo(WhoisResponseResults.create(loadWhoisTestFile("whois_domain.txt"), 1));
|
||||
}
|
||||
|
||||
|
@ -263,7 +266,13 @@ public class DomainWhoisResponseTest {
|
|||
DomainWhoisResponse domainWhoisResponse =
|
||||
new DomainWhoisResponse(
|
||||
domainResource.asBuilder().setStatusValues(null).build(), clock.nowUtc());
|
||||
assertThat(domainWhoisResponse.getResponse(false, "Doodle Disclaimer").plainTextOutput())
|
||||
assertThat(
|
||||
domainWhoisResponse
|
||||
.getResponse(
|
||||
false,
|
||||
"Doodle Disclaimer\nI exist so that carriage return\n"
|
||||
+ "in disclaimer can be tested.")
|
||||
.plainTextOutput())
|
||||
.contains("Domain Status: ok");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue