Skip to content
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

Failing test(s): ServiceManagementService generated tests #13088

Closed
melinath opened this issue Nov 18, 2022 · 3 comments
Closed

Failing test(s): ServiceManagementService generated tests #13088

melinath opened this issue Nov 18, 2022 · 3 comments

Comments

@melinath
Copy link
Collaborator

melinath commented Nov 18, 2022

Affected Resource(s)

  • google_endpoints_service
  • google_endpoints_service_iam_binding

The following ServiceManagementService generated tests were added (but didn't get generated at the time due to #13138) and do not pass. We should fix them or determine they are not needed.

  • TestAccServiceManagementService_endpointsIamExample
  • TestAccServiceManagementServiceConsumers_endpointsIamExample
@rileykarson rileykarson added this to the Goals milestone Jan 30, 2023
@github-actions github-actions bot added forward/review In review; remove label to forward service/endpoints labels Sep 11, 2023
@roaks3
Copy link
Collaborator

roaks3 commented Sep 29, 2023

Note: these tests were added a long time ago in GoogleCloudPlatform/magic-modules#2318, and I do not see anything IAM-related in them. My guess is that they were used in some previous iteration of magic-modules where a base example might have been used.

We do currently have *IamMemberGenerated, *IamBindingGenerated, and *IamPolicyGenerated tests for each resource, so the IAM behavior appears to be covered, and I would think we can remove these.

cc @slevenick in case you remember any context from ~4 years ago

@roaks3 roaks3 added service/terraform and removed forward/review In review; remove label to forward labels Sep 29, 2023
@melinath
Copy link
Collaborator Author

melinath commented Apr 4, 2024

I ended up re-spelunking on this ticket because I'd forgotten the context. To summarize (hopefully better this time):

  • We have resources defined in servicemanagement/Service.yaml and servicemanagement/ServiceConsumers.yaml.
  • The resource is "excluded" for both yaml files because they're both handwritten
  • These yaml files define "examples" that both use endpoints_iam.tf.erb

But anyway, the point is that the google_endpoints_service resource is already covered by https://github.com/hashicorp/terraform-provider-google-beta/blob/main/google-beta/services/servicemanagement/resource_endpoints_service_test.go, and there isn't a real ServiceConsumers resource to be tested, so no tests are missing. The spurious failures caused by generating these tests are a problem for changing test generation, but not an issue on their own.

@melinath melinath closed this as completed Apr 4, 2024
Copy link

github-actions bot commented May 6, 2024

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants