google-nomulus/javatests/google/registry/tools
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
..
params Add billing account map to Registrar entity 2017-03-27 13:10:29 -04:00
server Change GenerateZoneFilesAction to emit glue records only where appropriate 2017-08-29 16:51:35 -04:00
testdata Move EPP XML testdata to server/testdata 2017-07-12 11:03:50 -04:00
AllocateDomainCommandTest.java Move EPP XML testdata to server/testdata 2017-07-12 11:03:50 -04:00
AuthModuleTest.java Implement login/logout commands 2017-03-07 13:45:11 -05:00
BUILD Move EPP XML testdata to server/testdata 2017-07-12 11:03:50 -04:00
CommandTestCase.java Add a "loadtest" command to nomulus tool 2017-03-27 13:16:35 -04:00
CreateAnchorTenantCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CreateContactCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CreateCreditBalanceCommandTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
CreateCreditCommandTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
CreateDomainCommandTest.java Refactor CreateDomainCommand and add UpdateDomainCommand 2017-07-10 11:22:39 -04:00
CreateHostCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CreateLrpTokensCommandTest.java Add assertTldsExist(Iterable<String>) to check multiple TLDs at once 2017-04-10 13:44:52 -04:00
CreateOrUpdatePremiumListCommandTestCase.java Replace more deprecated uses of Files methods 2017-02-02 17:08:12 -05:00
CreateOrUpdateReservedListCommandTestCase.java Replace more deprecated uses of Files methods 2017-02-02 17:08:12 -05:00
CreatePremiumListCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CreateRegistrarCommandTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
CreateRegistrarGroupsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CreateReservedListCommandTest.java Replace deprecated Truth hasMessage() method with hasMessageThat() 2017-04-26 10:35:23 -04:00
CreateTldCommandTest.java Remove deprecated singular DNS writer field and update tooling 2017-08-01 16:50:49 -04:00
DefaultRequestFactoryModuleTest.java Implement login/logout commands 2017-03-07 13:45:11 -05:00
DeleteCreditCommandTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
DeleteDomainCommandTest.java Fix formatting of DeleteDomainCommand 2017-05-03 11:06:19 -04:00
DeleteEntityCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DeleteHostCommandTest.java Add delete_host nomulus tool command 2017-05-03 11:08:02 -04:00
DeletePremiumListCommandTest.java Perform minor refactors on premium list code 2017-02-27 11:30:45 -05:00
DeleteReservedListCommandTest.java Replace deprecated Truth hasMessage() method with hasMessageThat() 2017-04-26 10:35:23 -04:00
DeleteTldCommandTest.java Add nomulus tool command to delete a TLD 2017-04-05 10:10:38 -04:00
DomainApplicationInfoCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DomainCheckClaimsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DomainCheckCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DomainCheckFeeCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EncryptEscrowDepositCommandTest.java Replace KeystoreKeyring with KmsKeystore comparison 2017-04-13 10:58:57 -04:00
EppToolCommandTest.java Move EPP XML testdata to server/testdata 2017-07-12 11:03:50 -04:00
EppToolCommandTestCase.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EppToolVerifier.java Move EPP XML testdata to server/testdata 2017-07-12 11:03:50 -04:00
ExecuteEppCommandTest.java Move EPP XML testdata to server/testdata 2017-07-12 11:03:50 -04:00
GenerateAuctionDataCommandTest.java Remove the ofy().load() inside of HostResource.cloneProjectedAtTime 2017-03-13 11:22:55 -04:00
GenerateDnsReportCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GenerateEscrowDepositCommandTest.java Fix parameter problem in GenerateEscrowDepositCommand 2017-05-23 17:22:49 -04:00
GetApplicationCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetApplicationIdsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetClaimsListCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetContactCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetDomainCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetHostCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetLrpTokenCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetRegistrarCommandTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
GetResourceByKeyCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetSchemaTreeCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GetTldCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GhostrydeCommandTest.java Replace KeystoreKeyring with KmsKeystore comparison 2017-04-13 10:58:57 -04:00
LevelDbLogReaderTest.java Create a LevelDBLogReader class for java 2017-08-29 16:25:33 -04:00
ListCursorsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListDomainsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListHostsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListObjectsCommandTestCase.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListPremiumListsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListRegistrarsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListReservedListsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListTldsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
LoadTestCommandTest.java Make name and address fields required on Registrar 2017-05-17 11:44:46 -04:00
MutatingCommandTest.java Make name and address fields required on Registrar 2017-05-17 11:44:46 -04:00
PublishDetailReportCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
RegistrarContactCommandTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
RegistryToolEnvironmentTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
RegistryToolTest.java Add test which verifies that all commands have descriptions 2017-03-13 10:44:12 -04:00
ResaveEntitiesCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ResaveEnvironmentEntitiesCommandTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
ResaveEppResourcesCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
RestoreCommitLogsCommandTest.java Fix RestoreCommitLogsCommandTest in kokoro 2017-06-05 18:17:09 -04:00
SetupOteCommandTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
UniformRapidSuspensionCommandTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
UpdateApplicationStatusCommandTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
UpdateClaimsNoticeCommandTest.java Remove the ofy().load() inside of HostResource.cloneProjectedAtTime 2017-03-13 11:22:55 -04:00
UpdateCursorsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
UpdateDomainCommandTest.java Refactor CreateDomainCommand and add UpdateDomainCommand 2017-07-10 11:22:39 -04:00
UpdatePremiumListCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
UpdateRegistrarCommandTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
UpdateReservedListCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
UpdateServerLocksCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
UpdateSmdCommandTest.java Use specific date for testing UpdateSmdCommand 2017-08-01 16:57:36 -04:00
UpdateTldCommandTest.java Allow multiple DNS writers on TLDs 2017-08-01 17:10:33 -04:00
UploadClaimsListCommandTest.java Add missing @Test, @Before, or @After annotations to JUnit4 test, setUp, or tearDown methods; reduce the visibility of test helper methods to prevent them from being confused for tests; and/or add @Ignore to purposely disabled tests. 2017-08-01 16:18:08 -04:00
ValidateEscrowDepositCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ValidateLoginCredentialsCommandTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
VerifyOteCommandTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00