Skip to content

Commit

Permalink
paymentcryptography: Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
YakDriver committed Jun 4, 2024
1 parent dca7e1d commit 3bfa421
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion internal/service/paymentcryptography/exports_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package paymentcryptography
// Exports for use in tests only.
var (
ResourceKey = newResourceKey
ResourceKeyAlias = newKeyAliasResource
ResourceKeyAlias = newResourceKeyAlias

FindKeyByID = findKeyByID
FindKeyAliasByName = findkeyAliasByName
Expand Down
2 changes: 1 addition & 1 deletion internal/service/paymentcryptography/key_alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
)

// @FrameworkResource("aws_paymentcryptography_key_alias",name="Key Alias")
func newKeyAliasResource(context.Context) (resource.ResourceWithConfigure, error) {
func newResourceKeyAlias(context.Context) (resource.ResourceWithConfigure, error) {
r := &keyAliasResource{}

return r, nil
Expand Down
8 changes: 4 additions & 4 deletions internal/service/paymentcryptography/key_alias_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestAccPaymentCryptographyKeyAlias_basic(t *testing.T) {
resource.ParallelTest(t, resource.TestCase{
PreCheck: func() {
acctest.PreCheck(ctx, t)
acctest.PreCheckPartitionHasService(t, names.PaymentCryptographyEndpointID)
//acctest.PreCheckPartitionHasService(t, names.PaymentCryptographyEndpointID) // Causing a false negative
},
ErrorCheck: acctest.ErrorCheck(t, names.PaymentCryptographyServiceID),
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories,
Expand Down Expand Up @@ -60,7 +60,7 @@ func TestAccPaymentCryptographyKeyAlias_disappears(t *testing.T) {
resource.ParallelTest(t, resource.TestCase{
PreCheck: func() {
acctest.PreCheck(ctx, t)
acctest.PreCheckPartitionHasService(t, names.PaymentCryptographyEndpointID)
//acctest.PreCheckPartitionHasService(t, names.PaymentCryptographyEndpointID) // Causing a false negative
},
ErrorCheck: acctest.ErrorCheck(t, names.PaymentCryptographyServiceID),
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories,
Expand All @@ -87,7 +87,7 @@ func TestAccPaymentCryptographyKeyAlias_update(t *testing.T) {
resource.ParallelTest(t, resource.TestCase{
PreCheck: func() {
acctest.PreCheck(ctx, t)
acctest.PreCheckPartitionHasService(t, names.PaymentCryptographyEndpointID)
//acctest.PreCheckPartitionHasService(t, names.PaymentCryptographyEndpointID) // Causing a false negative
},
ErrorCheck: acctest.ErrorCheck(t, names.PaymentCryptographyServiceID),
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories,
Expand Down Expand Up @@ -128,7 +128,7 @@ func TestAccPaymentCryptographyKeyAlias_updateName(t *testing.T) {
resource.ParallelTest(t, resource.TestCase{
PreCheck: func() {
acctest.PreCheck(ctx, t)
acctest.PreCheckPartitionHasService(t, names.PaymentCryptographyEndpointID)
//acctest.PreCheckPartitionHasService(t, names.PaymentCryptographyEndpointID) // Causing a false negative
},
ErrorCheck: acctest.ErrorCheck(t, names.PaymentCryptographyServiceID),
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories,
Expand Down

0 comments on commit 3bfa421

Please sign in to comment.