google-nomulus/javatests/google/registry
guyben 63785e5149 Remove empty TLD parameter when fanning out without TLDs
TldFanoutAction fans out a given endpoint to all TLDs (either TEST, REAL, or
both).

However, it is also used to delegate a single endpoint request that we want set
in a specific queue (so we can control retries). We do that by setting the TLD
list to "runInEmpty" rather than "forEachRealTld" or "forEachTestTld".

Currently, using "runInEmpty" would still specify a TLD - but that TLD would be
the empty string. This is a bug: it sets the TLD parameter to a bad value. It
worked only because none of the endpoints called with "runInEmpty" were using
the TLD parameter.

However, this will (and does) break if either (a) the endpoint accepts an
optional TLD parameter (like deleteProberData does), or (b) the given endpoint
already has a TLD parameter in it (we want to run the endpoint with a single
TLD, but still use the "fanout" to set the right queue).

This CL fixes several things:

- if runInEmpty is given, no TLD parameter is added
- 'runInEmpty' is now mutually exclusive with 'forEach*Tld' and 'excludes'
- we do some sanity checks and added logging
- removed the buggy and unused "':tld' in path is replaced by TLD"
- in the cron.xml, removed documentation for :tld and the broken :registrar

Note that none of the endpoints that were used with runInEmpty fanout had the TLD parameter prior to deleteProberData

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=189954585
2018-04-02 16:24:27 -04:00
..
backup Rationalize logging statements across codebase 2018-01-19 14:56:45 -05:00
batch Accept a list of TLDs on which to delete "prober" (test) data. 2018-03-06 19:03:48 -05:00
beam Move invoice generation to billing bucket and improve emailing 2018-01-19 14:34:14 -05:00
bigquery Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
builddefs Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
config Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
cron Remove empty TLD parameter when fanning out without TLDs 2018-04-02 16:24:27 -04:00
dns Add sharded DNS publishing capability 2018-03-06 19:14:26 -05:00
export Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
flows Default missing type= argument to "registration" in launch:create EPP extension 2018-04-02 16:22:54 -04:00
groups Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
keyring Move backported JUnit file to third_party (part 2) 2017-12-02 11:37:46 -05:00
mapreduce/inputs Remove the JVM flags -XX:PermSize and -XX:MaxPermSize 2018-03-19 18:25:04 -04:00
model Make return value of ClaimsListShard.getClaimKey() Optional 2018-03-06 19:15:52 -05:00
module Refactor ICANN reporting and billing into common package 2018-02-01 21:56:06 -05:00
monitoring/whitebox Add dependencies on classes that are not in the default modules in JDK 9 2018-02-01 22:00:49 -05:00
pricing Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
proxy Clean up some code quality issues in GCP proxy 2018-03-19 18:44:12 -04:00
rdap RDAP: Show registrar entity even if contacts are redacted 2018-03-06 19:00:47 -05:00
rde Remove references to Eclipse 2018-03-19 18:45:41 -04:00
reporting Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
request Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
security Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
server Move backported JUnit file to third_party (part 2) 2017-12-02 11:37:46 -05:00
storage/drive Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
testing Remove references to Eclipse 2018-03-19 18:45:41 -04:00
tldconfig/idn Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
tmch Remove references to Eclipse 2018-03-19 18:45:41 -04:00
tools Add a "shell" pseudo-command to nomulus tool 2018-03-19 18:22:01 -04:00
ui Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
util Add sharded DNS publishing capability 2018-03-06 19:14:26 -05:00
whois Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
xjc Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
xml Add basic AllocationToken validation/redemption for domain creates 2018-01-19 14:28:26 -05:00