-
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
Add Cloud Run v2 Service urls field #12194
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @NickElliot, 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: 49 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
|
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.
LGTM, but one question
@@ -28,6 +33,8 @@ func TestAccDataSourceGoogleCloudRunV2Service_basic(t *testing.T) { | |||
resource.TestCheckResourceAttr("data.google_cloud_run_v2_service.hello", "id", id), | |||
resource.TestCheckResourceAttr("data.google_cloud_run_v2_service.hello", "name", name), | |||
resource.TestCheckResourceAttr("data.google_cloud_run_v2_service.hello", "location", location), | |||
resource.TestCheckResourceAttr("data.google_cloud_run_v2_service.hello", "urls.#", "2"), |
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.
given these are output fields, I don't believe they need to be verified in a test like this. is there a reason you added these I'm not realizing?
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.
According to https://googlecloudplatform.github.io/magic-modules/contribute/review-pr/: "all fields added/updated in the PR appear in at least one test". If this is not meant to apply to output only fields I wasn't able to find where this is stated.
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.
given the deterministic nature relative to the other verified fields it seems like theres no harm in keeping it alongside the rest, LGTM
Adds the urls field for v2 Services which contains the recently launched deterministic Service URL in addition to the old style URL set in the singular uri field.
Release Note Template for Downstream PRs (will be copied)