-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ApigeeOrganization update response type. #12413
base: main
Are you sure you want to change the base?
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @roaks3, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
Tests analyticsTotal tests: 51 Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
🟢 Tests passed during RECORDING mode: 🔴 Tests failed when rerunning REPLAYING mode: Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made. Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, or if you have any questions, please raise the concern with your reviewer. 🟢 All tests passed! |
It looks like the failed
|
/gcbrun |
Tests analyticsTotal tests: 51 Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
🟢 Tests passed during RECORDING mode: 🔴 Tests failed when rerunning REPLAYING mode: Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made. Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, or if you have any questions, please raise the concern with your reviewer. 🟢 All tests passed! |
@roaks3 This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice find! Code and solution LGTM, but it would be great to have a test for this if possible. Specifically, I don't think that any existing tests try to update an Apigee Organization, which would have alerted us to this issue sooner (ideally during review). You would be adding an update test (assuming this is feasible).
@masich, this PR is waiting for action from you. If no action is taken, this PR will be closed in 28 days. Please address any comments or change requests, or re-request review from a core reviewer if no action is required. This notification can be disabled with the |
Fixes hashicorp/terraform-provider-google#15947.
This PR fixes the
ApigeeOrganization
update response type according to the public documentation.The issue is related to the fact that after requesting the update to
ApigeeOrganization
here, the provider expects that the response will contain the Operation details to then wait for theOperation
to complete here. Unlike Organization create request, which returnsOperation
, the update response is an Organization instance according to the public docs, meaning that the ApigeeOperationWaitTime tries to process theOrganization
asOperation
.The Operation has a
name
key that is used to track its progress. However, theOrganization
also has aname
key, that contains the name of theOrganization
. That's why the users see a weirdapigee.googleapis.com/v1/<org-name>?alt=json
GET
request in a linked GitHub issue. In that case, theApigeeOperationWaitTime
interprets<org-name>
as the operation name.Release Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.