Skip to content

Commit

Permalink
fix: resolve a conflict in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TimurSadykov committed Nov 2, 2023
1 parent 090674f commit 3eb4047
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -601,21 +601,10 @@ public void fromJSON_tokenServerUri() throws IOException {
public void fromJson_hasQuotaProjectId() throws IOException {
MockTokenServerTransportFactory transportFactory = new MockTokenServerTransportFactory();
transportFactory.transport.addServiceAccount(CLIENT_EMAIL, ACCESS_TOKEN);
<<<<<<< HEAD
GenericJson json =
writeServiceAccountJson(
CLIENT_ID,
CLIENT_EMAIL,
PRIVATE_KEY_PKCS8,
PRIVATE_KEY_ID,
PROJECT_ID,
QUOTA_PROJECT,
null);
=======
GenericJson json = writeServiceAccountJson(PROJECT_ID, QUOTA_PROJECT, null);
>>>>>>> 7959a6c (fix: move universe_domain to very base Credential, tests cleanup)
GoogleCredentials credentials = ServiceAccountCredentials.fromJson(json, transportFactory);
credentials = credentials.createScoped(SCOPES);

Map<String, List<String>> metadata = credentials.getRequestMetadata(CALL_URI);

assertTrue(metadata.containsKey(GoogleCredentials.QUOTA_PROJECT_ID_HEADER_KEY));
Expand Down

0 comments on commit 3eb4047

Please sign in to comment.