google-nomulus/javatests/google/registry/tools
mcilwain 6e74ba0587 Wrap ModulesService in new AppEngineServiceUtils
ModulesService does not provide a great API. Specifically, it doesn't have a
way to get the hostname for a specific service; you have to get the hostname for
a specific version as well. This is very rarely what we want, as we publish new
versions every week and don't expect old ones to hang around for very long, so
a task should execute against whatever the live version is, not whatever the
current version was back when the task was enqueued (especially because that
version might be deleted by now).

This new and improved wrapper API removes the confusion and plays better with
dependency injection to boot. We can also fold in other methods having to do
with App Engine services, whereas ModulesService was quite limited in scope.

This also has the side effect of fixing ResaveEntityAction, which is
currently broken because the tasks it's enqueuing to execute up to 30 days in
the future have the version hard-coded into the hostname, and we typically
delete old versions sooner than that.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=206173763
2018-08-10 13:44:25 -04:00
..
params Allow square bracket expansion when specifying nameservers 2018-08-10 13:44:25 -04:00
server Allow square bracket expansion when specifying nameservers 2018-08-10 13:44:25 -04:00
testdata Update signed marks files and add an expiration test 2018-06-27 15:28:53 -04:00
AllocateDomainCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
AuthModuleTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
BUILD Clean up internal imports in BUILD files 2018-07-14 01:37:03 -04:00
CheckDomainClaimsCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
CheckDomainCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
CommandTestCase.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
ComparableEntityTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
CompareDbBackupsTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
CountDomainsCommandTest.java Add nomulus count_domains command 2018-05-05 23:37:11 -04:00
CreateAnchorTenantCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
CreateCdnsTldTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
CreateContactCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
CreateDomainCommandTest.java Allow square bracket expansion when specifying nameservers 2018-08-10 13:44:25 -04:00
CreateHostCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
CreateLrpTokensCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
CreateOrUpdatePremiumListCommandTestCase.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
CreateOrUpdateReservedListCommandTestCase.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
CreatePremiumListCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
CreateRegistrarCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
CreateRegistrarGroupsCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
CreateReservedListCommandTest.java Remove more unnecessary "throws" declarations 2018-06-27 15:28:52 -04:00
CreateTldCommandTest.java Remove more unnecessary "throws" declarations 2018-06-27 15:28:52 -04:00
DefaultRequestFactoryModuleTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
DeleteDomainCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
DeleteEntityCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DeleteHostCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
DeletePremiumListCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
DeleteReservedListCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
DeleteTldCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
DomainApplicationInfoCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
EncryptEscrowDepositCommandTest.java Simplify the RyDE API 2018-07-17 22:03:53 -04:00
EppToolCommandTest.java Don't prompt to confirm non-mutating nomulus EPP tool commands 2018-04-10 16:53:18 -04:00
EppToolCommandTestCase.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
EppToolVerifier.java Pretty-print actual XML in tests 2018-07-14 01:37:03 -04:00
ExecuteEppCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
GenerateAllocationTokensCommandTest.java Move the AllocationToken entity to the token subpackage 2018-07-14 01:37:03 -04:00
GenerateAuctionDataCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
GenerateDnsReportCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
GenerateEscrowDepositCommandTest.java Wrap ModulesService in new AppEngineServiceUtils 2018-08-10 13:44:25 -04:00
GetApplicationCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
GetApplicationIdsCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
GetClaimsListCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
GetContactCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
GetDomainCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
GetHistoryEntriesCommandTest.java Pretty-print actual XML in tests 2018-07-14 01:37:03 -04:00
GetHostCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
GetLrpTokenCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
GetRegistrarCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
GetResourceByKeyCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
GetSchemaTreeCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
GetTldCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
GhostrydeCommandTest.java Simplify the Ghostryde API 2018-06-27 15:28:53 -04:00
LevelDbFileBuilder.java Implement compare_db_backups "main" 2017-09-20 10:27:17 -04:00
LevelDbFileBuilderTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
LevelDbLogReaderTest.java Create an entity record accumulator 2017-09-12 15:51:50 -04:00
LevelDbUtil.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
ListCursorsCommandTest.java Make nomulus list_cursors command faster by batching loads 2018-06-27 15:28:52 -04:00
ListDomainsCommandTest.java Add limit to list_domains command 2018-05-17 21:52:35 -04:00
ListHostsCommandTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ListObjectsCommandTestCase.java Add limit to list_domains command 2018-05-17 21:52:35 -04: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 Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
LockDomainCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
MutatingCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
MutatingEppToolCommandTest.java Don't prompt to confirm non-mutating nomulus EPP tool commands 2018-04-10 16:53:18 -04:00
NonMutatingEppToolCommandTest.java Don't prompt to confirm non-mutating nomulus EPP tool commands 2018-04-10 16:53:18 -04:00
RecordAccumulatorTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
RegistrarContactCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
RegistryToolEnvironmentTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
RegistryToolTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
RenewDomainCommandTest.java Add a nomulus renew_domain command 2018-06-06 15:16:09 -04:00
ResaveEntitiesCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
ResaveEnvironmentEntitiesCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
ResaveEppResourcesCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
RestoreCommitLogsCommandTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
SetupOteCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
ShellCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
UniformRapidSuspensionCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
UnlockDomainCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
UpdateApplicationStatusCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
UpdateClaimsNoticeCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
UpdateCursorsCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
UpdateDomainCommandTest.java Allow square bracket expansion when specifying nameservers 2018-08-10 13:44:25 -04:00
UpdatePremiumListCommandTest.java Move tests to use TestDataHelper for reading resources 2018-04-10 16:43:17 -04:00
UpdateRegistrarCommandTest.java Delete all Braintree code 2018-07-14 01:37:03 -04:00
UpdateReservedListCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
UpdateServerLocksCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
UpdateSmdCommandTest.java Update signed marks files and add an expiration test 2018-06-27 15:28:53 -04:00
UpdateTldCommandTest.java Remove more unnecessary "throws" declarations 2018-06-27 15:28:52 -04:00
UploadClaimsListCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
ValidateEscrowDepositCommandTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
ValidateLoginCredentialsCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
VerifyOteCommandTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00