From 3251991a3cab2d56a676d1b5b466229a83c2ceb1 Mon Sep 17 00:00:00 2001 From: artur-sak13 Date: Wed, 1 Apr 2020 16:39:50 -0500 Subject: [PATCH] enhancement: add path to smb fileshare schema --- aws/resource_aws_storagegateway_smb_file_share.go | 4 ++++ aws/resource_aws_storagegateway_smb_file_share_test.go | 1 + 2 files changed, 5 insertions(+) diff --git a/aws/resource_aws_storagegateway_smb_file_share.go b/aws/resource_aws_storagegateway_smb_file_share.go index d4512b156fcc..65ef8f593228 100644 --- a/aws/resource_aws_storagegateway_smb_file_share.go +++ b/aws/resource_aws_storagegateway_smb_file_share.go @@ -103,6 +103,10 @@ func resourceAwsStorageGatewaySmbFileShare() *schema.Resource { storagegateway.ObjectACLPublicReadWrite, }, false), }, + "path": { + Type: schema.TypeString, + Computed: true, + }, "read_only": { Type: schema.TypeBool, Optional: true, diff --git a/aws/resource_aws_storagegateway_smb_file_share_test.go b/aws/resource_aws_storagegateway_smb_file_share_test.go index fcde26026731..80600ef9d79e 100644 --- a/aws/resource_aws_storagegateway_smb_file_share_test.go +++ b/aws/resource_aws_storagegateway_smb_file_share_test.go @@ -37,6 +37,7 @@ func TestAccAWSStorageGatewaySmbFileShare_Authentication_ActiveDirectory(t *test resource.TestCheckResourceAttr(resourceName, "kms_key_arn", ""), resource.TestMatchResourceAttr(resourceName, "location_arn", regexp.MustCompile(`^arn:`)), resource.TestCheckResourceAttr(resourceName, "object_acl", storagegateway.ObjectACLPrivate), + resource.TestMatchResourceAttr(resourceName, "path", regexp.MustCompile(`^/.+`)), resource.TestCheckResourceAttr(resourceName, "read_only", "false"), resource.TestCheckResourceAttr(resourceName, "requester_pays", "false"), resource.TestMatchResourceAttr(resourceName, "role_arn", regexp.MustCompile(`^arn:`)),