google-nomulus/javatests/google/registry/batch
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
..
BUILD Add mapreduce cleanup action 2017-03-13 10:24:57 -04:00
DeleteContactsAndHostsActionTest.java Change transfer flow tests to assert on entire TransferData contents 2017-10-05 11:44:46 -04:00
DeleteProberDataActionTest.java Fix soft delete for possible double-map of domain 2017-09-12 14:57:34 -04:00
ExpandRecurringBillingEventsActionTest.java Parent recurring billing events under separate HistoryEntries 2017-08-29 17:08:27 -04:00
MapreduceEntityCleanupActionTest.java Refactor main loop of MapreduceEntityCleanupAction 2017-03-13 10:38:21 -04:00
RefreshDnsOnHostRenameActionTest.java Add metrics for async batch operation processing 2017-06-05 18:17:09 -04:00
ResaveAllEppResourcesActionTest.java Move ResaveAllEppResources mapreduce from tools service to backend 2017-09-20 10:27:17 -04:00
TestMapreduceEntityCleanupUtil.java Add mapreduce cleanup action 2017-03-13 10:24:57 -04:00
VerifyEntityIntegrityActionTest.java Fix some direct uses of ForeignKey(C/H/D)Index 2017-05-03 10:40:21 -04:00