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

azurerm_firewall_policy - support for explicit_proxy and auto_learn_private_ranges_mode properties #19313

Merged
merged 3 commits into from
Dec 5, 2022

Conversation

wuxu92
Copy link
Contributor

@wuxu92 wuxu92 commented Nov 16, 2022

test result:

=== RUN   TestAccFirewallPolicy_complete
=== PAUSE TestAccFirewallPolicy_complete
=== CONT  TestAccFirewallPolicy_complete
--- PASS: TestAccFirewallPolicy_complete (145.61s)
PASS

@wuxu92 wuxu92 changed the title ``add explicit proxy and auto learn priavte range property support azurerm_firewall_policy - support for explicit_proxy and auto_learn_private_ranges_mode properties Nov 16, 2022
Copy link
Member

@catriona-m catriona-m left a comment

Choose a reason for hiding this comment

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

Thanks @wuxu92, this is looking pretty good now, although it seems like there are some test failures that may need fixing:


Test ended in panic.
------- Stdout: -------
=== RUN   TestAccFirewallPolicy_basic
=== PAUSE TestAccFirewallPolicy_basic
=== CONT  TestAccFirewallPolicy_basic
------- Stderr: -------
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x44e566b]
goroutine 420 [running]:
github.com/hashicorp/terraform-provider-azurerm/internal/services/firewall.resourceFirewallPolicyRead(0xc003063600, {0x5bc00e0?, 0xc003734000?})
  /opt/teamcity-agent/work/5e6516bb4d10eb66/internal/services/firewall/firewall_policy_resource.go:213 +0x11ab
github.com/hashicorp/terraform-provider-azurerm/internal/services/firewall.resourceFirewallPolicyCreateUpdate(0xc003063600, {0x5bc00e0?, 0xc003734000})
  /opt/teamcity-agent/work/5e6516bb4d10eb66/internal/services/firewall/firewall_policy_resource.go:137 +0x15c5
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0x6e29880?, {0x6e29880?, 0xc0017ce7b0?}, 0xd?, {0x5bc00e0?, 0xc003734000?})
  /opt/teamcity-agent/work/5e6516bb4d10eb66/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource.go:695 +0x178
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc00398eb60, {0x6e29880, 0xc0017ce7b0}, 0xc0027a89c0, 0xc003063480, {0x5bc00e0, 0xc003734000})
  /opt/teamcity-agent/work/5e6516bb4d10eb66/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource.go:837 +0xa85
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc0032715a8, {0x6e29880?, 0xc0017ce6f0?}, 0xc001e3a9b0)
  /opt/teamcity-agent/work/5e6516bb4d10eb66/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/grpc_provider.go:1021 +0xe8d
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc001b80780, {0x6e29880?, 0xc001828e40?}, 0xc003056e70)
  /opt/teamcity-agent/work/5e6516bb4d10eb66/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server/server.go:818 +0x574
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x623d800?, 0xc001b80780}, {0x6e29880, 0xc001828e40}, 0xc003056e00, 0x0)
  /opt/teamcity-agent/work/5e6516bb4d10eb66/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0001ec000, {0x6e3d3e0, 0xc0025541a0}, 0xc001b10d80, 0xc00183c450, 0xb179fa0, 0x0)
  /opt/teamcity-agent/work/5e6516bb4d10eb66/vendor/google.golang.org/grpc/server.go:1340 +0xd23
google.golang.org/grpc.(*Server).handleStream(0xc0001ec000, {0x6e3d3e0, 0xc0025541a0}, 0xc001b10d80, 0x0)
  /opt/teamcity-agent/work/5e6516bb4d10eb66/vendor/google.golang.org/grpc/server.go:1713 +0xa2f
google.golang.org/grpc.(*Server).serveStreams.func1.2()
  /opt/teamcity-agent/work/5e6516bb4d10eb66/vendor/google.golang.org/grpc/server.go:965 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
  /opt/teamcity-agent/work/5e6516bb4d10eb66/vendor/google.golang.org/grpc/server.go:963 +0x28a

@wuxu92
Copy link
Contributor Author

wuxu92 commented Dec 1, 2022

@catriona-m all test cases pass now

image

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

LGTM 🍏

@katbyte katbyte merged commit 23411a2 into hashicorp:main Dec 5, 2022
@github-actions github-actions bot added this to the v3.35.0 milestone Dec 5, 2022
katbyte added a commit that referenced this pull request Dec 5, 2022
@github-actions
Copy link

github-actions bot commented Dec 9, 2022

This functionality has been released in v3.35.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

github-actions bot commented Jan 9, 2023

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants