Skip to content

test skipping permission - #1631

Closed
Anshu6250 wants to merge 2 commits into
mainfrom
test_skip_permission_err
Closed

test skipping permission#1631
Anshu6250 wants to merge 2 commits into
mainfrom
test_skip_permission_err

Conversation

@Anshu6250

Copy link
Copy Markdown
Collaborator

No description provided.

@Anshu6250 Anshu6250 changed the title test test skipping permission Aug 10, 2026
auto const& status = tables_status.GetStatusRecord();

if (IsTableNotFound(status)) {
if (IsTableNotFound(status) || status.native_error_code == 403) {

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 add this error code in the same IsTableNotFound function itself

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

bq_client.FilterDatasets(project_id, filter, options);
if (!datasets) {
auto const& status = datasets.GetStatusRecord();
if (status.native_error_code == 404 || status.native_error_code == 403) {

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.

same here move this IsTableNotFound function to utility and use everywhere

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

@Anshu6250
Anshu6250 force-pushed the test_skip_permission_err branch from e4e2b87 to ad24965 Compare August 12, 2026 15:05
@Anshu6250 Anshu6250 closed this Aug 13, 2026
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