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

adding new google_secure_source_manager_branch_rule resource #11709

Merged

Conversation

sawaiba-s
Copy link
Contributor

Adds a new google_secure_source_manager_branch_rule resource with tests.

Release Note Template for Downstream PRs (will be copied)

`google_secure_source_manager_branch_rule`

Copy link

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

@slevenick, 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 ( 9 files changed, 1865 insertions(+), 3 deletions(-))
google-beta provider: Diff ( 9 files changed, 1865 insertions(+), 3 deletions(-))
terraform-google-conversion: Diff ( 4 files changed, 541 insertions(+))
Open in Cloud Shell: Diff ( 8 files changed, 242 insertions(+))

Missing test report

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

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

resource "google_secure_source_manager_branch_rule" "primary" {
  allow_stale_reviews = # value needed
  disabled            = # value needed
  etag                = # value needed
}

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

resource "google_secure_source_manager_branch_rule_iam_binding" "primary" {
  branch_rule_id = # value needed
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
  location      = # value needed
  members       = # value needed
  repository_id = # value needed
  role          = # value needed
}

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

resource "google_secure_source_manager_branch_rule_iam_member" "primary" {
  branch_rule_id = # value needed
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
  location      = # value needed
  member        = # value needed
  repository_id = # value needed
  role          = # value needed
}

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

resource "google_secure_source_manager_branch_rule_iam_policy" "primary" {
  branch_rule_id = # value needed
  location       = # value needed
  policy_data    = # value needed
  repository_id  = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 18
Passed tests: 13
Skipped tests: 0
Affected tests: 5

Click here to see the affected service packages
  • securesourcemanager

Action taken

Found 5 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccSecureSourceManagerBranchRuleIamBindingGenerated
  • TestAccSecureSourceManagerBranchRuleIamMemberGenerated
  • TestAccSecureSourceManagerBranchRuleIamPolicyGenerated
  • TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleBasicExample
  • TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleWithFieldsExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccSecureSourceManagerBranchRuleIamBindingGenerated[Error message] [Debug log]
TestAccSecureSourceManagerBranchRuleIamMemberGenerated[Error message] [Debug log]
TestAccSecureSourceManagerBranchRuleIamPolicyGenerated[Error message] [Debug log]
TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleBasicExample[Error message] [Debug log]
TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleWithFieldsExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Errors occurred during RECORDING mode. Please fix them to complete your PR.}}$

View the build log or the debug log for each test

mmv1/products/securesourcemanager/BranchRule.yaml Outdated Show resolved Hide resolved
mmv1/products/securesourcemanager/BranchRule.yaml Outdated Show resolved Hide resolved
mmv1/products/securesourcemanager/BranchRule.yaml Outdated Show resolved Hide resolved
@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 ( 9 files changed, 1865 insertions(+), 3 deletions(-))
google-beta provider: Diff ( 9 files changed, 1865 insertions(+), 3 deletions(-))
terraform-google-conversion: Diff ( 4 files changed, 541 insertions(+))
Open in Cloud Shell: Diff ( 8 files changed, 242 insertions(+))

Missing test report

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

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

resource "google_secure_source_manager_branch_rule" "primary" {
  allow_stale_reviews = # value needed
  disabled            = # value needed
  etag                = # value needed
}

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

resource "google_secure_source_manager_branch_rule_iam_binding" "primary" {
  branch_rule_id = # value needed
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
  location      = # value needed
  members       = # value needed
  repository_id = # value needed
  role          = # value needed
}

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

resource "google_secure_source_manager_branch_rule_iam_member" "primary" {
  branch_rule_id = # value needed
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
  location      = # value needed
  member        = # value needed
  repository_id = # value needed
  role          = # value needed
}

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

