This repository was archived by the owner on Dec 3, 2023. It is now read-only.
Merged
Changes from 1 commit
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Failed to load files.
PrevPrevious commit
Next Next commit
add project id to test
  • Loading branch information
@codyoss
codyoss committedDec 13, 2019
commit 12102a902b2c3b4b46855979cecd52925e204c81
Original file line numberDiff line numberDiff line change
Expand Up@@ -320,6 +320,7 @@ public void testBuilder_quotaProjectServiceOptionTakesPrecedence() {
TestServiceOptions noCredsWithQuotaProject =
TestServiceOptions.newBuilder()
.setCredentials(NoCredentials.getInstance())
.setQuotaProjectId("project-id")
.setQuotaProjectId("quota-project-id")
.build();
TestServiceOptions quotaProjectCredsWithQuotaProject =
Expand All@@ -330,7 +331,10 @@ public void testBuilder_quotaProjectServiceOptionTakesPrecedence() {
TestServiceOptions quotaProjectCreds =
TestServiceOptions.newBuilder().setCredentials(credentialsWithQuotaProject).build();
TestServiceOptions none =
TestServiceOptions.newBuilder().setCredentials(NoCredentials.getInstance()).build();
TestServiceOptions.newBuilder()
.setCredentials(NoCredentials.getInstance())
.setQuotaProjectId("project-id")
.build();

assertEquals("quota-project-id", noCredsWithQuotaProject.getQuotaProjectId());
assertEquals("quota-project-id", quotaProjectCredsWithQuotaProject.getQuotaProjectId());
Expand Down