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 RestorePlan to Backup for GKE #8803

Merged
merged 14 commits into from
Sep 15, 2023

Conversation

neha-vellanki12
Copy link
Contributor

Adding RestorePlan resource to Backup for GKE
Part of hashicorp/terraform-provider-google#12634

If this PR is for Terraform, I acknowledge that I have:

  • [ X] Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • [ X] Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • [ X] Generated Terraform providers, and ran make test and make lint in the generated providers to ensure it passes unit and linter tests.
  • [X ] Ran relevant acceptance tests using my own Google Cloud project and credentials (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • [X ] Read Write release notes before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

`google_gke_backup_restore_plan`

@modular-magician
Copy link
Collaborator

Hello! I am a robot. It looks like you are a: Community Contributor Googler Core Contributor. Tests will run automatically.

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

Terraform GA: Diff ( 8 files changed, 3629 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 8 files changed, 3629 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 4 files changed, 999 insertions(+))

Missing test report

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

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

resource "google_gke_backup_restore_plan" "primary" {
  description = # value needed
  labels      = # value needed
  restore_config {
    cluster_resource_restore_scope {
      excluded_group_kinds {
        resource_group = # value needed
        resource_kind  = # value needed
      }
    }
    excluded_namespaces {
      namespaces = # value needed
    }
    transformation_rules {
      field_actions {
        from_path = # value needed
      }
      resource_filter {
        group_kinds {
          resource_group = # value needed
        }
      }
    }
  }
}

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

resource "google_gke_backup_restore_plan_iam_binding" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

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

resource "google_gke_backup_restore_plan_iam_member" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

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

Terraform GA: Diff ( 8 files changed, 3629 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 8 files changed, 3629 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 4 files changed, 999 insertions(+))

Missing test report

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

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

resource "google_gke_backup_restore_plan" "primary" {
  description = # value needed
  labels      = # value needed
  restore_config {
    cluster_resource_restore_scope {
      excluded_group_kinds {
        resource_group = # value needed
        resource_kind  = # value needed
      }
    }
    excluded_namespaces {
      namespaces = # value needed
    }
    transformation_rules {
      field_actions {
        from_path = # value needed
      }
      resource_filter {
        group_kinds {
          resource_group = # value needed
        }
      }
    }
  }
}

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

resource "google_gke_backup_restore_plan_iam_binding" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

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

resource "google_gke_backup_restore_plan_iam_member" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3015
Passed tests 2711
Skipped tests: 296
Affected tests: 8

Action taken

Found 8 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccGKEBackupRestorePlanIamMemberGenerated|TestAccGKEBackupRestorePlan_gkebackupRestoreplanRollbackNamespaceExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanRenameNamespaceExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanAllClusterResourcesExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanProtectedApplicationExample|TestAccGKEBackupRestorePlanIamBindingGenerated|TestAccGKEBackupRestorePlan_gkebackupRestoreplanAllNamespacesExample|TestAccGKEBackupRestorePlanIamPolicyGenerated

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccGKEBackupRestorePlan_gkebackupRestoreplanRollbackNamespaceExample[Debug log]
TestAccGKEBackupRestorePlan_gkebackupRestoreplanRenameNamespaceExample[Debug log]
TestAccGKEBackupRestorePlan_gkebackupRestoreplanAllClusterResourcesExample[Debug log]
TestAccGKEBackupRestorePlan_gkebackupRestoreplanAllNamespacesExample[Debug log]

Rerun these tests in REPLAYING mode to catch issues

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


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccGKEBackupRestorePlanIamMemberGenerated[Error message] [Debug log]
TestAccGKEBackupRestorePlan_gkebackupRestoreplanProtectedApplicationExample[Error message] [Debug log]
TestAccGKEBackupRestorePlanIamBindingGenerated[Error message] [Debug log]
TestAccGKEBackupRestorePlanIamPolicyGenerated[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

Copy link
Contributor

@trodge trodge left a comment

Choose a reason for hiding this comment

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

Could you fix the failing tests? I think the issue is mismatched resource names.

Also, could you add the fields identified by the missing test detector to at least one test?

}

resource "google_gke_backup_restore_plan" "all_cluster_resources" {
name = "rp-<%= ctx[:vars]['name'] %>"
Copy link
Contributor

Choose a reason for hiding this comment

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

This resource name should start with tf-test- and match the resource name in the yaml file.

Copy link
Member

Choose a reason for hiding this comment

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

tf-test should be prepended by <%= ctx[:vars]['name'] %> automatically as long as there's a hyphen in the name value!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm still seeing missing tests for the IAM binding. I never had to add tests for this when we added BackupPlan resource, are these tests needed?

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

Terraform GA: Diff ( 8 files changed, 3629 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 8 files changed, 3629 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 4 files changed, 999 insertions(+))

Missing test report

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

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

resource "google_gke_backup_restore_plan" "primary" {
  description = # value needed
  labels      = # value needed
  restore_config {
    cluster_resource_restore_scope {
      excluded_group_kinds {
        resource_group = # value needed
        resource_kind  = # value needed
      }
    }
    excluded_namespaces {
      namespaces = # value needed
    }
    transformation_rules {
      field_actions {
        from_path = # value needed
      }
      resource_filter {
        group_kinds {
          resource_group = # value needed
        }
      }
    }
  }
}

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

resource "google_gke_backup_restore_plan_iam_binding" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

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

resource "google_gke_backup_restore_plan_iam_member" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

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

Terraform GA: Diff ( 8 files changed, 3785 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 8 files changed, 3785 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 4 files changed, 999 insertions(+))

Missing test report

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

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

resource "google_gke_backup_restore_plan" "primary" {
  description = # value needed
  labels      = # value needed
  restore_config {
    cluster_resource_restore_scope {
      excluded_group_kinds {
        resource_group = # value needed
        resource_kind  = # value needed
      }
    }
    excluded_namespaces {
      namespaces = # value needed
    }
    transformation_rules {
      field_actions {
        from_path = # value needed
      }
      resource_filter {
        group_kinds {
          resource_group = # value needed
        }
      }
    }
  }
}

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

resource "google_gke_backup_restore_plan_iam_binding" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

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

resource "google_gke_backup_restore_plan_iam_member" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3029
Passed tests 2726
Skipped tests: 297
Affected tests: 6

Action taken

Found 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccGKEHub2ScopeIamBindingGenerated|TestAccGKEHub2Scope_gkehubScopeBasicExample|TestAccGKEHub2ScopeIamMemberGenerated|TestAccGKEHub2ScopeIamPolicyGenerated|TestAccDataSourceGoogleServiceAccountJwt|TestAccDataSourceGoogleServiceAccountIdToken_impersonation

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccGKEHub2ScopeIamBindingGenerated[Debug log]
TestAccGKEHub2Scope_gkehubScopeBasicExample[Debug log]
TestAccGKEHub2ScopeIamMemberGenerated[Debug log]
TestAccGKEHub2ScopeIamPolicyGenerated[Debug log]
TestAccDataSourceGoogleServiceAccountJwt[Debug log]
TestAccDataSourceGoogleServiceAccountIdToken_impersonation[Debug log]

Rerun these tests in REPLAYING mode to catch issues

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


$\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.

Terraform GA: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 4 files changed, 999 insertions(+))

Missing test report

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

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

resource "google_gke_backup_restore_plan" "primary" {
  description = # value needed
  labels      = # value needed
  restore_config {
    cluster_resource_restore_scope {
      excluded_group_kinds {
        resource_group = # value needed
        resource_kind  = # value needed
      }
    }
    excluded_namespaces {
      namespaces = # value needed
    }
    transformation_rules {
      field_actions {
        from_path = # value needed
      }
      resource_filter {
        group_kinds {
          resource_group = # value needed
        }
      }
    }
  }
}

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

resource "google_gke_backup_restore_plan_iam_binding" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

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

resource "google_gke_backup_restore_plan_iam_member" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3029
Passed tests 2728
Skipped tests: 297
Affected tests: 4

Action taken

Found 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccMonitoringMonitoredProject_monitoringMonitoredProjectLongFormExample|TestAccMonitoringMonitoredProject_projectNumShortForm|TestAccMonitoringMonitoredProject_projectNumLongForm|TestAccMonitoringMonitoredProject_monitoringMonitoredProjectBasicExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccMonitoringMonitoredProject_monitoringMonitoredProjectLongFormExample[Debug log]
TestAccMonitoringMonitoredProject_projectNumShortForm[Debug log]
TestAccMonitoringMonitoredProject_projectNumLongForm[Debug log]
TestAccMonitoringMonitoredProject_monitoringMonitoredProjectBasicExample[Debug log]

Rerun these tests in REPLAYING mode to catch issues

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


$\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.

Terraform GA: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 4 files changed, 999 insertions(+))

