Skip to content

Adding Apigee Dns Zone resource support #13060

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

Merged
merged 4 commits into from
Mar 21, 2025

Conversation

sauragrawal
Copy link
Contributor

Adding support for google_apigee_dns_zone resource

Fixes: hashicorp/terraform-provider-google#21391

Release Note Template for Downstream PRs (will be copied)

`google_apigee_dns_zone`

@github-actions github-actions bot requested a review from melinath February 12, 2025 22:33
Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@melinath, 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.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 5 files changed, 640 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 780 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 119 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 55
Passed tests: 17
Skipped tests: 37
Affected tests: 1

Click here to see the affected service packages
  • apigee
#### Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccApigeeDnsZone_apigeeDnsZoneBasicTestExample

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccApigeeEnvironmentAddonsConfig_apigeeEnvAddonsAnalyticsTestExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccApigeeEnvironmentAddonsConfig_apigeeEnvAddonsAnalyticsTestExample [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

Copy link

@sauragrawal, 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.

Image showing the re-request review button

This notification can be disabled with the disable-automatic-closure label.

@github-actions github-actions bot requested a review from melinath March 4, 2025 17:07
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 5 files changed, 644 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 784 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 121 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 55
Passed tests: 18
Skipped tests: 37
Affected tests: 0

Click here to see the affected service packages
  • apigee
#### Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccApigeeDnsZone_apigeeDnsZoneBasicTestExample
    🟢 All tests passed!

View the build log

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 5 files changed, 627 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 767 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 121 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 55
Passed tests: 18
Skipped tests: 37
Affected tests: 0

Click here to see the affected service packages
  • apigee
#### Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccApigeeDnsZone_apigeeDnsZoneBasicTestExample
    🟢 All tests passed!

View the build log

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 5 files changed, 627 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 767 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 121 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 55
Passed tests: 18
Skipped tests: 37
Affected tests: 0

Click here to see the affected service packages
  • apigee
#### Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccApigeeDnsZone_apigeeDnsZoneBasicTestExample
    🟢 All tests passed!

View the build log

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 5 files changed, 627 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 767 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 121 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 55
Passed tests: 18
Skipped tests: 37
Affected tests: 0

Click here to see the affected service packages
  • apigee
#### Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccApigeeDnsZone_apigeeDnsZoneBasicTestExample
    🟢 All tests passed!

View the build log

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 5 files changed, 627 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 767 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 121 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 55
Passed tests: 18
Skipped tests: 37
Affected tests: 0

Click here to see the affected service packages
  • apigee
#### Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccApigeeDnsZone_apigeeDnsZoneBasicTestExample
    🟢 All tests passed!

View the build log

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 5 files changed, 627 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 775 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 121 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 55
Passed tests: 18
Skipped tests: 37
Affected tests: 0

Click here to see the affected service packages
  • apigee
#### Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccApigeeDnsZone_apigeeDnsZoneBasicTestExample
    🟢 All tests passed!

View the build log

Copy link
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the rework, but it looks like I was wrong (misinterpreted the test failure last time around) and the custom_import is necessary. Specifically, the problem is that orgId contains the organizations/ part as well. It could be possible to make this behave in a more normal way but then it would potentially diverge from other apigee resources.

The test failure is now:

        Error: Import id "organizations/tf-testqi46wps6k0/dnsZones/tf-testqi46wps6k0" doesn't match any of the accepted formats: [^(?P<org_id>[^/]+)/dnsZones/(?P<dns_zone_id>[^/]+)$ ^(?P<org_id>[^/]+)/(?P<dns_zone_id>[^/]+)$]

Comment on lines +29 to +30
- '{{org_id}}/dnsZones/{{dns_zone_id}}'
- '{{org_id}}/{{dns_zone_id}}'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding % here would let org_id contain /, and would probably work. But you wouldn't get the same level of information in error messages if users specify it wrong.

Suggested change
- '{{org_id}}/dnsZones/{{dns_zone_id}}'
- '{{org_id}}/{{dns_zone_id}}'
- '{{%org_id}}/dnsZones/{{dns_zone_id}}'
- '{{%org_id}}/{{dns_zone_id}}'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the custom import code

@github-actions github-actions bot requested a review from melinath March 21, 2025 20:47
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 5 files changed, 644 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 792 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 121 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 55
Passed tests: 18
Skipped tests: 37
Affected tests: 0

Click here to see the affected service packages
  • apigee
#### Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccApigeeDnsZone_apigeeDnsZoneBasicTestExample
    🟢 All tests passed!

View the build log

@melinath melinath added this pull request to the merge queue Mar 21, 2025
Merged via the queue into GoogleCloudPlatform:main with commit ddb6b26 Mar 21, 2025
25 checks passed
JaylonmcShan03 pushed a commit to JaylonmcShan03/magic-modules-jmcshan that referenced this pull request Mar 30, 2025
Dawid212 pushed a commit to Dawid212/magic-modules that referenced this pull request Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for provisioning Apigee DNS Zone for Apigee organization without VPC Peering
3 participants