Skip to content

Commit

Permalink
fix: Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Geun-Oh committed Sep 10, 2024
1 parent b916b86 commit 37c7737
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/service/objectstorage/objectstorage_bucket_acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (b *bucketACLResource) Create(ctx context.Context, req resource.CreateReque
return
}

tflog.Info(ctx, "PutObjectACL response="+common.MarshalUncheckedString(response))
tflog.Info(ctx, "PutBucketACL response="+common.MarshalUncheckedString(response))

if err := waitBucketACLApplied(ctx, b.config, bucketName); err != nil {
resp.Diagnostics.AddError("CREATING ERROR", err.Error())
Expand Down Expand Up @@ -196,7 +196,7 @@ func (b *bucketACLResource) Update(ctx context.Context, req resource.UpdateReque
return
}

tflog.Info(ctx, "PutObjectACL update operation response="+common.MarshalUncheckedString(response))
tflog.Info(ctx, "PutBucketACL update operation response="+common.MarshalUncheckedString(response))

if err := waitBucketACLApplied(ctx, b.config, bucketName); err != nil {
resp.Diagnostics.AddError("UPDATING ERROR", err.Error())
Expand Down
12 changes: 11 additions & 1 deletion internal/service/objectstorage/objectstorage_bucket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,23 @@ import (
"testing"

"github.com/aws/aws-sdk-go-v2/service/s3"
"github.com/hashicorp/terraform-plugin-framework/providerserver"
"github.com/hashicorp/terraform-plugin-go/tfprotov6"
"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/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"

. "github.com/terraform-providers/terraform-provider-ncloud/internal/acctest"
"github.com/terraform-providers/terraform-provider-ncloud/internal/conn"
"github.com/terraform-providers/terraform-provider-ncloud/internal/provider"
"github.com/terraform-providers/terraform-provider-ncloud/internal/provider/fwprovider"
)

var (
testAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
"ncloud": providerserver.NewProtocol6WithError(fwprovider.New(provider.New(context.Background()))),
}
)

func TestAccResourceNcloudObjectStorage_bucket_basic(t *testing.T) {
Expand All @@ -21,7 +31,7 @@ func TestAccResourceNcloudObjectStorage_bucket_basic(t *testing.T) {

resource.Test(t, resource.TestCase{
PreCheck: func() { TestAccPreCheck(t) },
ProtoV6ProviderFactories: ProtoV6ProviderFactories,
ProtoV6ProviderFactories: testAccProtoV6ProviderFactories,
CheckDestroy: testAccCheckBucketDestroy,
Steps: []resource.TestStep{
{
Expand Down

0 comments on commit 37c7737

Please sign in to comment.