Skip to content

Commit

Permalink
Refactor location_from_id acc test to provide its own location valu…
Browse files Browse the repository at this point in the history
…e instead of using ENVs (#10166) (#7078)

[upstream:9ea00b94a33ba8348b27d757f022617d7b51c794]

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Mar 12, 2024
1 parent d185df5 commit 61e14bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/10166.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
3 changes: 1 addition & 2 deletions google-beta/functions/location_from_id_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ import (

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-provider-google-beta/google-beta/acctest"
"github.com/hashicorp/terraform-provider-google-beta/google-beta/envvar"
)

func TestAccProviderFunction_location_from_id(t *testing.T) {
t.Parallel()
// Skipping due to requiring TF 1.8.0 in VCR systems : https://github.com/hashicorp/terraform-provider-google/issues/17451
acctest.SkipIfVcr(t)

location := envvar.GetTestRegionFromEnv()
location := "us-central1"
locationRegex := regexp.MustCompile(fmt.Sprintf("^%s$", location))

context := map[string]interface{}{
Expand Down

0 comments on commit 61e14bc

Please sign in to comment.