Skip to content

New resource: google_apigee_api_product #14546

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 6 commits into from
Jul 18, 2025

Conversation

rickygodoy
Copy link
Contributor

@rickygodoy rickygodoy commented Jul 16, 2025

Adding a first version for the Apigee API Product.

`google_apigee_api_product`

@github-actions github-actions bot requested a review from SirGitsalot July 16, 2025 19:26
Copy link

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

Googlers: For automatic test runs see go/terraform-auto-test-runs.

@SirGitsalot, 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 ( 6 files changed, 4005 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 6 files changed, 4005 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 823 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_apigee_api_product (5 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_apigee_api_product" "primary" {
  space = # value needed
}

@modular-magician
Copy link
Collaborator

Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccApigeeApiProduct_apigeeApiProduct_full

Tests analytics

Total tests: 65
Passed tests: 20
Skipped tests: 42
Affected tests: 3

Click here to see the affected service packages
  • apigee
#### Action taken
Found 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccApigeeApiProduct_apigeeApiProductBasicTestExample
  • TestAccApigeeApiProduct_apigeeApiProductWithAttributesTestExample
  • TestAccApigeeApiProduct_apigeeApiProductWithLegacyOperationTestExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccApigeeApiProduct_apigeeApiProductWithAttributesTestExample [Debug log]
TestAccApigeeApiProduct_apigeeApiProductWithLegacyOperationTestExample [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccApigeeApiProduct_apigeeApiProductBasicTestExample [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

@rickygodoy
Copy link
Contributor Author

rickygodoy commented Jul 16, 2025

🟢 Tests passed during RECORDING mode: TestAccApigeeApiProduct_apigeeApiProductWithAttributesTestExample [Debug log] TestAccApigeeApiProduct_apigeeApiProductWithLegacyOperationTestExample [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.

🔴 Tests failed during RECORDING mode: TestAccApigeeApiProduct_apigeeApiProductBasicTestExample [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

Error: Error waiting to create Instance: Error waiting for Creating Instance: Error code 13, message: Internal error during operation. Please retry the operation. If the error persists, please contact Apigee support

This one seems like an intermittent error, the other tests create the same instance.

@rickygodoy
Copy link
Contributor Author

The space property cannot be tested right now, it's a new option and we don't have the resource for its creation.

@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 ( 6 files changed, 4006 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 6 files changed, 4006 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 823 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_apigee_api_product (5 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_apigee_api_product" "primary" {
  space = # value needed
}

@modular-magician
Copy link
Collaborator

Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccApigeeApiProduct_apigeeApiProduct_full

Tests analytics

Total tests: 65
Passed tests: 22
Skipped tests: 42
Affected tests: 1

Click here to see the affected service packages
  • apigee
#### 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
  • TestAccApigeeApiProduct_apigeeApiProductBasicTestExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccApigeeApiProduct_apigeeApiProductBasicTestExample [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

Copy link
Member

@SirGitsalot SirGitsalot left a comment

Choose a reason for hiding this comment

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

Mostly LGTM, just one change and a question. I kicked off the tests on our nightly CI system for a full, non-VCR test run.

@github-actions github-actions bot requested a review from SirGitsalot July 18, 2025 02:21
@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 ( 6 files changed, 4005 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 6 files changed, 4005 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 823 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_apigee_api_product (5 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_apigee_api_product" "primary" {
  space = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 65
Passed tests: 23
Skipped tests: 41
Affected tests: 1

Click here to see the affected service packages
  • apigee
#### 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
  • TestAccApigeeApiProduct_apigeeApiProduct_full

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccApigeeApiProduct_apigeeApiProduct_full [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

@SirGitsalot SirGitsalot added this pull request to the merge queue Jul 18, 2025
Merged via the queue into GoogleCloudPlatform:main with commit 955ba8a Jul 18, 2025
26 of 27 checks passed
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.

3 participants