resource "google_secure_source_manager_branch_rule_iam_policy" "primary" {
  branch_rule_id = # value needed
  location       = # value needed
  policy_data    = # value needed
  repository_id  = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 18
Passed tests: 13
Skipped tests: 0
Affected tests: 5

Click here to see the affected service packages
  • securesourcemanager

Action taken

Found 5 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccSecureSourceManagerBranchRuleIamBindingGenerated
  • TestAccSecureSourceManagerBranchRuleIamMemberGenerated
  • TestAccSecureSourceManagerBranchRuleIamPolicyGenerated
  • TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleBasicExample
  • TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleWithFieldsExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccSecureSourceManagerBranchRuleIamBindingGenerated[Error message] [Debug log]
TestAccSecureSourceManagerBranchRuleIamMemberGenerated[Error message] [Debug log]
TestAccSecureSourceManagerBranchRuleIamPolicyGenerated[Error message] [Debug log]
TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleBasicExample[Error message] [Debug log]
TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleWithFieldsExample[Error message] [Debug log]

$\textcolor{red}{\textsf{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

@slevenick 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
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, 1108 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 1108 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 149 insertions(+))
Open in Cloud Shell: Diff ( 8 files changed, 257 insertions(+))

Missing test report

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

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

resource "google_secure_source_manager_branch_rule" "primary" {
  allow_stale_reviews = # value needed
  disabled            = # value needed
  etag                = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 15
Passed tests: 13
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • securesourcemanager

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
  • TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleBasicExample
  • TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleWithFieldsExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleBasicExample[Error message] [Debug log]
TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleWithFieldsExample[Error message] [Debug log]

$\textcolor{red}{\textsf{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
Contributor

@slevenick slevenick left a comment

Choose a reason for hiding this comment

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

Test failing with
resource_secure_source_manager_branch_rule_generated_test.go:41: Resource specified by ResourceName couldn't be found: google_secure_source_manager_branch_rule.

@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, 1116 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 1116 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 149 insertions(+))
Open in Cloud Shell: Diff ( 8 files changed, 261 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 15
Passed tests: 13
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • securesourcemanager

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
  • TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleBasicExample
  • TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleWithFieldsExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleBasicExample[Error message] [Debug log]
TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleWithFieldsExample[Error message] [Debug log]

$\textcolor{red}{\textsf{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
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, 1087 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 1087 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 139 insertions(+))
Open in Cloud Shell: Diff ( 8 files changed, 260 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 15
Passed tests: 13
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • securesourcemanager

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
  • TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleBasicExample
  • TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleWithFieldsExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleBasicExample[Debug log]
TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleWithFieldsExample[Debug log]

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{green}{\textsf{All tests passed!}}$

View the build log or the debug log for each test

@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, 1177 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 1177 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 139 insertions(+))
Open in Cloud Shell: Diff ( 8 files changed, 260 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 15
Passed tests: 15
Skipped tests: 0
Affected tests: 0

Click here to see the affected service packages
  • securesourcemanager

$\textcolor{green}{\textsf{All tests passed!}}$

View the build log

@sawaiba-s
Copy link
Contributor Author

Test failing with resource_secure_source_manager_branch_rule_generated_test.go:41: Resource specified by ResourceName couldn't be found: google_secure_source_manager_branch_rule.

Tests are all passing.

@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, 1270 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 6 files changed, 1268 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 139 insertions(+))
Open in Cloud Shell: Diff ( 8 files changed, 260 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 16
Passed tests: 15
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • securesourcemanager

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
  • TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleWithFieldsExample_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleWithFieldsExample_update[Error message] [Debug log]

$\textcolor{red}{\textsf{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
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, 1273 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 6 files changed, 1271 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 139 insertions(+))
Open in Cloud Shell: Diff ( 8 files changed, 260 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 16
Passed tests: 15
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • securesourcemanager

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
  • TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleWithFieldsExample_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

@sawaiba-s
Copy link
Contributor Author

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

@slevenick Do you have any ideas why this test is unable to find the branch rule after creation at the update step? Is it related to the lifecycle of resources in acceptance tests, and what changes do you recommend to improve this test setup?

Copy link

github-actions bot commented Oct 2, 2024

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

…add repo and instance resource to the update test config
@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, 1336 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 6 files changed, 1334 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 139 insertions(+))
Open in Cloud Shell: Diff ( 8 files changed, 260 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 16
Passed tests: 15
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • securesourcemanager

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
  • TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleWithFieldsExample_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccSecureSourceManagerBranchRule_secureSourceManagerBranchRuleWithFieldsExample_update[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

github-actions bot commented Oct 4, 2024

@GoogleCloudPlatform/terraform-team @slevenick 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
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, 1334 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 6 files changed, 1334 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 139 insertions(+))
Open in Cloud Shell: Diff ( 8 files changed, 260 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 16
Passed tests: 16
Skipped tests: 0
Affected tests: 0

Click here to see the affected service packages
  • securesourcemanager

🟢 All tests passed!

View the build log

@slevenick slevenick merged commit 55d45c5 into GoogleCloudPlatform:main Oct 7, 2024
13 checks passed
trodge pushed a commit to trodge/magic-modules that referenced this pull request Oct 10, 2024
niharika-98 pushed a commit to niharika-98/magic-modules that referenced this pull request Oct 10, 2024
karolgorc pushed a commit to karolgorc/magic-modules that referenced this pull request Oct 11, 2024
gontech pushed a commit to gontech/magic-modules that referenced this pull request Oct 16, 2024
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Oct 23, 2024
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Oct 24, 2024
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Nov 5, 2024
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.

7 participants