Skip to content

Commit

Permalink
Fix acceptance test for name_from_id function (#10262)
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahFrench authored Mar 22, 2024
1 parent f6c50c4 commit 139ef1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mmv1/third_party/terraform/functions/name_from_id_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ func TestAccProviderFunction_name_from_id(t *testing.T) {
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
Steps: []resource.TestStep{
{
// Can get the project from a resource's id in one step
// Can get the name from a resource's id in one step
// Uses google_pubsub_topic resource's id attribute with format projects/{{project}}/topics/{{name}}
Config: testProviderFunction_get_project_from_resource_id(context),
Config: testProviderFunction_get_name_from_resource_id(context),
Check: resource.ComposeTestCheckFunc(
resource.TestMatchOutput(context["output_name"].(string), nameRegex),
),
},
{
// Can get the project from a resource's self_link in one step
// Can get the name from a resource's self_link in one step
// Uses google_compute_disk resource's self_link attribute
Config: testProviderFunction_get_project_from_resource_self_link(context),
Config: testProviderFunction_get_name_from_resource_self_link(context),
Check: resource.ComposeTestCheckFunc(
resource.TestMatchOutput(context["output_name"].(string), nameRegex),
),
Expand Down

0 comments on commit 139ef1c

Please sign in to comment.