mirror of
https://github.com/google/nomulus.git
synced 2025-06-28 07:13:34 +02:00
Use @DefaultCredential for Cloud API access in GAE
This change completes the switch to @DefaultCredential for all use cases in GAE. Impacted modules: - IcannReporting - CreateCdnsTld command - LoadSnapshot command. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=213511730
This commit is contained in:
parent
9bcd5579ef
commit
961e5cc7c7
20 changed files with 184 additions and 226 deletions
|
@ -41,16 +41,9 @@ public class CreateCdnsTldTest extends CommandTestCase<CreateCdnsTld> {
|
|||
public void setUp() throws Exception {
|
||||
when(dnsService.managedZones()).thenReturn(managedZones);
|
||||
when(managedZones.create(projectId.capture(), requestBody.capture())).thenReturn(request);
|
||||
command = new CreateCdnsTldForTest();
|
||||
command = new CreateCdnsTld();
|
||||
command.projectId = "test-project";
|
||||
}
|
||||
|
||||
/** Fake the command class so we can override createDnsService() */
|
||||
class CreateCdnsTldForTest extends CreateCdnsTld {
|
||||
@Override
|
||||
Dns createDnsService() {
|
||||
return dnsService;
|
||||
}
|
||||
command.dnsService = dnsService;
|
||||
}
|
||||
|
||||
private ManagedZone createZone(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue