-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Datasource for Backend Services #1150
Datasource for Backend Services #1150
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution! I'll run the tests.
"github.com/hashicorp/terraform/terraform" | ||
) | ||
|
||
func TestAccGoogleComputeBackendService_basic(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: please remove "Google" from test names? We're trying to do that as of recently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review @ndmckinley !
I replaced the "Google" with "DataSource" in the tests names,
since just removing this string would name-clash with the resource's own tests, I hope that's ok?
Tests pass - happy to merge once you make that quick change. |
Exposes existing `google_compute_backend_service` as data sources. This addresses hashicorp#149 . This allows, for instance, to collect a backend service's self_link and use it from an other workspace/tfstate, sharing most of the loadbalancers definition. ``` env GOOGLE_REGION=us-central1 make testacc TEST=./google TESTARGS='-run=TestAccDataSourceComputeBackendService_' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./google -v -run=TestAccDataSourceComputeBackendService_ -timeout 120m === RUN TestAccDataSourceComputeBackendService_basic === PAUSE TestAccDataSourceComputeBackendService_basic === CONT TestAccDataSourceComputeBackendService_basic --- PASS: TestAccDataSourceComputeBackendService_basic (48.11s) PASS ok github.com/terraform-providers/terraform-provider-google/google 48.123s ```
d3373a3
to
dca85ba
Compare
Exposes existing `google_compute_backend_service` as data sources. This addresses hashicorp#149 . This allows, for instance, to collect a backend service's self_link and use it from an other workspace/tfstate, sharing most of the loadbalancers definition.
Exposes existing `google_compute_backend_service` as data sources. This addresses hashicorp#149 . This allows, for instance, to collect a backend service's self_link and use it from an other workspace/tfstate, sharing most of the loadbalancers definition.
Signed-off-by: Modular Magician <magic-modules@google.com>
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! |
Exposes existing
google_compute_backend_service
as data sources.This addresses #149 (except for
google_compute_region_backend_service
,which is not covered here).
This allows, for instance, to collect a backend service's self_link and
use it from an other workspace/tfstate, sharing most of the
loadbalancers definition.