google-nomulus/javatests/google/registry/flows
nickfelt f2c6021db0 Split FlowReporter logging into two lines for robustness
This prevents a possible failure mode of the logging where the logged
EPP input XML is very large (which can happen e.g. for domain creates
with large SMD values).  In those cases, the XML might cause the overall
JSON string to be too large to fit within a single log entry [1], in which
case it gets split over multiple lines and breaks automatic parsing.

This mitigates that case by logging the EPP input (raw and base64-encoded)
in a separate log statement so that the more compact metadata (like clientId)
and derived values (like ICANN reporting field) will still be in an intact
JSON string even in that case, and can still be readily parsed.  It's okay
if the actual EPP XML is harder to parse, since once we're logging the right
metadata fields we shouldn't need to automatically parse the EPP XML in any
normal cases.

[1] I haven't found this exact limit or splitting algorithm, or whether it's
a property of java logging or GAE log ingestion.  The GAE logs page does note
that a single application log entry (within a request, which can have up to
1000 such entries) maxes out at 8KB, so that might be it:
https://cloud.google.com/appengine/docs/standard/java/logs/#writing_application_logs

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=153771335
2017-04-26 10:50:13 -04:00
..
contact Notify registrars of async contact/host deletions 2017-04-26 10:33:55 -04:00
custom Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
domain Refactor out creation of server TRIDs so they can be tested 2017-04-13 10:55:47 -04:00
host Notify registrars of async contact/host deletions 2017-04-26 10:33:55 -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 Only inject EPP metric builder in a single place 2017-04-10 13:37:18 -04:00
EppConsoleActionTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EppControllerTest.java Refactor out creation of server TRIDs so they can be tested 2017-04-13 10:55:47 -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 Refactor out creation of server TRIDs so they can be tested 2017-04-13 10:55:47 -04: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
FlowReporterTest.java Split FlowReporter logging into two lines for robustness 2017-04-26 10:50:13 -04:00
FlowRunnerTest.java Move FlowRunner ICANN reporting logging to new FlowReporter 2017-04-26 10:48:43 -04:00
FlowTestCase.java Remove some unnecessary uses of MockitoJUnitRunner, which is discouraged 2017-04-26 10:47:13 -04:00
ResourceCheckFlowTestCase.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ResourceFlowTestCase.java Split FlowReporter logging into two lines for robustness 2017-04-26 10:50:13 -04:00