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

provider/google: Add support for session_affinity to google_compute_region_backend_service #11228

Merged
merged 4 commits into from
Jan 18, 2017
Merged

Conversation

cblecker
Copy link
Contributor

$ make testacc TEST=./builtin/providers/google TESTARGS='-run=TestAccComputeRegionBackendService_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/01/16 13:44:45 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/google -v -run=TestAccComputeRegionBackendService_ -timeout 120m
=== RUN   TestAccComputeRegionBackendService_basic
--- PASS: TestAccComputeRegionBackendService_basic (67.05s)
=== RUN   TestAccComputeRegionBackendService_withBackend
--- PASS: TestAccComputeRegionBackendService_withBackend (105.11s)
=== RUN   TestAccComputeRegionBackendService_withBackendAndUpdate
--- PASS: TestAccComputeRegionBackendService_withBackendAndUpdate (131.22s)
=== RUN   TestAccComputeRegionBackendService_withSessionAffinity
--- PASS: TestAccComputeRegionBackendService_withSessionAffinity (66.38s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/google	369.775s

Fixes #11199.

@cblecker cblecker changed the title Add support for session_affinity to google_compute_region_backend_service provider/google: Add support for session_affinity to google_compute_region_backend_service Jan 16, 2017
@cblecker
Copy link
Contributor Author

cc: @evandbrown @danawillow FYI :)

Config: testAccComputeRegionBackendService_withSessionAffinity(serviceName, checkName),
Check: resource.ComposeTestCheckFunc(
testAccCheckComputeRegionBackendServiceExists(
"google_compute_region_backend_service.foobar", &svc),
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you also check here that the new region backend service not just exists but has the correct session affinity?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@cblecker
Copy link
Contributor Author

Result of modified acceptance test:

$ make testacc TEST=./builtin/providers/google TESTARGS='-run=TestAccComputeRegionBackendService_withSessionAffinity'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/01/17 16:28:16 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/google -v -run=TestAccComputeRegionBackendService_withSessionAffinity -timeout 120m
=== RUN   TestAccComputeRegionBackendService_withSessionAffinity
--- PASS: TestAccComputeRegionBackendService_withSessionAffinity (44.65s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/google	44.668s

@zopanix
Copy link
Contributor

zopanix commented Jan 18, 2017

Is it possible to have an ETA when this will be merged ? And is it possible to know when next release will be ? Just to know if I need to build terraform locally to have this feature :)

@danawillow
Copy link
Contributor

LGTM, thanks @cblecker! Merging now. @zopanix I'm not sure when the next release will be.

@danawillow danawillow merged commit 006e9b1 into hashicorp:master Jan 18, 2017
@zopanix
Copy link
Contributor

zopanix commented Jan 18, 2017

@danawillow Ok, thx for merging, I'll build terraofrm using master for the moment and will be waiting for next release :) I must say things are moving quickly here. That's always nice to have :)

@cblecker
Copy link
Contributor Author

Thanks for the review and merge, @danawillow! Appreciated :)

@zopanix -- Minor revisions of Terraform are cut on average every two weeks. Last release was cut a week ago, so maybe another week or so? There are never guarantees, but it won't be long that's for sure.

@cblecker cblecker deleted the rbs-sessionaffinity branch January 18, 2017 18:54
@ghost
Copy link

ghost commented Apr 17, 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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 17, 2020
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.

Feature Request: Add session_affinity property on google_compute_region_backend_service
4 participants