google-nomulus/javatests/google/registry/flows
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
..
contact Make FlowRunner log ICANN activity report field name 2017-03-27 13:32:57 -04:00
custom Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
domain Make FlowRunner log ICANN activity report field name 2017-03-27 13:32:57 -04:00
host Make FlowRunner log ICANN activity report field name 2017-03-27 13:32:57 -04:00
poll Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
session Finish YAMLification of last necessary config values 2017-02-03 12:37:38 -05:00
testdata Disallow renaming of external hosts 2017-03-21 15:24:28 -04:00
BUILD Add MOE equivalence for sync on 2016-12-19 2017-01-09 11:59:04 -05:00
CheckApiActionTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EppCommitLogsTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EppConsoleActionTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EppControllerTest.java Use the actual EPP command flow name for EppMetrics 2017-03-27 13:30:05 -04:00
EppLifecycleContactTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EppLifecycleDomainApplicationTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EppLifecycleDomainTest.java Disallow renaming of external hosts 2017-03-21 15:24:28 -04:00
EppLifecycleHostTest.java Disallow renaming of external hosts 2017-03-21 15:24:28 -04:00
EppLoggedOutTest.java Finish YAMLification of last necessary config values 2017-02-03 12:37:38 -05:00
EppLoginAdminUserTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EppLoginTlsTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EppLoginUserTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EppTestCase.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EppTestComponent.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EppTlsActionTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EppToolActionTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EppXmlTransformerTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EppXxeAttackTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ExtensionManagerTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
FlowRunnerTest.java Make FlowRunner log ICANN activity report field name 2017-03-27 13:32:57 -04:00
FlowTestCase.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
ResourceCheckFlowTestCase.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ResourceFlowTestCase.java Make FlowRunner log ICANN activity report field name 2017-03-27 13:32:57 -04:00