Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanochShayner committed Jun 27, 2024
1 parent 89dbff4 commit 90a0e06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/yaml/yaml_writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,13 @@ func TestTagReplacement(t *testing.T) {
})

t.Run("Test line computation with duplicate - CFN", func(t *testing.T) {
res, _ := MapResourcesLineYAML("../../../tests/cloudformation/resources/duplicate_entries/duplicate_cfn.yaml", []string{"S3Bucket", "CloudFrontDistribution"}, "Resources")
res := MapResourcesLineYAML("../../../tests/cloudformation/resources/duplicate_entries/duplicate_cfn.yaml", []string{"S3Bucket", "CloudFrontDistribution"}, "Resources")
assert.Equal(t, *res["S3Bucket"], structure.Lines{Start: 14, End: 17})
assert.Equal(t, *res["CloudFrontDistribution"], structure.Lines{Start: 18, End: 60})
})

t.Run("Test line computation with duplicate - SLS", func(t *testing.T) {
res, _ := MapResourcesLineYAML("../../../tests/cloudformation/resources/duplicate_entries/duplicate_sls.yaml", []string{"attribute", "zone", "customer", "apiVersion"}, "functions")
res := MapResourcesLineYAML("../../../tests/cloudformation/resources/duplicate_entries/duplicate_sls.yaml", []string{"attribute", "zone", "customer", "apiVersion"}, "functions")
assert.Equal(t, *res["apiVersion"], structure.Lines{Start: 7, End: 12})
assert.Equal(t, *res["customer"], structure.Lines{Start: 14, End: 24})
assert.Equal(t, *res["zone"], structure.Lines{Start: 26, End: 38})
Expand Down

0 comments on commit 90a0e06

Please sign in to comment.