Skip to content

Commit

Permalink
fix linting errors (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenwltr committed Apr 8, 2022
1 parent 8c88262 commit f8acfca
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestLoadExampleConfig(t *testing.T) {
AccountBlocklist: []string{"1234567890"},
Regions: []string{"eu-west-1", "stratoscale"},
Accounts: map[string]Account{
"555133742": Account{
"555133742": {
Presets: []string{"terraform"},
Filters: Filters{
"IAMRole": {
Expand All @@ -66,8 +66,7 @@ func TestLoadExampleConfig(t *testing.T) {
},
},
ResourceTypes: ResourceTypes{
types.Collection{"S3Bucket"},
nil,
Targets: types.Collection{"S3Bucket"},
},
},
},
Expand All @@ -76,7 +75,7 @@ func TestLoadExampleConfig(t *testing.T) {
Excludes: types.Collection{"IAMRole"},
},
Presets: map[string]PresetDefinitions{
"terraform": PresetDefinitions{
"terraform": {
Filters: Filters{
"S3Bucket": {
Filter{
Expand All @@ -88,7 +87,7 @@ func TestLoadExampleConfig(t *testing.T) {
},
},
CustomEndpoints: []*CustomRegion{
&CustomRegion{
{
Region: "stratoscale",
TLSInsecureSkipVerify: true,
Services: CustomServices{
Expand Down Expand Up @@ -256,18 +255,18 @@ func TestFilterMerge(t *testing.T) {

expect := Filters{
"S3Bucket": []Filter{
Filter{
{
Type: "glob", Value: "my-statebucket-*",
},
},
"IAMRole": []Filter{
Filter{
{
Type: "exact",
Value: "uber.admin",
},
},
"IAMRolePolicyAttachment": []Filter{
Filter{
{
Type: "exact",
Value: "uber.admin -> AdministratorAccess",
},
Expand Down

0 comments on commit f8acfca

Please sign in to comment.