Skip to content

Commit

Permalink
'dmsEndpointDestroy' -> 'testAccCheckAWSDmsEndpointDestroy'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Oct 7, 2021
1 parent 0fa9ac9 commit b19cb21
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions aws/resource_aws_dms_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestAccAwsDmsEndpoint_basic(t *testing.T) {
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, dms.EndpointsID),
Providers: testAccProviders,
CheckDestroy: dmsEndpointDestroy,
CheckDestroy: testAccCheckAWSDmsEndpointDestroy,
Steps: []resource.TestStep{
{
Config: dmsEndpointBasicConfig(randId),
Expand Down Expand Up @@ -61,7 +61,7 @@ func TestAccAwsDmsEndpoint_S3(t *testing.T) {
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, dms.EndpointsID),
Providers: testAccProviders,
CheckDestroy: dmsEndpointDestroy,
CheckDestroy: testAccCheckAWSDmsEndpointDestroy,
Steps: []resource.TestStep{
{
Config: dmsEndpointS3Config(randId),
Expand Down Expand Up @@ -114,7 +114,7 @@ func TestAccAwsDmsEndpoint_S3_ExtraConnectionAttributes(t *testing.T) {
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, dms.EndpointsID),
Providers: testAccProviders,
CheckDestroy: dmsEndpointDestroy,
CheckDestroy: testAccCheckAWSDmsEndpointDestroy,
Steps: []resource.TestStep{
{
Config: dmsEndpointS3ExtraConnectionAttributesConfig(randId),
Expand All @@ -141,7 +141,7 @@ func TestAccAwsDmsEndpoint_DynamoDb(t *testing.T) {
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, dms.EndpointsID),
Providers: testAccProviders,
CheckDestroy: dmsEndpointDestroy,
CheckDestroy: testAccCheckAWSDmsEndpointDestroy,
Steps: []resource.TestStep{
{
Config: dmsEndpointDynamoDbConfig(randId),
Expand Down Expand Up @@ -174,7 +174,7 @@ func TestAccAwsDmsEndpoint_Elasticsearch(t *testing.T) {
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, dms.EndpointsID),
Providers: testAccProviders,
CheckDestroy: dmsEndpointDestroy,
CheckDestroy: testAccCheckAWSDmsEndpointDestroy,
Steps: []resource.TestStep{
{
Config: dmsEndpointElasticsearchConfig(rName),
Expand Down Expand Up @@ -208,7 +208,7 @@ func TestAccAwsDmsEndpoint_Elasticsearch_ExtraConnectionAttributes(t *testing.T)
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, dms.EndpointsID),
Providers: testAccProviders,
CheckDestroy: dmsEndpointDestroy,
CheckDestroy: testAccCheckAWSDmsEndpointDestroy,
Steps: []resource.TestStep{
{
Config: dmsEndpointElasticsearchExtraConnectionAttributesConfig(rName),
Expand All @@ -235,7 +235,7 @@ func TestAccAwsDmsEndpoint_Elasticsearch_ErrorRetryDuration(t *testing.T) {
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, dms.EndpointsID),
Providers: testAccProviders,
CheckDestroy: dmsEndpointDestroy,
CheckDestroy: testAccCheckAWSDmsEndpointDestroy,
Steps: []resource.TestStep{
{
Config: dmsEndpointElasticsearchConfigErrorRetryDuration(rName, 60),
Expand Down Expand Up @@ -273,7 +273,7 @@ func TestAccAwsDmsEndpoint_Elasticsearch_FullLoadErrorPercentage(t *testing.T) {
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, dms.EndpointsID),
Providers: testAccProviders,
CheckDestroy: dmsEndpointDestroy,
CheckDestroy: testAccCheckAWSDmsEndpointDestroy,
Steps: []resource.TestStep{
{
Config: dmsEndpointElasticsearchConfigFullLoadErrorPercentage(rName, 1),
Expand Down Expand Up @@ -311,7 +311,7 @@ func TestAccAwsDmsEndpoint_Kafka(t *testing.T) {
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, dms.EndpointsID),
Providers: testAccProviders,
CheckDestroy: dmsEndpointDestroy,
CheckDestroy: testAccCheckAWSDmsEndpointDestroy,
Steps: []resource.TestStep{
{
Config: dmsEndpointKafkaConfig(randId),
Expand Down Expand Up @@ -371,7 +371,7 @@ func TestAccAwsDmsEndpoint_Kinesis(t *testing.T) {
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, dms.EndpointsID),
Providers: testAccProviders,
CheckDestroy: dmsEndpointDestroy,
CheckDestroy: testAccCheckAWSDmsEndpointDestroy,
Steps: []resource.TestStep{
{
Config: dmsEndpointKinesisConfig(randId),
Expand Down Expand Up @@ -409,7 +409,7 @@ func TestAccAwsDmsEndpoint_MongoDb(t *testing.T) {
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, dms.EndpointsID),
Providers: testAccProviders,
CheckDestroy: dmsEndpointDestroy,
CheckDestroy: testAccCheckAWSDmsEndpointDestroy,
Steps: []resource.TestStep{
{
Config: dmsEndpointMongoDbConfig(randId),
Expand Down Expand Up @@ -439,7 +439,7 @@ func TestAccAwsDmsEndpoint_MongoDb_Update(t *testing.T) {
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, dms.EndpointsID),
Providers: testAccProviders,
CheckDestroy: dmsEndpointDestroy,
CheckDestroy: testAccCheckAWSDmsEndpointDestroy,
Steps: []resource.TestStep{
{
Config: dmsEndpointMongoDbConfig(randId),
Expand Down Expand Up @@ -484,7 +484,7 @@ func TestAccAwsDmsEndpoint_DocDB(t *testing.T) {
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, dms.EndpointsID),
Providers: testAccProviders,
CheckDestroy: dmsEndpointDestroy,
CheckDestroy: testAccCheckAWSDmsEndpointDestroy,
Steps: []resource.TestStep{
{
Config: dmsEndpointDocDBConfig(randId),
Expand Down Expand Up @@ -524,7 +524,7 @@ func TestAccAwsDmsEndpoint_Db2(t *testing.T) {
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, dms.EndpointsID),
Providers: testAccProviders,
CheckDestroy: dmsEndpointDestroy,
CheckDestroy: testAccCheckAWSDmsEndpointDestroy,
Steps: []resource.TestStep{
{
Config: dmsEndpointDb2Config(randId),
Expand Down Expand Up @@ -556,7 +556,7 @@ func TestAccAwsDmsEndpoint_Db2(t *testing.T) {
})
}

func dmsEndpointDestroy(s *terraform.State) error {
func testAccCheckAWSDmsEndpointDestroy(s *terraform.State) error {
conn := testAccProvider.Meta().(*AWSClient).dmsconn

for _, rs := range s.RootModule().Resources {
Expand Down

0 comments on commit b19cb21

Please sign in to comment.