From 139ef1cef27df9f1e56bc88e27753a56961bc632 Mon Sep 17 00:00:00 2001 From: Sarah French <15078782+SarahFrench@users.noreply.github.com> Date: Fri, 22 Mar 2024 20:24:40 +0100 Subject: [PATCH] Fix acceptance test for `name_from_id` function (#10262) --- mmv1/third_party/terraform/functions/name_from_id_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mmv1/third_party/terraform/functions/name_from_id_test.go b/mmv1/third_party/terraform/functions/name_from_id_test.go index df6ea3c036e5..8eaf139918c3 100644 --- a/mmv1/third_party/terraform/functions/name_from_id_test.go +++ b/mmv1/third_party/terraform/functions/name_from_id_test.go @@ -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), ),