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 SWP as a Next Hop #11840

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

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.

@modular-magician modular-magician added awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests service/networkservices-traffic-director service/private-service-connect-published-service and removed awaiting-approval Pull requests that needs 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 needs reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that needs 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants