From ab97a3f9c3707f6b90b54e57654866f18002d6b8 Mon Sep 17 00:00:00 2001 From: Dirk Avery Date: Fri, 7 May 2021 17:50:06 -0400 Subject: [PATCH] tests/r/servicecatalog_portfolio_share: Remove hardcoded partition --- aws/resource_aws_servicecatalog_portfolio_share_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/resource_aws_servicecatalog_portfolio_share_test.go b/aws/resource_aws_servicecatalog_portfolio_share_test.go index 7a17f69226f..bd643a5b4af 100644 --- a/aws/resource_aws_servicecatalog_portfolio_share_test.go +++ b/aws/resource_aws_servicecatalog_portfolio_share_test.go @@ -75,7 +75,7 @@ func TestAccAWSServiceCatalogPortfolioShare_organization(t *testing.T) { testAccCheckAwsServiceCatalogPortfolioShareExists(resourceName), resource.TestCheckResourceAttr(resourceName, "accept_language", "en"), resource.TestCheckResourceAttr(resourceName, "accepted", "true"), - resource.TestCheckResourceAttr(resourceName, "principal_id", "arn:aws:organizations::111122223333:organization/o-abcdefghijkl"), + resource.TestCheckResourceAttr(resourceName, "principal_id", fmt.Sprintf("arn:%s:organizations::111122223333:organization/o-abcdefghijkl", testAccGetPartition())), resource.TestCheckResourceAttrPair(resourceName, "portfolio_id", compareName, "id"), resource.TestCheckResourceAttr(resourceName, "share_tag_options", "true"), resource.TestCheckResourceAttr(resourceName, "type", servicecatalog.DescribePortfolioShareTypeOrganization),