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 support for the Internal Ranges API #10465

Merged
merged 6 commits into from
Apr 18, 2024

Conversation

daanheikens
Copy link
Contributor

Fixes: hashicorp/terraform-provider-google#14698

Release Note Template for Downstream PRs (will be copied)

google_network_connectivity_internal_range

Copy link

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

@rileykarson, 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 the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Apr 17, 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 ( 5 files changed, 1380 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 5 files changed, 1380 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 156 insertions(+))
Open in Cloud Shell: Diff ( 16 files changed, 476 insertions(+))

Missing test report

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

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

resource "google_network_connectivity_internal_range" "primary" {
  effective_labels = # value needed
  project          = # value needed
  terraform_labels = # value needed
  users            = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 11
Passed tests: 7
Skipped tests: 0
Affected tests: 4

Click here to see the affected service packages
  • networkconnectivity

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
TestAccNetworkConnectivityInternalRange_networkConnectivityInternalRangesAutomaticReservationExample|TestAccNetworkConnectivityInternalRange_networkConnectivityInternalRangesBasicExample|TestAccNetworkConnectivityInternalRange_networkConnectivityInternalRangesExternalRangesExample|TestAccNetworkConnectivityInternalRange_networkConnectivityInternalRangesReserveWithOverlapExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

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


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccNetworkConnectivityInternalRange_networkConnectivityInternalRangesAutomaticReservationExample[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
Member

@rileykarson rileykarson left a comment

Choose a reason for hiding this comment

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

Couple notes on tests, the resource code itself looks good so far!

@daanheikens
Copy link
Contributor Author

Couple notes on tests, the resource code itself looks good so far!

Thanks @rileykarson i will have a look at it!

@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 Apr 17, 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 ( 6 files changed, 1481 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 6 files changed, 1481 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 156 insertions(+))
Open in Cloud Shell: Diff ( 16 files changed, 476 insertions(+))

Missing test report

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

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

resource "google_network_connectivity_internal_range" "primary" {
  effective_labels = # value needed
  project          = # value needed
  terraform_labels = # value needed
  users            = # value needed
}

@rileykarson
Copy link
Member

(I think that message is wrong, I'll let you know if it's not during my next full pass)

@modular-magician
Copy link
Collaborator

Tests analytics

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

Click here to see the affected service packages
  • networkconnectivity

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
TestAccNetworkConnectivityInternalRange_networkConnectivityInternalRangesAutomaticReservationExample|TestAccNetworkConnectivityInternalRange_networkConnectivityInternalRangesBasicExample_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccNetworkConnectivityInternalRange_networkConnectivityInternalRangesAutomaticReservationExample[Debug log]
TestAccNetworkConnectivityInternalRange_networkConnectivityInternalRangesBasicExample_update[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 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 Apr 18, 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 ( 6 files changed, 1551 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 6 files changed, 1551 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 156 insertions(+))
Open in Cloud Shell: Diff ( 16 files changed, 476 insertions(+))

Missing test report

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

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

resource "google_network_connectivity_internal_range" "primary" {
  project = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 13
Passed tests: 12
Skipped tests: 0
Affected tests: 1

Click here to see the affected service packages
  • networkconnectivity

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
TestAccNetworkConnectivityInternalRange_networkConnectivityInternalRangesExternalRangesExample_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

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

Copy link
Member

@rileykarson rileykarson left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@rileykarson rileykarson merged commit 445ce8f into GoogleCloudPlatform:main Apr 18, 2024
14 checks passed
@daanheikens daanheikens deleted the 14698 branch April 19, 2024 06:09
balanaguharsha pushed a commit to balanaguharsha/magic-modules that referenced this pull request Apr 19, 2024
balanaguharsha pushed a commit to balanaguharsha/magic-modules that referenced this pull request May 2, 2024
balanaguharsha pushed a commit to balanaguharsha/magic-modules that referenced this pull request May 2, 2024
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request May 8, 2024
pawelJas pushed a commit to pawelJas/magic-modules that referenced this pull request May 16, 2024
pengq-google pushed a commit to pengq-google/magic-modules that referenced this pull request May 21, 2024
Cheriit pushed a commit to Cheriit/magic-modules that referenced this pull request Jun 4, 2024
pcostell pushed a commit to pcostell/magic-modules that referenced this pull request Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants