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

Netapp backup vault #9687

Merged
merged 10 commits into from
Dec 28, 2023
Merged

Conversation

okrause
Copy link
Contributor

@okrause okrause commented Dec 20, 2023

Fixes hashicorp/terraform-provider-google#16810

This PR is to support provisioning NetApp Backup Vaults for Google Cloud NetApp Volumes through GCP terraform provider.

Release Note Template for Downstream PRs (will be copied)

google_netapp_backup_vault

@modular-magician
Copy link
Collaborator

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

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

@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 Dec 20, 2023
@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 ( 6 files changed, 930 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 6 files changed, 930 insertions(+), 2 deletions(-))
TF Conversion: Diff ( 1 file changed, 86 insertions(+))
TF OiCS: Diff ( 4 files changed, 109 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3313
Passed tests 2974
Skipped tests: 336
Affected tests: 3

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
TestAccDataprocClusterIamPolicy|TestAccNetappbackupVault_netappBackupVaultExample_update|TestAccNetappbackupVault_netappBackupVaultExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccDataprocClusterIamPolicy[Debug log]
TestAccNetappbackupVault_netappBackupVaultExample_update[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:}}$
TestAccNetappbackupVault_netappBackupVaultExample[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

@okrause
Copy link
Contributor Author

okrause commented Dec 21, 2023

Okay, I just realized that the test harness will run resource_netapp_backup_vault_test.go and resource_netapp_backup_vault_generated_test.go in parallel, with different suffixes. That will not work, as the user is only allowed to create one backup vault per region. Therefore, the test sometimes passed and sometimes fails, due to timing issues. Currently investigating on how to tell the test harness to run the tests sequentially, or will have to use a different region for one of the tests.

@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Dec 21, 2023
@ScottSuarez
Copy link
Contributor

Lets use different regions! :D

- disabled example test. Now only custom test ist running and doesn't generate region conflict
- Small documentation fix
@okrause
Copy link
Contributor Author

okrause commented Dec 22, 2023

Got guidance from @shuyama1. My problem was that generated test and my custom test both created resources in same region and only one resource per region is allowed. Shuya recommended to disable generated test and just use a proper custom test. I disabled generated test and reverted custom test back to use us-central1.

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.

Some questions and nits.

mmv1/products/netapp/backupVault.yaml Outdated Show resolved Hide resolved
mmv1/products/netapp/backupVault.yaml Outdated Show resolved Hide resolved
@modular-magician modular-magician removed the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Dec 27, 2023
@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 ( 5 files changed, 862 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 5 files changed, 862 insertions(+), 2 deletions(-))
TF Conversion: Diff ( 1 file changed, 86 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 4
Passed tests 3
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • netapp

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
TestAccNetappbackupVault_netappBackupVaultExample_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccNetappbackupVault_netappBackupVaultExample_update[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

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.

Thanks for the work !

@ScottSuarez ScottSuarez merged commit 7cabf6d into GoogleCloudPlatform:main Dec 28, 2023
14 checks passed
kapreus pushed a commit to kapreus/magic-modules that referenced this pull request Jan 2, 2024
* netapp-backup-vault: First commit

* Updated test file

* make the tests use different regions

* Revert testing back to us-central1

- disabled example test. Now only custom test ist running and doesn't generate region conflict
- Small documentation fix

* make lint-yaml happy

* make lint-yaml happy2

* make yamlking happy3

* Move example above parameters
kylase pushed a commit to yuanchuankee/magic-modules that referenced this pull request Jan 21, 2024
* netapp-backup-vault: First commit

* Updated test file

* make the tests use different regions

* Revert testing back to us-central1

- disabled example test. Now only custom test ist running and doesn't generate region conflict
- Small documentation fix

* make lint-yaml happy

* make lint-yaml happy2

* make yamlking happy3

* Move example above parameters
@okrause okrause deleted the netapp-backup-vault branch March 1, 2024 14:40
balanaguharsha pushed a commit to balanaguharsha/magic-modules that referenced this pull request May 2, 2024
* netapp-backup-vault: First commit

* Updated test file

* make the tests use different regions

* Revert testing back to us-central1

- disabled example test. Now only custom test ist running and doesn't generate region conflict
- Small documentation fix

* make lint-yaml happy

* make lint-yaml happy2

* make yamlking happy3

* Move example above parameters
pengq-google pushed a commit to pengq-google/magic-modules that referenced this pull request May 21, 2024
* netapp-backup-vault: First commit

* Updated test file

* make the tests use different regions

* Revert testing back to us-central1

- disabled example test. Now only custom test ist running and doesn't generate region conflict
- Small documentation fix

* make lint-yaml happy

* make lint-yaml happy2

* make yamlking happy3

* Move example above parameters
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.

Add support for backup_vault resource for Google Cloud NetApp Volumes
4 participants