Missing test report

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

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

resource "google_gke_backup_restore_plan_iam_binding" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

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

resource "google_gke_backup_restore_plan_iam_member" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3051
Passed tests 2745
Skipped tests: 297
Affected tests: 9

Action taken

Found 9 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccGKEBackupRestorePlanIamPolicyGenerated|TestAccGKEBackupRestorePlanIamBindingGenerated|TestAccGKEBackupRestorePlanIamMemberGenerated|TestAccGKEBackupRestorePlan_gkebackupRestoreplanProtectedApplicationExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanSecondTransformationExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanAllClusterResourcesExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanAllNamespacesExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanRenameNamespaceExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanRollbackNamespaceExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccGKEBackupRestorePlan_gkebackupRestoreplanSecondTransformationExample[Debug log]
TestAccGKEBackupRestorePlan_gkebackupRestoreplanAllClusterResourcesExample[Debug log]
TestAccGKEBackupRestorePlan_gkebackupRestoreplanAllNamespacesExample[Debug log]
TestAccGKEBackupRestorePlan_gkebackupRestoreplanRenameNamespaceExample[Debug log]
TestAccGKEBackupRestorePlan_gkebackupRestoreplanRollbackNamespaceExample[Debug log]

Rerun these tests in REPLAYING mode to catch issues

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


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccGKEBackupRestorePlanIamPolicyGenerated[Error message] [Debug log]
TestAccGKEBackupRestorePlanIamBindingGenerated[Error message] [Debug log]
TestAccGKEBackupRestorePlanIamMemberGenerated[Error message] [Debug log]
TestAccGKEBackupRestorePlan_gkebackupRestoreplanProtectedApplicationExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these 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.

