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

Add parameters to google_org_policy_policy #12008

Merged
merged 8 commits into from
Dec 10, 2024

Conversation

nehalk-tf
Copy link
Contributor

@nehalk-tf nehalk-tf commented Oct 15, 2024

Release Note Template for Downstream PRs (will be copied)

orgpolicy: added `parameters` fields to `google_org_policy_policy` resource (beta)

@github-actions github-actions bot requested a review from c2thorn October 15, 2024 18:06
Copy link

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

@c2thorn, 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 modular-magician added awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests service/orgpolicy and removed awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests labels Oct 15, 2024
@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 ( 1 file changed, 35 insertions(+))
google-beta provider: Diff ( 2 files changed, 126 insertions(+), 10 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 39 insertions(+))

Missing test report

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

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

resource "google_org_policy_policy" "primary" {
  dry_run_spec {
    rules {
      parameters = # value needed
    }
  }
  spec {
    rules {
      parameters = # value needed
    }
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 8
Passed tests: 8
Skipped tests: 0
Affected tests: 0

Click here to see the affected service packages
  • orgpolicy

🟢 All tests passed!

View the build log

@github-actions github-actions bot requested a review from c2thorn October 24, 2024 05:38
@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Oct 24, 2024
Copy link

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

@c2thorn
Copy link
Member

c2thorn commented Oct 28, 2024

running the build

@modular-magician modular-magician removed the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Oct 28, 2024
@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 ( 2 files changed, 63 insertions(+))
google-beta provider: Diff ( 3 files changed, 154 insertions(+), 10 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 39 insertions(+))

Missing test report

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

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

resource "google_org_policy_policy" "primary" {
  dry_run_spec {
    rules {
      parameters = # value needed
    }
  }
  spec {
    rules {
      parameters = # value needed
    }
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 8
Passed tests: 8
Skipped tests: 0
Affected tests: 0

Click here to see the affected service packages
  • orgpolicy

🟢 All tests passed!

View the build log

@github-actions github-actions bot requested a review from c2thorn November 1, 2024 05:10
@modular-magician modular-magician added awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests labels Nov 1, 2024
@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 ( 2 files changed, 140 insertions(+))
google-beta provider: Diff ( 3 files changed, 231 insertions(+), 10 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 39 insertions(+))

Missing test report

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

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

resource "google_org_policy_policy" "primary" {
  dry_run_spec {
    rules {
      parameters = # value needed
    }
  }
  spec {
    rules {
      parameters = # value needed
    }
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 10
Passed tests: 8
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • orgpolicy

Action taken

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

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccOrgPolicyPolicy_EnforceParameterizedMCDryRunPolicy [Error message] [Debug log]
TestAccOrgPolicyPolicy_EnforceParameterizedMCPolicy [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 @c2thorn This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

@modular-magician modular-magician removed the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Nov 12, 2024
@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 ( 2 files changed, 131 insertions(+))
google-beta provider: Diff ( 3 files changed, 222 insertions(+), 10 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 39 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 10
Passed tests: 8
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • orgpolicy

Action taken

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

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccOrgPolicyPolicy_EnforceParameterizedMCDryRunPolicy [Error message] [Debug log]
TestAccOrgPolicyPolicy_EnforceParameterizedMCPolicy [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

@modular-magician modular-magician added awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests labels Nov 12, 2024
@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 ( 2 files changed, 131 insertions(+))
google-beta provider: Diff ( 3 files changed, 222 insertions(+), 10 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 39 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 10
Passed tests: 8
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • orgpolicy

Action taken

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

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccOrgPolicyPolicy_EnforceParameterizedMCDryRunPolicy [Error message] [Debug log]
TestAccOrgPolicyPolicy_EnforceParameterizedMCPolicy [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 @c2thorn This PR has been waiting for review for 2 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

@c2thorn
Copy link
Member

c2thorn commented Nov 19, 2024

disabling review reminders while tests are failing

@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Dec 5, 2024
@nehalk-tf
Copy link
Contributor Author

nehalk-tf commented Dec 9, 2024

Conducted manual testing in the staging environment due to the absence of production constraints that are necessary for automated Terraform tests.

Create resource terraform logs: https://paste.googleplex.com/6345233051418624
Verified updated resource in pantheon: https://screenshot.googleplex.com/7b8k7zi2rpfLAHh

Update resource terraform logs: https://paste.googleplex.com/6661042600673280
Verified updated resource in pantheon: https://screenshot.googleplex.com/5mnQYdPe3p7nBn6

@modular-magician modular-magician removed the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Dec 9, 2024
@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 ( 3 files changed, 225 insertions(+), 10 deletions(-))
google-beta provider: Diff ( 3 files changed, 225 insertions(+), 10 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 39 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 10
Passed tests: 8
Skipped tests: 2
Affected tests: 0

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

🔴 Tests were added that are skipped in VCR:

  • TestAccOrgPolicyPolicy_EnforceParameterizedMCDryRunPolicy
  • TestAccOrgPolicyPolicy_EnforceParameterizedMCPolicy
    🟢 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.

4 participants