Skip to content

Commit

Permalink
Semgrep fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gdavison committed Aug 30, 2024
1 parent 4143f9d commit e41dedb
Show file tree
Hide file tree
Showing 15 changed files with 33 additions and 29 deletions.
2 changes: 1 addition & 1 deletion internal/generate/tagstests/resource_test.go.gtpl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ plancheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrTagsAll), know
{{ template "CommonImportBody" . }}
{{ if eq .Implementation "framework" -}}
ImportStateVerifyIgnore: []string{
"tags.key1", // The canonical value returned by the AWS API is ""
acctest.CtTagsKey1, // The canonical value returned by the AWS API is ""
{{ if gt (len .ImportIgnore) 0 -}}
{{ range $i, $v := .ImportIgnore }}{{ $v }},{{ end }}
{{ end -}}
Expand Down
4 changes: 2 additions & 2 deletions internal/service/amp/scraper_tags_gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/service/appconfig/environment_tags_gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/service/appfabric/app_authorization_tags_gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/service/appfabric/app_bundle_tags_gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/service/batch/job_queue_tags_gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/service/bcmdataexports/export_tags_gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/service/fms/resource_set_tags_gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/service/m2/application_tags_gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/service/m2/environment_tags_gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions internal/service/medialive/input_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ import (
"testing"

"github.com/aws/aws-sdk-go-v2/service/medialive"
"github.com/hashicorp/terraform-plugin-testing/compare"
sdkacctest "github.com/hashicorp/terraform-plugin-testing/helper/acctest"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
"github.com/hashicorp/terraform-plugin-testing/statecheck"
"github.com/hashicorp/terraform-plugin-testing/tfjsonpath"
"github.com/hashicorp/terraform-provider-aws/internal/acctest"
"github.com/hashicorp/terraform-provider-aws/names"
)
Expand Down Expand Up @@ -49,10 +52,11 @@ func TestAccMediaLiveInputDataSource_basic(t *testing.T) {
resource.TestCheckResourceAttrPair(resourceName, names.AttrSecurityGroups, dataSourceName, names.AttrSecurityGroups),
resource.TestCheckResourceAttrPair(resourceName, "sources", dataSourceName, "sources"),
resource.TestCheckResourceAttrSet(dataSourceName, names.AttrState),
resource.TestCheckResourceAttr(dataSourceName, acctest.CtTagsPercent, "1"),
resource.TestCheckResourceAttr(dataSourceName, "tags.Name", rName),
resource.TestCheckResourceAttrPair(resourceName, names.AttrType, dataSourceName, names.AttrType),
),
ConfigStateChecks: []statecheck.StateCheck{
statecheck.CompareValuePairs(dataSourceName, tfjsonpath.New(names.AttrTags), resourceName, tfjsonpath.New(names.AttrTagsAll), compare.ValuesSame()),
},
},
},
})
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e41dedb

Please sign in to comment.