GoogleCloudPlatform / k8s-config-connector

GCP Config Connector, a Kubernetes add-on for managing GCP resources
https://cloud.google.com/config-connector/docs/overview
Apache License 2.0
894 stars 225 forks source link

GetOperation() never triggered when waiting for the returned LRO after Create/Update/Delete in mockservice #3075

Open maqiuyujoyce opened 2 hours ago

maqiuyujoyce commented 2 hours ago

Describe your question

When running the mock test, GetOperation() in the mock Operations was never triggered when the caller was waiting for the returned LRO after Create/Update/Delete.

maqiuyujoyce commented 2 hours ago

Root cause:

The mock service handler was registered with the real ServeMux instead of the mockgcp ServeMux. Example fix can be found here.