Terraform GA: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 4 files changed, 999 insertions(+))

Missing test report

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

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

resource "google_gke_backup_restore_plan_iam_binding" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

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

resource "google_gke_backup_restore_plan_iam_member" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3053
Passed tests 2750
Skipped tests: 298
Affected tests: 5

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
TestAccDataprocJobIamPolicy|TestAccGKEBackupRestorePlanIamPolicyGenerated|TestAccGKEBackupRestorePlanIamBindingGenerated|TestAccGKEBackupRestorePlanIamMemberGenerated|TestAccGKEBackupRestorePlan_gkebackupRestoreplanProtectedApplicationExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

Rerun these tests in REPLAYING mode to catch issues

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


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccGKEBackupRestorePlanIamPolicyGenerated[Error message] [Debug log]
TestAccGKEBackupRestorePlanIamBindingGenerated[Error message] [Debug log]
TestAccGKEBackupRestorePlanIamMemberGenerated[Error message] [Debug log]
TestAccGKEBackupRestorePlan_gkebackupRestoreplanProtectedApplicationExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these 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.

Terraform GA: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 4 files changed, 999 insertions(+))

Missing test report

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

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

resource "google_gke_backup_restore_plan_iam_binding" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

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

resource "google_gke_backup_restore_plan_iam_member" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3053
Passed tests 2750
Skipped tests: 298
Affected tests: 5

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
TestAccGKEBackupRestorePlanIamPolicyGenerated|TestAccGKEBackupRestorePlan_gkebackupRestoreplanProtectedApplicationExample|TestAccGKEBackupRestorePlanIamBindingGenerated|TestAccGKEBackupRestorePlanIamMemberGenerated|TestAccIapWebTypeAppEngineIamBindingGenerated

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

