google-nomulus/javatests/google/registry/flows
nickfelt a4091594d0 Add new JSON logging to FlowRunner for EPP activity reporting
We've been using the very fragile newline-delimited legacy logging
statement in FlowRunner for ICANN reporting for a long time.  While
this is bad in a few ways, the worst is that the parsing of this
logging statement is extremely fragile (e.g. adding/removing fields
can easily break the parsing).  This is in fact part of what broke the
ExportLogsServlet parsing last fall ([] and forced us to
recover by manually parsing the log statement (and its XML) in
BigQuery.  It also broke again in [] where we were relying
on matching the logging classname, since matching on 'EPP Command'
was considered insufficiently narrow.

This introduces a new JSON-format logging statement to FlowRunner
that fixes both of these problems:

 1) it replaces the newline-delimited "format" with a JSON-based
    format, so that we can add new fields much more easily and
    reliably support logging more structured data

 2) it replaces the short 'EPP Command' signature with a much more
    targeted 'EPP-REPORTING-LOG-SIGNATURE' signature so that we can
    use that alone for matching, rather than relying on the class
    name in the log message

What this doesn't fix is the fact that we still need to parse the
XML in BigQuery; we should fix this by logging the parts of the XML
that ICANN reporting needs explicitly, but that'll be a subsequent
change, since while the existing approach is gross, it's actually
much less fragile than just matching the log statement itself.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=125902976
2016-06-27 16:45:55 -04:00
..
async Prefer @Inject over static for async flow Clock 2016-05-18 13:08:41 -04:00
contact Dagger, meet Flows. Flows, meet Dagger. 2016-06-27 16:26:29 -04:00
domain Dagger, meet Flows. Flows, meet Dagger. 2016-06-27 16:26:29 -04:00
host Break SessionSource out of SessionMetadata and rename it EppRequestSource. 2016-06-27 16:19:21 -04:00
poll Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
session Decouple superuser from SessionMetadata 2016-06-27 16:17:57 -04:00
testdata Add new JSON logging to FlowRunner for EPP activity reporting 2016-06-27 16:45:55 -04:00
BUILD Add new JSON logging to FlowRunner for EPP activity reporting 2016-06-27 16:45:55 -04:00
CheckApiActionTest.java Dagger, meet Flows. Flows, meet Dagger. 2016-06-27 16:26:29 -04:00
EppCommitLogsTest.java Dagger, meet Flows. Flows, meet Dagger. 2016-06-27 16:26:29 -04:00
EppConsoleActionTest.java Clean up the tattered shreds of SessionMetadata 2016-06-27 16:20:48 -04:00
EppControllerTest.java Actionize the EPP endpoints. 2016-06-14 16:30:12 -04:00
EppLifecycleContactTest.java Actionize the EPP endpoints. 2016-06-14 16:30:12 -04:00
EppLifecycleDomainApplicationTest.java Decouple superuser from SessionMetadata 2016-06-27 16:17:57 -04:00
EppLifecycleDomainTest.java Dagger, meet Flows. Flows, meet Dagger. 2016-06-27 16:26:29 -04:00
EppLifecycleHostTest.java Actionize the EPP endpoints. 2016-06-14 16:30:12 -04:00
EppLoggedOutTest.java Actionize the EPP endpoints. 2016-06-14 16:30:12 -04:00
EppLoginAdminUserTest.java Actionize the EPP endpoints. 2016-06-14 16:30:12 -04:00
EppLoginTlsTest.java Actionize the EPP endpoints. 2016-06-14 16:30:12 -04:00
EppLoginUserTest.java Actionize the EPP endpoints. 2016-06-14 16:30:12 -04:00
EppTestCase.java Dagger, meet Flows. Flows, meet Dagger. 2016-06-27 16:26:29 -04:00
EppTestComponent.java Dagger, meet Flows. Flows, meet Dagger. 2016-06-27 16:26:29 -04:00
EppTlsActionTest.java Clean up the tattered shreds of SessionMetadata 2016-06-27 16:20:48 -04:00
EppToolActionTest.java Break SessionSource out of SessionMetadata and rename it EppRequestSource. 2016-06-27 16:19:21 -04:00
EppXmlTransformerTest.java Fix generics in EppXmlTransformer.unmarshal to not be only on the return type. 2016-06-27 15:55:03 -04:00
EppXxeAttackTest.java Upgrade apache_sshd CL #2: Update to v1_2_0 2016-06-27 16:41:48 -04:00
FlowRunnerTest.java Add new JSON logging to FlowRunner for EPP activity reporting 2016-06-27 16:45:55 -04:00
FlowTestCase.java Get app cert hash from Play Store API and send it to IRDB 2016-06-27 16:34:53 -04:00
ResourceCheckFlowTestCase.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
ResourceFlowTestCase.java Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00