google-nomulus/javatests/google/registry/tools/server
mountford e90e840757 Change GenerateZoneFilesAction to emit glue records only where appropriate
Previously, GenerateZoneFilesAction mapreduced its way through all domains and hosts for the specified TLD(s), emitting information for each matching domain and host (subject to constraints like not being deleted and so on). This resulted in host information (aka glue records) for all hosts subordinate to domains in the specified TLD(s). This is incorrect. DNS glue records should only be present for hosts which act as nameservers for their superordinate domains.

The new version of the mapreduce iterates only over domains. When a matching domain is found, a check is made to see whether any subordinate hosts are also nameservers for the domain, in which case host information is generated.

The test was updated to reflect the new reality, and check for a couple additional nuances.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=165766472
2017-08-29 16:51:35 -04:00
..
testdata Change GenerateZoneFilesAction to emit glue records only where appropriate 2017-08-29 16:51:35 -04:00
BUILD Add TLDs parameter to refresh DNS action 2017-07-10 11:23:57 -04:00
CreateGroupsActionTest.java Remove some unnecessary uses of MockitoJUnitRunner, which is discouraged 2017-04-26 10:45:45 -04:00
CreatePremiumListActionTest.java Perform minor refactors on premium list code 2017-02-27 11:30:45 -05:00
DeleteEntityActionTest.java Remove some unnecessary uses of MockitoJUnitRunner, which is discouraged 2017-04-26 10:45:45 -04:00
GenerateZoneFilesActionTest.java Change GenerateZoneFilesAction to emit glue records only where appropriate 2017-08-29 16:51:35 -04:00
KillAllCommitLogsActionTest.java Use Immutable types for static final fields 2017-03-07 13:43:43 -05:00
KillAllEppResourcesActionTest.java Use Immutable types for static final fields 2017-03-07 13:50:53 -05:00
ListActionTestCase.java Make ListObjectsAction return 200 when sending JSON error 2017-02-27 11:10:37 -05:00
ListDomainsActionTest.java Add assertTldsExist(Iterable<String>) to check multiple TLDs at once 2017-04-10 13:44:52 -04:00
ListHostsActionTest.java Make ListObjectsAction return 200 when sending JSON error 2017-02-27 11:10:37 -05:00
ListPremiumListsActionTest.java Read from bloom filter for premium pricing checks 2017-02-27 11:22:21 -05:00
ListRegistrarsActionTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
ListReservedListsActionTest.java Make ListObjectsAction return 200 when sending JSON error 2017-02-27 11:10:37 -05:00
ListTldsActionTest.java Make ListObjectsAction return 200 when sending JSON error 2017-02-27 11:10:37 -05:00
RefreshDnsForAllDomainsActionTest.java Add TLDs parameter to refresh DNS action 2017-07-10 11:23:57 -04:00
ResaveAllEppResourcesActionTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ToolsTestData.java Move EPP XML testdata to server/testdata 2017-07-12 11:03:50 -04:00
UpdatePremiumListActionTest.java Perform minor refactors on premium list code 2017-02-27 11:30:45 -05:00
VerifyOteActionTest.java Use History Entry type for flows in VerifyOteServlet 2017-08-01 16:24:55 -04:00