Rerun these tests in REPLAYING mode to catch issues

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


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

$\textcolor{red}{\textsf{Please fix these 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.

Terraform GA: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 4 files changed, 999 insertions(+))

Missing test report

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

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

resource "google_gke_backup_restore_plan_iam_binding" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

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

resource "google_gke_backup_restore_plan_iam_member" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

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

Terraform GA: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 4 files changed, 999 insertions(+))

Missing test report

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

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

resource "google_gke_backup_restore_plan_iam_binding" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

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

resource "google_gke_backup_restore_plan_iam_member" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

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

Terraform GA: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 8 files changed, 3793 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 4 files changed, 999 insertions(+))

Missing test report

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

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

resource "google_gke_backup_restore_plan_iam_binding" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

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

resource "google_gke_backup_restore_plan_iam_member" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3054
Passed tests 2746
Skipped tests: 298
Affected tests: 10

Action taken

Found 10 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccGKEBackupRestorePlanIamPolicyGenerated|TestAccGKEBackupRestorePlanIamBindingGenerated|TestAccGKEBackupRestorePlanIamMemberGenerated|TestAccGKEBackupRestorePlan_gkebackupRestoreplanAllNamespacesExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanProtectedApplicationExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanAllClusterResourcesExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanSecondTransformationExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanRollbackNamespaceExample|TestAccGKEBackupRestorePlan_gkebackupRestoreplanRenameNamespaceExample|TestAccHealthcareDatasetIamPolicy

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccGKEBackupRestorePlanIamPolicyGenerated[Debug log]
TestAccGKEBackupRestorePlanIamBindingGenerated[Debug log]
TestAccGKEBackupRestorePlanIamMemberGenerated[Debug log]
TestAccGKEBackupRestorePlan_gkebackupRestoreplanAllNamespacesExample[Debug log]
TestAccGKEBackupRestorePlan_gkebackupRestoreplanProtectedApplicationExample[Debug log]
TestAccGKEBackupRestorePlan_gkebackupRestoreplanAllClusterResourcesExample[Debug log]
TestAccGKEBackupRestorePlan_gkebackupRestoreplanSecondTransformationExample[Debug log]
TestAccGKEBackupRestorePlan_gkebackupRestoreplanRollbackNamespaceExample[Debug log]
TestAccGKEBackupRestorePlan_gkebackupRestoreplanRenameNamespaceExample[Debug log]
TestAccHealthcareDatasetIamPolicy[Debug log]

Rerun these tests in REPLAYING mode to catch issues

$\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

@trodge trodge merged commit eb0bf5c into GoogleCloudPlatform:main Sep 15, 2023
RileyHYZ pushed a commit to RileyHYZ/magic-modules that referenced this pull request Sep 15, 2023
* adding RestorePlan to Backup for GKE

* fixed spacing issue

* fixed more spacing issue

* adding newline end of file

* fixed trailing spaces

* fixed test file names

* added test gaps

* adding description adn labels

* fixed tests

* fixed protected application name length

* fixed protected app test

* fix restore all namespaces test names

* removed bp prefix from resource names

* removed last bp ref
joelkattapuram pushed a commit to joelkattapuram/magic-modules that referenced this pull request Sep 20, 2023
* adding RestorePlan to Backup for GKE

* fixed spacing issue

* fixed more spacing issue

* adding newline end of file

* fixed trailing spaces

* fixed test file names

* added test gaps

* adding description adn labels

* fixed tests

* fixed protected application name length

* fixed protected app test

* fix restore all namespaces test names

* removed bp prefix from resource names

* removed last bp ref
nevzheng pushed a commit to nevzheng/magic-modules that referenced this pull request Sep 22, 2023
* adding RestorePlan to Backup for GKE

* fixed spacing issue

* fixed more spacing issue

* adding newline end of file

* fixed trailing spaces

* fixed test file names

* added test gaps

* adding description adn labels

* fixed tests

* fixed protected application name length

* fixed protected app test

* fix restore all namespaces test names

* removed bp prefix from resource names

* removed last bp ref
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants