google-nomulus/java/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 Allow restore commit logs action in the crash environment 2017-10-05 11:43:23 -04:00
batch Streamline transfer resolving helpers in ResourceFlowUtils 2017-10-04 16:16:45 -04:00
bigquery Add activity report generation code 2017-08-29 15:53:33 -04:00
braintree Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
builddefs Rename set to depset in .bzl and BUILD files 2017-08-29 16:53:21 -04:00
config Add config parameters to point at us to use cloud-dns staging 2017-10-04 16:16:45 -04:00
cron Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
dns Add config parameters to point at us to use cloud-dns staging 2017-10-04 16:16:45 -04:00
eclipse Add Cloud KMS as dependency of eclipse package 2017-03-21 15:17:04 -04:00
env Add java8 runtime option to production appengine-web.xml files 2017-10-04 16:16:45 -04:00
export Fix mismatch in types of Predicates being used 2017-10-04 16:16:45 -04:00
flows Change transfer flow tests to assert on entire TransferData contents 2017-10-05 11:44:46 -04:00
gcs Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
groups Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
idn Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
keyring Set KmsKeyring as the default Keyring 2017-07-10 11:40:02 -04:00
loadtest Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
mapreduce Upgrade Nomulus to Java8 2017-10-04 16:16:45 -04:00
model Change transfer flow tests to assert on entire TransferData contents 2017-10-05 11:44:46 -04:00
module Migrate to new Sheets v4 api 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 code to always set HistoryEntry modification time using txn time 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 Fix mismatch in types of Predicates being used 2017-10-04 16:16:45 -04:00
security Remove XsrfTokenManager fallback for validating legacy tokens 2017-03-21 15:36:31 -04:00
storage/drive Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
tldconfig/idn Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
tmch Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
tools Automated g4 rollback of changelist 170906329. 2017-10-04 16:16:45 -04:00
ui Remove autoescape="strict" attributes from Soy templates. 2017-10-04 16:16:45 -04:00
util Clarify diff display of MutatingCommand 2017-10-04 16:16:45 -04:00
whois Don't allow non-active registrars to create domains or applications 2017-10-04 16:16:45 -04:00
xjc Fix the build on MacOS 2017-07-12 11:03:50 -04:00
xml Add support for a domain delete superuser EPP extension 2017-09-12 15:51:50 -04:00
BUILD Add nocron ear and deployer rules for the crash environment 2017-10-04 16:16:45 -04:00
repositories.bzl Fix mismatch in types of Predicates being used 2017-10-04 16:16:45 -04:00