google-nomulus/javatests/google/registry
nickfelt 91c2558feb Make FlowRunner log ICANN activity report field name
As part of b/36599833, this makes FlowRunner log the appropriate ICANN activity
report field name for each flow it runs as part of a structured JSON log
statement which can be parsed to generate ICANN activity reports (under the key
"icannActivityReportField").

In order to support this, we introduce an annotation for Flow classes called
@ReportingSpec and a corresponding enum of values for this annotation, which is
IcannReportingTypes.ActivityReportField, that stores the mapping of constant
enum values to field names.

The mapping from flows to fields is fairly obvious, with three exceptions:

 - Application flows are all accounted under domains, since applications are
   technically just deferred domain creates within the EPP protocol
 - ClaimsCheckFlow is counted as a domain check
 - DomainAllocateFlow is counted as a domain create

In addition, I've added tests to all the corresponding flows that we are
indeed logging what we expect.

We'll also need to log the TLD for this to be useful, but I'm doing that in a
follow-up CL.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=151283411
2017-03-27 13:32:57 -04:00
..
backup Add @VirtualEntity checking to Ofy's deleteWithoutBackup() 2017-02-08 17:31:07 -05:00
batch Refactor main loop of MapreduceEntityCleanupAction 2017-03-13 10:38:21 -04:00
bigquery Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
builddefs Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
config Remove unnecessary line to load configs 2017-02-27 11:07:40 -05:00
cron Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
dns Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
export Remove UNRESERVED as a reservation type 2017-03-27 13:31:33 -04:00
flows Make FlowRunner log ICANN activity report field name 2017-03-27 13:32:57 -04:00
groups Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
keyring/kms Fix bugs in KmsConnectionImpl 2017-03-07 13:25:51 -05:00
mapreduce/inputs Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
model Remove UNRESERVED as a reservation type 2017-03-27 13:31:33 -04:00
module Fix stale doPost references in servlet test method names 2017-02-27 11:15:01 -05:00
monitoring Add monitoring/metrics/contrib package to Nomulus release 2017-03-21 14:59:31 -04:00
pricing Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
rdap Remove obsolete TransferData.extendedRegistrationYears 2017-03-21 15:35:00 -04:00
rde Remove obsolete TransferData.extendedRegistrationYears 2017-03-21 15:35:00 -04:00
request Cut over to generating new HMAC-based XSRF tokens 2017-03-13 11:22:56 -04:00
security Remove XsrfTokenManager fallback for validating legacy tokens 2017-03-21 15:36:31 -04:00
server Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
storage/drive Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
testing Make FlowRunner log ICANN activity report field name 2017-03-27 13:32:57 -04:00
tldconfig/idn Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
tmch Fix accidentally non-@Tested TmchXmlSignature test 2017-03-27 13:02:46 -04:00
tools Add a "loadtest" command to nomulus tool 2017-03-27 13:16:35 -04:00
ui Refactor a few new XsrfTokenManager methods 2017-03-07 13:24:21 -05:00
util Clean up minor items found during DiRT 2017-03-27 13:25:35 -04:00
whois Remove the ofy().load() inside of HostResource.cloneProjectedAtTime 2017-03-13 11:22:55 -04:00
xjc Add mapper to import domains from RDE deposits 2017-02-06 16:46:46 -05:00
xml Update copyright year on all license headers 2017-02-02 16:27:22 -05:00