Fix WHOIS formatting to match format from RA

Our whois format was flagged as wrong in the .meet PDT. Although
we had followed the AWIP samples from ICANN, the definitive list
of field names is from Specification 4 of our contract, available at
https://newgtlds.icann.org/sites/default/files/agreements/agreement-approved-09jan14-en.htm
and indeed our fields are incorrect. (The remaining formatting issues
are ambiguous but the PDT testers' interpretation is probably correct.)

Since the footer format is now somewhat more complicated, I also denormalized
the disclaimer field into all of the testdata files. (I spent some time
debugging an extra newline between the content and the disclaimer, and
it would have been far clearer to solve if the files had been this way.)
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=120338930
This commit is contained in:
cgoldfeder 2016-04-20 08:23:16 -07:00 committed by Justine Tunney
parent c99711c7e3
commit 4e6c8ec6fe
21 changed files with 347 additions and 113 deletions

View file

@ -62,10 +62,10 @@ public final class WhoisException extends Exception implements WhoisResponse {
@Override
public String getPlainTextOutput(boolean preferUnicode) {
String footer = new WhoisResponseImpl.BasicEmitter()
.emitNewline()
.emitFooter(getTimestamp())
return new WhoisResponseImpl.BasicEmitter()
.emitRawLine(getMessage())
.emitLastUpdated(getTimestamp())
.emitFooter()
.toString();
return getMessage() + footer;
}
}