Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for routing_mode to google_network_services_gateway #11840

Merged
merged 20 commits into from
Oct 4, 2024

Conversation

Samir-Cit
Copy link
Contributor

@Samir-Cit Samir-Cit commented Sep 26, 2024

Hello folks.

This PR is to add the support for Secure Web Proxy as a Next Hop by adding routing_mode field with possible values EXPLICIT_ROUTING_MODE and NEXT_HOP_ROUTING_MODE to the google_network_services_gateway resource

Release Note Template for Downstream PRs (will be copied)

networkservices: added `routing_mode` field to `google_network_services_gateway` resource

Copy link

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

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

@github-actions github-actions bot requested a review from zli82016 September 26, 2024 20:04
@modular-magician modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests service/networkservices-traffic-director service/private-service-connect-published-service and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Sep 26, 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, 267 insertions(+))
google-beta provider: Diff ( 5 files changed, 267 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 10 insertions(+))
Open in Cloud Shell: Diff ( 2 files changed, 3 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1070
Passed tests: 986
Skipped tests: 75
Affected tests: 9

Click here to see the affected service packages
  • compute
  • networkservices

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
  • TestAccComputeServiceAttachment_serviceAttachmentBasicExampleGateway
  • TestAccNetworkServicesGateway_minimalSwp
  • TestAccNetworkServicesGateway_multipleSwpGatewaysDifferentNetwork
  • TestAccNetworkServicesGateway_multipleSwpGatewaysDifferentSubnetwork
  • TestAccNetworkServicesGateway_networkServicesGatewayMultipleSwpSameNetworkExample
  • TestAccNetworkServicesGateway_networkServicesGatewaySecureWebProxyExample
  • TestAccNetworkServicesGateway_networkServicesGatewaySecureWebProxyWithoutAddresses
  • TestAccNetworkServicesGateway_swpAsNextHop
  • TestAccNetworkServicesGateway_updateSwp

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccComputeServiceAttachment_serviceAttachmentBasicExampleGateway[Debug log]
TestAccNetworkServicesGateway_minimalSwp[Debug log]
TestAccNetworkServicesGateway_multipleSwpGatewaysDifferentNetwork[Debug log]
TestAccNetworkServicesGateway_multipleSwpGatewaysDifferentSubnetwork[Debug log]
TestAccNetworkServicesGateway_networkServicesGatewayMultipleSwpSameNetworkExample[Debug log]
TestAccNetworkServicesGateway_networkServicesGatewaySecureWebProxyExample[Debug log]
TestAccNetworkServicesGateway_networkServicesGatewaySecureWebProxyWithoutAddresses[Debug log]
TestAccNetworkServicesGateway_swpAsNextHop[Debug log]
TestAccNetworkServicesGateway_updateSwp[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 need reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Sep 27, 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, 268 insertions(+))
google-beta provider: Diff ( 5 files changed, 268 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 10 insertions(+))
Open in Cloud Shell: Diff ( 2 files changed, 3 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1070
Passed tests: 995
Skipped tests: 75
Affected tests: 0

Click here to see the affected service packages
  • compute
  • networkservices

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

View the build log

@zli82016
Copy link
Member

Hello, @Samir-Cit , adding a required field is a breaking change in Terraform provider and is not allowed in the provider minor version release. But the new field can be added in the next major release (7.0) of providers.

This is the doc. Feel free to let me know if you have any questions.

Also, is there Github issue for this PR? Thanks.

@Samir-Cit
Copy link
Contributor Author

Hello, @Samir-Cit , adding a required field is a breaking change in Terraform provider and is not allowed in the provider minor version release. But the new field can be added in the next major release (7.0) of providers.

This is the doc. Feel free to let me know if you have any questions.

Also, is there Github issue for this PR? Thanks.

Hello @zli82016
Got it, there's no problem this change go in the next major release.

I don't believe we have a Github issue for this. I work with @naveen and this task was on our backlog.
But I'll double check and ask him, if we have I'll put it here!

@zli82016
Copy link
Member

Hello, @Samir-Cit , adding a required field is a breaking change in Terraform provider and is not allowed in the provider minor version release. But the new field can be added in the next major release (7.0) of providers.
This is the doc. Feel free to let me know if you have any questions.
Also, is there Github issue for this PR? Thanks.

Hello @zli82016 Got it, there's no problem this change go in the next major release.

I don't believe we have a Github issue for this. I work with @naveen and this task was on our backlog. But I'll double check and ask him, if we have I'll put it here!

Thank you for your understanding.

If there isn't a Github issue, feel free to create one, which will help to track it in the next major release.

Feel free to close this PR. Thanks.

@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Oct 4, 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 ( 4 files changed, 261 insertions(+), 1 deletion(-))
google-beta provider: Diff ( 4 files changed, 261 insertions(+), 1 deletion(-))
terraform-google-conversion: Diff ( 1 file changed, 10 insertions(+))
Open in Cloud Shell: Diff ( 2 files changed, 3 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 55
Passed tests: 47
Skipped tests: 1
Affected tests: 7

Click here to see the affected service packages
  • networkservices

Action taken

Found 7 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccNetworkServicesGateway_minimalSwp
  • TestAccNetworkServicesGateway_multipleSwpGatewaysDifferentNetwork
  • TestAccNetworkServicesGateway_multipleSwpGatewaysDifferentSubnetwork
  • TestAccNetworkServicesGateway_networkServicesGatewayMultipleSwpSameNetworkExample
  • TestAccNetworkServicesGateway_networkServicesGatewaySecureWebProxyExample
  • TestAccNetworkServicesGateway_networkServicesGatewaySecureWebProxyWithoutAddresses
  • TestAccNetworkServicesGateway_swpUpdate

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccNetworkServicesGateway_minimalSwp[Debug log]
TestAccNetworkServicesGateway_multipleSwpGatewaysDifferentNetwork[Debug log]
TestAccNetworkServicesGateway_multipleSwpGatewaysDifferentSubnetwork[Debug log]
TestAccNetworkServicesGateway_networkServicesGatewaySecureWebProxyWithoutAddresses[Debug log]
TestAccNetworkServicesGateway_swpUpdate[Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccNetworkServicesGateway_networkServicesGatewayMultipleSwpSameNetworkExample[Error message] [Debug log]
TestAccNetworkServicesGateway_networkServicesGatewaySecureWebProxyExample[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

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Oct 4, 2024
@github-actions github-actions bot requested a review from zli82016 October 4, 2024 20:14
@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Oct 4, 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 ( 3 files changed, 255 insertions(+), 1 deletion(-))
google-beta provider: Diff ( 3 files changed, 255 insertions(+), 1 deletion(-))
terraform-google-conversion: Diff ( 1 file changed, 10 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 55
Passed tests: 52
Skipped tests: 1
Affected tests: 2

Click here to see the affected service packages
  • networkservices

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
  • TestAccNetworkServicesGateway_networkServicesGatewayMultipleSwpSameNetworkExample
  • TestAccNetworkServicesGateway_networkServicesGatewaySecureWebProxyExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccNetworkServicesGateway_networkServicesGatewayMultipleSwpSameNetworkExample[Debug log]
TestAccNetworkServicesGateway_networkServicesGatewaySecureWebProxyExample[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

@zli82016 zli82016 changed the title Add support for SWP as a Next Hop Add support for routing_mode to google_network_services_gateway Oct 4, 2024
Copy link
Member

@zli82016 zli82016 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@zli82016 zli82016 merged commit 43a7536 into GoogleCloudPlatform:main Oct 4, 2024
14 checks passed
niharika-98 pushed a commit to niharika-98/magic-modules that referenced this pull request Oct 7, 2024
@Samir-Cit Samir-Cit deleted the feat/swp-next-hop branch November 1, 2024 16:11
akshat-jindal-nit pushed a commit to akshat-jindal-nit/magic-modules that referenced this pull request Nov 18, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants