diff --git a/.changelog/10262.txt b/.changelog/10262.txt new file mode 100644 index 0000000000..42b910df15 --- /dev/null +++ b/.changelog/10262.txt @@ -0,0 +1,3 @@ +```release-note:none + +``` \ No newline at end of file diff --git a/google-beta/functions/name_from_id_test.go b/google-beta/functions/name_from_id_test.go index 8499986df2..76f8199faf 100644 --- a/google-beta/functions/name_from_id_test.go +++ b/google-beta/functions/name_from_id_test.go @@ -28,17 +28,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), ),