-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 inter-VPC communications in router_nat resource #9007
add support for inter-VPC communications in router_nat resource #9007
Conversation
Hello! I am a robot. It looks like you are a: Community Contributor @hao-nan-li, 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. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 2 files changed, 62 insertions(+), 15 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccComputeRouterNat_withPrivateNat|TestAccComputeRouterNat_withPortAllocationMethods|TestAccComputeRouterNat_withManualIpAndSubnetConfiguration|TestAccDataprocClusterIamPolicy |
Rerun these tests in REPLAYING mode to catch issues
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 2 files changed, 63 insertions(+), 15 deletions(-)) |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 132 insertions(+), 16 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_compute_router_nat" "primary" {
rules {
action {
source_nat_active_ranges = # value needed
}
}
}
|
Tests analyticsTotal tests: Action takenFound 9 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccComputeRouterNat_withPrivateNatAndRules|TestAccComputeRouterNat_withNatRules|TestAccComputeRouterNat_withPortAllocationMethods|TestAccComputeRouterNat_withManualIpAndSubnetConfiguration|TestAccComputeRouterNat_withNatIpsAndDrainNatIps|TestAccComputeRouterNat_update|TestAccComputeRouterNat_removeLogConfig|TestAccComputeRouterNat_basic|TestAccDataSourceGoogleComputeRouterNat_basic |
Rerun these tests in REPLAYING mode to catch issues
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 2 files changed, 80 insertions(+), 16 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_compute_router_nat" "primary" {
rules {
action {
source_nat_active_ranges = # value needed
source_nat_drain_ranges = # value needed
}
}
}
|
Tests analyticsTotal tests: Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccComputeRouterNat_withPrivateNatAndRules |
Rerun these tests in REPLAYING mode to catch issues
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 2 files changed, 119 insertions(+), 16 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_compute_router_nat" "primary" {
rules {
action {
source_nat_active_ranges = # value needed
source_nat_drain_ranges = # value needed
}
}
}
|
Tests analyticsTotal tests: Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDataprocClusterIamPolicy |
Rerun these tests in REPLAYING mode to catch issues
|
- !ruby/object:Provider::Terraform::Examples | ||
name: 'router_nat_private' | ||
primary_resource_id: 'nat_type' | ||
skip_test: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason to skip this test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeap. There is no generated_test for this resource. All tests are like this one and I put one test here to serve as an example and documentation for the users who may use this new feature.
@@ -128,7 +140,7 @@ properties: | |||
function: 'verify.ValidateRFC1035Name(2, 63)' | |||
- !ruby/object:Api::Type::Enum | |||
name: 'natIpAllocateOption' | |||
required: true | |||
required: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this field is no longer required, what is the default behaviour for an empty field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say not sending the field through the request. For example: if you try to set this field while using the "type=PRIVATE" the api return an error with the following message: "Error creating RouterNat: googleapi: Error 400: Invalid value for field 'resource.nats[0].natIpAllocateOption': 'MANUAL_ONLY'. Setting natIpAllocateOption is unsupported with type=PRIVATE."
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 2 files changed, 119 insertions(+), 16 deletions(-)) Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_compute_router_nat" "primary" {
rules {
action {
source_nat_active_ranges = # value needed
source_nat_drain_ranges = # value needed
}
}
}
|
Tests analyticsTotal tests:
|
Fixes: Fixes: hashicorp/terraform-provider-google#15902
If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
in the generated providers to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)