Skip to content

new-resource: google_apigee_security_action #14317

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

ramonvermeulen
Copy link
Contributor

@ramonvermeulen ramonvermeulen commented Jun 19, 2025

Closes hashicorp/terraform-provider-google#23241

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

`google_apigee_security_action`

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jun 19, 2025
@ramonvermeulen ramonvermeulen marked this pull request as ready for review June 19, 2025 22:05
@ramonvermeulen
Copy link
Contributor Author

Acceptance tests pass locally:

❮ make testacc TEST=./google/services/apigee TESTARGS='-run=TestAccApigeeSecurityAction_'

TF_ACC=1 TF_SCHEMA_PANIC_ON_ERROR=1 go test ./google/services/apigee -v -run=TestAccApigeeSecurityAction_ -timeout 240m -ldflags="-X=github.com/hashicorp/terraform-provider-google/version.ProviderVersion=acc"
=== RUN   TestAccApigeeSecurityAction_apigeeSecurityActionBasicExample
=== PAUSE TestAccApigeeSecurityAction_apigeeSecurityActionBasicExample
=== CONT  TestAccApigeeSecurityAction_apigeeSecurityActionBasicExample
--- PASS: TestAccApigeeSecurityAction_apigeeSecurityActionBasicExample (630.15s)
PASS
ok      github.com/hashicorp/terraform-provider-google/google/services/apigee   630.869s

@github-actions github-actions bot requested a review from BBBmau June 19, 2025 22:06
Copy link

github-actions bot commented Jun 19, 2025

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.

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

Copy link

@BBBmau This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

@modular-magician modular-magician added service/apigee and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Jun 24, 2025
@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, 1492 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 1492 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 362 insertions(+))

Missing test report

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

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

resource "google_apigee_security_action" "primary" {
  api_proxies = # value needed
  condition_config {
    access_tokens  = # value needed
    api_keys       = # value needed
    api_products   = # value needed
    asns           = # value needed
    developer_apps = # value needed
    developers     = # value needed
    http_methods   = # value needed
    region_codes   = # value needed
    user_agents    = # value needed
  }
  deny {
    response_code = # value needed
  }
  flag {
    headers {
      name  = # value needed
      value = # value needed
    }
  }
  ttl = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 62
Passed tests: 20
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
  • TestAccApigeeSecurityAction_apigeeSecurityActionBasicExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

@GoogleCloudPlatform/terraform-team @BBBmau This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

@ramonvermeulen ramonvermeulen force-pushed the ramon/23241-apigee-security-action-resource branch from ea7d7cf to 6ea75ed Compare June 30, 2025 10:47
@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jun 30, 2025
@rileykarson
Copy link
Member

@modular-magician reassign-reviewer

@github-actions github-actions bot requested review from ScottSuarez and removed request for BBBmau July 1, 2025 17:38
@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jul 2, 2025
@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, 1490 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 1490 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 362 insertions(+))

Missing test report

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

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

resource "google_apigee_security_action" "primary" {
  api_proxies = # value needed
  condition_config {
    access_tokens  = # value needed
    api_keys       = # value needed
    api_products   = # value needed
    asns           = # value needed
    developer_apps = # value needed
    developers     = # value needed
    http_methods   = # value needed
    region_codes   = # value needed
    user_agents    = # value needed
  }
  deny {
    response_code = # value needed
  }
  flag {
    headers {
      name  = # value needed
      value = # value needed
    }
  }
  ttl = # value needed
}

Copy link
Contributor

@ScottSuarez ScottSuarez left a comment

Choose a reason for hiding this comment

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

Could we add another testcase to cover as many fields as possible. I realize some of these fields cannot cover for one reason or another.

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 62
Passed tests: 20
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
  • TestAccApigeeSecurityAction_apigeeSecurityActionBasicExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

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

@ramonvermeulen ramonvermeulen force-pushed the ramon/23241-apigee-security-action-resource branch from 6ea75ed to 3e949ba Compare July 19, 2025 15:55
@ramonvermeulen
Copy link
Contributor Author

Could we add another testcase to cover as many fields as possible. I realize some of these fields cannot cover for one reason or another.

Sorry for the late reply, been busy and have been OOO for a while.

Just updated with a full test case in 3e949ba, only annoying part is that a lot of properties are mutually exclusive, but I think I now covered them all via in-place updates.

Test execution:

❯ make testacc TEST=./google/services/apigee TESTARGS='-run=TestAccApigeeSecurityAction_apigeeSecurityActionFull'

TF_ACC=1 TF_SCHEMA_PANIC_ON_ERROR=1 go test ./google/services/apigee -v -run=TestAccApigeeSecurityAction_apigeeSecurityActionFull -timeout 240m -ldflags="-X=github.com/hashicorp/terraform-provider-google/version.ProviderVersion=acc"
=== RUN   TestAccApigeeSecurityAction_apigeeSecurityActionFull
=== PAUSE TestAccApigeeSecurityAction_apigeeSecurityActionFull
=== CONT  TestAccApigeeSecurityAction_apigeeSecurityActionFull
--- PASS: TestAccApigeeSecurityAction_apigeeSecurityActionFull (1107.71s)
PASS
ok      github.com/hashicorp/terraform-provider-google/google/services/apigee   1108.440s

@github-actions github-actions bot requested a review from ScottSuarez July 19, 2025 15:55
@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jul 19, 2025
@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jul 21, 2025
@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, 1944 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 1944 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 362 insertions(+))

Missing test report

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

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

resource "google_apigee_security_action" "primary" {
  api_proxies = # value needed
}

@modular-magician
Copy link
Collaborator

Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccApigeeSecurityAction_apigeeSecurityActionFull

Tests analytics

Total tests: 66
Passed tests: 24
Skipped tests: 42
Affected tests: 0

Click here to see the affected service packages
  • apigee
🟢 All tests passed!

View the build log

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.

Add support for Apigee Security Actions
4 participants