google-nomulus/javatests/google/registry/flows
nickfelt 7e68ffa16a Change transfer flow tests to assert on entire TransferData contents
This CL changes the domain and contact transfer flows to check the entire
TransferData on the post-transfer resource, rather than just spot-checking
certain fields.  This approach provides much better code coverage - in
particular, it checks that the non-request flows (approve, cancel, reject)
don't modify the fields that they shouldn't be modifying, and that they do
actually clear out the transfer server-approve entities fields written by
the transfer request flow.  It's slightly orthogonal, but I also added
testing that the server-approve entities fields are actually set in the
request flows, which was previously untested.

This is pre-work for introducing an exDate-storing field into TransferData,
by making it easier to test everywhere that exDate is set *and* unset only
in the correct places.

As part of this CL, I've introduced a TransferData.copyConstantFieldsToBuilder()
method that is like asBuilder() but instead of copying all the fields to the new
builder, it only copies the logically constant ones: losing/gaining client IDs,
the request time and TRID, and transferPeriod.  This is useful both in tests but
is also used in the resolvingPendingTransfer() helper that centralizes the core
transfer resolution logic (as of []  That method has its own tests,
and in the process I removed a bunch of crufty defunct TransferData tests.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=171053454
2017-10-05 11:44:46 -04:00
..
async Add metrics for async batch operation processing 2017-06-05 18:17:09 -04:00
contact Change transfer flow tests to assert on entire TransferData contents 2017-10-05 11:44:46 -04:00
custom Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
domain Change transfer flow tests to assert on entire TransferData contents 2017-10-05 11:44:46 -04:00
host Add better testing of domain and host creation using multi-part TLDs 2017-08-29 15:47:50 -04:00
poll Fix typo in DomainTransferResponse.Builder method namename 2017-10-04 16:16:45 -04:00
session Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
testdata Add better testing of domain and host creation using multi-part TLDs 2017-08-29 15:47:50 -04:00
BUILD Swap all uses of Lock to LockHandler 2017-09-12 15:51:50 -04:00
CheckApiActionTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
EppCommitLogsTest.java Un-Ignore a test in DomainApplicationCreateFlowTest 2017-05-03 10:44:56 -04:00
EppConsoleActionTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EppControllerTest.java Log EppExceptions in EppController at INFO (vs FlowRunner at WARNING) 2017-05-03 11:04:51 -04:00
EppLifecycleContactTest.java Add more EPP metric lifecycle tests 2017-05-03 10:58:51 -04:00
EppLifecycleDomainApplicationTest.java Add more EPP metric lifecycle tests 2017-05-03 10:58:51 -04:00
EppLifecycleDomainTest.java Add better testing of domain and host creation using multi-part TLDs 2017-08-29 15:47:50 -04:00
EppLifecycleHostTest.java Add better testing of domain and host creation using multi-part TLDs 2017-08-29 15:47:50 -04:00
EppLifecycleLoginTest.java Add flow-level EPP metric tests 2017-05-03 10:51:12 -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 Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
EppLoginUserTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
EppTestCase.java Un-Ignore a test in DomainApplicationCreateFlowTest 2017-05-03 10:44:56 -04:00
EppTestComponent.java Swap all uses of Lock to LockHandler 2017-09-12 15:51:50 -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 Add support for a domain transfer request superuser EPP extension 2017-09-12 15:51:50 -04:00
FlowReporterTest.java Log EppExceptions in EppController at INFO (vs FlowRunner at WARNING) 2017-05-03 11:04:51 -04:00
FlowRunnerTest.java Log EppExceptions in EppController at INFO (vs FlowRunner at WARNING) 2017-05-03 11:04:51 -04:00
FlowTestCase.java Remove all vestiges of memcache 2017-06-14 10:28:24 -04:00
ResourceCheckFlowTestCase.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ResourceFlowTestCase.java Remove all vestiges of memcache 2017-06-14 10:28:24 -04:00
TlsCredentialsTest.java Fix X-GFE header search bug 2017-08-29 16:57:47 -04:00