Skip to content

impl(bq_driver): Implementing ServiceAccountImpersonationEmail#1604

Draft
Khushikathuria008 wants to merge 1 commit into
mainfrom
impersonation_email
Draft

impl(bq_driver): Implementing ServiceAccountImpersonationEmail#1604
Khushikathuria008 wants to merge 1 commit into
mainfrom
impersonation_email

Conversation

@Khushikathuria008

@Khushikathuria008 Khushikathuria008 commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Gha and macos check here.

TEST(StatementTest, VerifyServiceAccountImpersonationEmailSuccess) {
auto conn = std::make_shared<ODBCHandles>();

std::string conn_str = kDefaultConnectionString +

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have we verified on main as well that this test case will fail? looks like a generic change that might pass on main branch as well

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.
On main, even if we specify kirl-test@bigquery-devtools-drivers.iam.gserviceaccount.com as the ServiceAccountImpersonationEmail, the test still passes because main doesn't actually use or validate this parameter. After the recent changes, the driver starts honoring the ServiceAccountImpersonationEmail, so using this invalid email causes the test to fail as expected.

EXPECT_EQ(Disconnect(conn), SQL_SUCCESS);
}

TEST(StatementTest, VerifyServiceAccountImpersonationEmailFailure) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please combine both the test cases

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants