google-nomulus/javatests/google/registry
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
..
backup Map over Key instead of actual instances when deleting old commit logs 2017-08-29 15:40:41 -04:00
batch Change transfer flow tests to assert on entire TransferData contents 2017-10-05 11:44:46 -04:00
bigquery Remove some unnecessary uses of MockitoJUnitRunner, which is discouraged 2017-04-26 10:42:43 -04:00
builddefs Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
config Remove unnecessary line to load configs 2017-02-27 11:07:40 -05:00
cron Add response information to TldFanoutAction 2017-04-10 13:32:41 -04:00
dns Build DNS changes with HashMap instead of Builder 2017-10-04 16:16:45 -04:00
export Migrate to new Sheets v4 api 2017-09-20 10:27:17 -04:00
flows Change transfer flow tests to assert on entire TransferData contents 2017-10-05 11:44:46 -04:00
groups Remove some unnecessary uses of MockitoJUnitRunner, which is discouraged 2017-04-26 10:47:13 -04:00
keyring Add request/lock to opensource build 2017-09-12 15:51:50 -04:00
mapreduce/inputs Map over Key instead of actual instances when deleting old commit logs 2017-08-29 15:40:41 -04:00
model Change transfer flow tests to assert on entire TransferData contents 2017-10-05 11:44:46 -04:00
module Move ResaveAllEppResources mapreduce from tools service to backend 2017-09-20 10:27:17 -04:00
monitoring Allow EventSample.record to accept numSamples=0 2017-10-05 11:41:59 -04:00
pricing Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
rdap Add RDAP support for deleted contacts and registrars 2017-10-04 16:16:45 -04:00
rde Fix RDE import pending transfer handling 2017-10-04 16:16:45 -04:00
reporting Update activity reports to comply with agreement changes 2017-10-04 16:16:45 -04:00
request Check if lock owner is finished on lock acquisition 2017-09-20 10:27:17 -04:00
security Remove some unnecessary uses of MockitoJUnitRunner, which is discouraged 2017-04-26 10:45:45 -04:00
server Fix mismatch in types of Predicates being used 2017-10-04 16:16:45 -04:00
storage/drive Remove some unnecessary uses of MockitoJUnitRunner, which is discouraged 2017-04-26 10:45:45 -04:00
testing Change transfer flow tests to assert on entire TransferData contents 2017-10-05 11:44:46 -04:00
tldconfig/idn Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
tmch Update to latest ICANN-provided TMCH test files 2017-09-12 14:58:54 -04:00
tools Automated g4 rollback of changelist 170906329. 2017-10-04 16:16:45 -04:00
ui Clarify diff display of MutatingCommand 2017-10-04 16:16:45 -04:00
util Clarify diff display of MutatingCommand 2017-10-04 16:16:45 -04:00
whois Add logging to WhoisReader 2017-09-12 15:51:50 -04:00
xjc Add mapper to import domains from RDE deposits 2017-02-06 16:46:46 -05:00
xml Update copyright year on all license headers 2017-02-02 16:27:22 -05:00