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 Beta support & Beta feature ip_version to google_compute_global_forwarding_rule #265

Merged
merged 5 commits into from
Aug 4, 2017

Conversation

rileykarson
Copy link
Collaborator

Waiting on #249 to merge, but otherwise able to be reviewed.
The third commit duplicates some code in #250. I'm either going to base it into the first commit if this merges first, or merge #250 first.

  • Convert google_compute_global_forwarding_rule to a versioned resource with Beta support.
  • Add support for the Beta field ip_version to google_compute_global_forwarding_rule

Explicitly setting IPV4 on a v1 resource forces a recreate as you're going from "" to IPV4 and this resource can't update; this is working as expected based on #185. We don't have enough information at refresh time to perform the read at v0beta.

Part 2/2 of #245.
Related to #93

resource.TestStep{
Config: testAccComputeGlobalForwardingRule_ipv6(fr, proxy1, proxy2, backend, hc, urlmap),
Check: resource.ComposeTestCheckFunc(
testAccCheckComputeBetaGlobalForwardingRuleExists(
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as in #250, consider adding an assertion on the format of the address field to make sure an ipv6 address is used. Do the same for the ipv4 case to make sure an ipv4 address is used

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Checked IPV4 on the _basic case, IpVersion is "" for this resource by default, but that means IPV4.

@rileykarson
Copy link
Collaborator Author

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./google -v -run=TestAccComputeGlobalForwardingRule -timeout 120m
=== RUN   TestAccComputeGlobalForwardingRule_basic
--- PASS: TestAccComputeGlobalForwardingRule_basic (111.14s)
=== RUN   TestAccComputeGlobalForwardingRule_update
--- PASS: TestAccComputeGlobalForwardingRule_update (123.64s)
=== RUN   TestAccComputeGlobalForwardingRule_ipv6
--- PASS: TestAccComputeGlobalForwardingRule_ipv6 (110.92s)
PASS
ok  	github.com/terraform-providers/terraform-provider-google/google	345.825s

@rileykarson rileykarson merged commit 0d02b11 into hashicorp:master Aug 4, 2017
z1nkum pushed a commit to z1nkum/terraform-provider-google that referenced this pull request Aug 15, 2017
…orwarding_rule (hashicorp#265)

* Add versioned Beta support to google_compute_global_forwarding_rule.

* Add Beta support for ip_version in google_compute_global_forwarding_rule.

* Temporary commit with compute_shared_operation.go changes.

* Added a test to see if v1 GFR is still IPV4, moved to a TestCheckFunc

* This API returns the original self links, but let's make sure we don't diff.
negz pushed a commit to negz/terraform-provider-google that referenced this pull request Oct 17, 2017
…orwarding_rule (hashicorp#265)

* Add versioned Beta support to google_compute_global_forwarding_rule.

* Add Beta support for ip_version in google_compute_global_forwarding_rule.

* Temporary commit with compute_shared_operation.go changes.

* Added a test to see if v1 GFR is still IPV4, moved to a TestCheckFunc

* This API returns the original self links, but let's make sure we don't diff.
chrisst pushed a commit to chrisst/terraform-provider-google that referenced this pull request Nov 9, 2018
…orwarding_rule (hashicorp#265)

* Add versioned Beta support to google_compute_global_forwarding_rule.

* Add Beta support for ip_version in google_compute_global_forwarding_rule.

* Temporary commit with compute_shared_operation.go changes.

* Added a test to see if v1 GFR is still IPV4, moved to a TestCheckFunc

* This API returns the original self links, but let's make sure we don't diff.
luis-silva pushed a commit to luis-silva/terraform-provider-google that referenced this pull request May 21, 2019
@ghost
Copy link

ghost commented Mar 31, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants