Skip to content

Commit

Permalink
tests/r/servicecat_prov_art: Use ID funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
YakDriver committed May 19, 2021
1 parent 9091915 commit 478be9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aws/resource_aws_servicecatalog_provisioning_artifact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
tfservicecatalog "github.com/terraform-providers/terraform-provider-aws/aws/internal/service/servicecatalog"
)

// add sweeper to delete known test servicecat provisioning artifacts
Expand Down Expand Up @@ -250,7 +251,7 @@ func testAccCheckAwsServiceCatalogProvisioningArtifactDestroy(s *terraform.State
continue
}

artifactID, productID, err := parseServiceCatalogProvisioningArtifactID(rs.Primary.ID)
artifactID, productID, err := tfservicecatalog.ProvisioningArtifactParseID(rs.Primary.ID)

if err != nil {
return fmt.Errorf("error parsing Service Catalog Provisioning Artifact ID (%s): %w", rs.Primary.ID, err)
Expand Down Expand Up @@ -289,7 +290,7 @@ func testAccCheckAwsServiceCatalogProvisioningArtifactExists(resourceName string

conn := testAccProvider.Meta().(*AWSClient).scconn

artifactID, productID, err := parseServiceCatalogProvisioningArtifactID(rs.Primary.ID)
artifactID, productID, err := tfservicecatalog.ProvisioningArtifactParseID(rs.Primary.ID)

if err != nil {
return fmt.Errorf("error parsing Service Catalog Provisioning Artifact ID (%s): %w", rs.Primary.ID, err)
Expand Down

0 comments on commit 478be9f

Please sign in to comment.