From d44e350122d37c335ad9fedb1fbeca6497dc30a8 Mon Sep 17 00:00:00 2001 From: takaya-n Date: Mon, 26 Feb 2024 20:31:01 +0900 Subject: [PATCH] fix: use ServiceID instated of endpintsID --- .../service/redshiftserverless/namespace_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/internal/service/redshiftserverless/namespace_test.go b/internal/service/redshiftserverless/namespace_test.go index 28fa6171841..d45a3b270d3 100644 --- a/internal/service/redshiftserverless/namespace_test.go +++ b/internal/service/redshiftserverless/namespace_test.go @@ -26,7 +26,7 @@ func TestAccRedshiftServerlessNamespace_basic(t *testing.T) { resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { acctest.PreCheck(ctx, t) }, - ErrorCheck: acctest.ErrorCheck(t, redshiftserverless.EndpointsID), + ErrorCheck: acctest.ErrorCheck(t, redshiftserverless.ServiceID), ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories, CheckDestroy: testAccCheckNamespaceDestroy(ctx), Steps: []resource.TestStep{ @@ -72,7 +72,7 @@ func TestAccRedshiftServerlessNamespace_defaultIAMRole(t *testing.T) { resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { acctest.PreCheck(ctx, t) }, - ErrorCheck: acctest.ErrorCheck(t, redshiftserverless.EndpointsID), + ErrorCheck: acctest.ErrorCheck(t, redshiftserverless.ServiceID), ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories, CheckDestroy: testAccCheckNamespaceDestroy(ctx), Steps: []resource.TestStep{ @@ -100,7 +100,7 @@ func TestAccRedshiftServerlessNamespace_user(t *testing.T) { resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { acctest.PreCheck(ctx, t) }, - ErrorCheck: acctest.ErrorCheck(t, redshiftserverless.EndpointsID), + ErrorCheck: acctest.ErrorCheck(t, redshiftserverless.ServiceID), ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories, CheckDestroy: testAccCheckNamespaceDestroy(ctx), Steps: []resource.TestStep{ @@ -133,7 +133,7 @@ func TestAccRedshiftServerlessNamespace_tags(t *testing.T) { resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { acctest.PreCheck(ctx, t) }, - ErrorCheck: acctest.ErrorCheck(t, redshiftserverless.EndpointsID), + ErrorCheck: acctest.ErrorCheck(t, redshiftserverless.ServiceID), ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories, CheckDestroy: testAccCheckNamespaceDestroy(ctx), Steps: []resource.TestStep{ @@ -177,7 +177,7 @@ func TestAccRedshiftServerlessNamespace_disappears(t *testing.T) { resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { acctest.PreCheck(ctx, t) }, - ErrorCheck: acctest.ErrorCheck(t, redshiftserverless.EndpointsID), + ErrorCheck: acctest.ErrorCheck(t, redshiftserverless.ServiceID), ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories, CheckDestroy: testAccCheckNamespaceDestroy(ctx), Steps: []resource.TestStep{ @@ -200,7 +200,7 @@ func TestAccRedshiftServerlessNamespace_withWorkgroup(t *testing.T) { resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { acctest.PreCheck(ctx, t) }, - ErrorCheck: acctest.ErrorCheck(t, redshiftserverless.EndpointsID), + ErrorCheck: acctest.ErrorCheck(t, redshiftserverless.ServiceID), ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories, CheckDestroy: testAccCheckNamespaceDestroy(ctx), Steps: []resource.TestStep{ @@ -225,7 +225,7 @@ func TestAccRedshiftServerlessNamespace_manageAdminPassword(t *testing.T) { resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { acctest.PreCheck(ctx, t) }, - ErrorCheck: acctest.ErrorCheck(t, redshiftserverless.EndpointsID), + ErrorCheck: acctest.ErrorCheck(t, redshiftserverless.ServiceID), ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories, CheckDestroy: testAccCheckNamespaceDestroy(ctx), Steps: []resource.TestStep{