Skip to content

fix(pubsub/pstest): make fake handling of bq subs to be like live service#8066

Merged
hongalex merged 2 commits intogoogleapis:mainfrom
hongalex:fix-bq-config-fake
Jun 8, 2023
Merged

fix(pubsub/pstest): make fake handling of bq subs to be like live service#8066
hongalex merged 2 commits intogoogleapis:mainfrom
hongalex:fix-bq-config-fake

Conversation

@hongalex
Copy link
Member

@hongalex hongalex commented Jun 8, 2023

When creating BQ subscriptions and when BigQueryConfig == nil, we were incorrectly converting this to the zero valued BigQueryConfig{}. This was done to mimic the behavior of PushConfig but upon further investigation, the live service does not behave like this (PushConfig is always empty valued, BigQueryConfig can be nil).

The fake is considered experimental and is safe to break.

Fixes #8044

@hongalex hongalex requested review from a team June 8, 2023 01:33
@hongalex hongalex requested a review from shollyman as a code owner June 8, 2023 01:33
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: pubsub Issues related to the Pub/Sub API. labels Jun 8, 2023
@hongalex hongalex changed the title fix!(pubsub/pstest): make fake handling of bq subs to be like live service Jun 8, 2023
@hongalex hongalex merged commit 57914ec into googleapis:main Jun 8, 2023
@hongalex hongalex deleted the fix-bq-config-fake branch June 8, 2023 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsub Issues related to the Pub/Sub API. size: s Pull request size is small.

2 participants