Skip to content

fix: handle GCP SERVICE_DISABLED responses as expected errors#2340

Open
drwicid wants to merge 1 commit intosomeengineering:mainfrom
drwicid:fix/gcp-service-disabled-error-handling
Open

fix: handle GCP SERVICE_DISABLED responses as expected errors#2340
drwicid wants to merge 1 commit intosomeengineering:mainfrom
drwicid:fix/gcp-service-disabled-error-handling

Conversation

@drwicid
Copy link

@drwicid drwicid commented Mar 10, 2026

Description

This PR improves GCP error handling for optional service APIs and fixes #2339 .

The shared error handler to extract reasons from the structured error.details payload and recognizes SERVICE_DISABLED as an expected PERMISSION_DENIED case. It also applies the shared expected-error set to Filestore snapshot collection so disabled APIs do not surface as collector failures.

Files Changed

  • plugins/gcp/fix_plugin_gcp/resources/base.py
  • plugins/gcp/fix_plugin_gcp/resources/filestore.py
  • plugins/gcp/test/test_base.py
  • plugins/gcp/test/test_filestore.py

Validation

  • I have created tests for any new or updated functionality.
  • I ran tox successfully.

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.

GCP error handling should treat SERVICE_DISABLED responses as expected for optional APIs

1 participant