google-nomulus/javatests/google/registry/flows
mcilwain c1643fa3cd Correctly set clientId on EPP metrics in LoginFlow
This wasn't being recorded correctly because the clientId is only
set in LoginFlow after the flow succeeds, whereas we were
previously logging the clientId before executing the flow. This
adds special handling for LoginFlow. Note that we only set the
metric label to the clientId for valid registrar logins, to ensure
that metric cardinality doesn't grow unbounded (as it might if we
used every arbitrary string passed in as an attempted login).

This also refactors creation and handling of FakesAndMocksModule so
as to be able to make test assertions about EPP metrics from
integration flow tests.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=154048280
2017-04-26 10:56: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 Correctly set clientId on EPP metrics in LoginFlow 2017-04-26 10:56:13 -04:00
EppCommitLogsTest.java Correctly set clientId on EPP metrics in LoginFlow 2017-04-26 10:56:13 -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
EppLifecycleLoginTest.java Correctly set clientId on EPP metrics in LoginFlow 2017-04-26 10:56:13 -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 Correctly set clientId on EPP metrics in LoginFlow 2017-04-26 10:56:13 -04:00
EppTestComponent.java Correctly set clientId on EPP metrics in LoginFlow 2017-04-26 10:56:13 -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 Add and adjust EppInput accessors for more useful properties 2017-04-26 10:51:47 -04: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 Skip FlowReporter logging for dry runs 2017-04-26 10:54:43 -04:00
FlowTestCase.java Correctly set clientId on EPP metrics in LoginFlow 2017-04-26 10:56: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