google-nomulus/javatests/google/registry
guyben 633eb3179a Skip RRS update if existing records are equal to desired records
This is done first and formost to stop "empty" commits that cause errors in
publishDnsUpdates. The reason being that the Cloud DNS api fails when there are
no updates at all in a change.

Allowing this is a requirement for the writer to be idempotent - if we delete a
domain, then run the writer to delete it again - we'll get 0 additions and 0
deletions which fails.

This isn't theoretical either - we've seen it happen, causing a
publishDnsUpdates to fail over and over again.

While fixing this, we also remove all RRS that are common between additions and
deletions. This is just an optimization and shouldn't affect behavior.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=179525218
2017-12-27 11:18:21 -05:00
..
backup Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -05:00
batch Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
beam Add beam package to open source build 2017-12-13 12:43:45 -05:00
bigquery Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
billing Generate detail reports from Bigquery via Beam 2017-12-13 12:43:45 -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 Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
dns Skip RRS update if existing records are equal to desired records 2017-12-27 11:18:21 -05:00
export Use method references instead of lambdas when possible 2017-12-27 10:55:03 -05:00
flows Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -05:00
groups Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
keyring Move backported JUnit file to third_party (part 2) 2017-12-02 11:37:46 -05:00
mapreduce/inputs Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
model Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -05:00
module Add apache beam to registry and open source 2017-11-07 17:36:07 -05:00
monitoring Move backported JUnit file to third_party (part 2) 2017-12-02 11:37:46 -05:00
pricing Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
proxy Add ability to configure proxy quotas 2017-12-13 12:43:45 -05:00
rdap Add next page navigation for RDAP domain searches 2017-12-27 11:15:18 -05:00
rde Refactor the last usages of ExpectedException to assert/expectThrows 2017-12-27 10:56:36 -05:00
reporting Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
request Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -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 Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
testing Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -05:00
tldconfig/idn Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
tmch Use method references instead of lambdas when possible 2017-12-27 10:55:03 -05:00
tools Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -05:00
ui Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -05:00
util Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -05:00
whois Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
xjc Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
xml Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00