Skip to content

Commit 48bf68a

Browse files
committed
fix broken test and reviewdog
1 parent 21b942e commit 48bf68a

File tree

6 files changed

+24
-27
lines changed

6 files changed

+24
-27
lines changed

.gitleaksignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
389697647cbf4df63a2d2949f648216025355763:localstack/cache/server.test.pem.key:private-key:1
2-
389697647cbf4df63a2d2949f648216025355763:localstack/cache/server.test.pem:private-key:1
2+
389697647cbf4df63a2d2949f648216025355763:localstack/cache/server.test.pem:private-key:1
3+
21b942e8aebe04827785fe961d4c97fb8323f7ba:doc/spare/README.md:generic-api-key:68

app/external/common.go

-25
This file was deleted.

config/spare/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type Config struct {
2828
// If you do not specify this, the CloudFront default domain name is used.
2929
CustomDomain model.Domain `yaml:"customDomain"`
3030
// S3Bucket is the name of the S3 bucket.
31-
S3Bucket model.Bucket `yaml:"s3BucketName"`
31+
S3Bucket model.Bucket `yaml:"s3BucketName"` //nolint
3232
// AllowOrigins is the list of domains that are allowed to access the SPA.
3333
AllowOrigins model.AllowOrigins `yaml:"allowOrigins"`
3434
DebugLocalstackEndpoint model.Endpoint `yaml:"debugLocalstackEndpoint"`

config/spare/testdata/read_test.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
spareTemplateVersion: 1.0.0
2+
deployTarget: test-src
3+
region: us-east-2
4+
customDomain: "example.com"
5+
s3BucketName: "test-bucket"
6+
allowOrigins: ["example.com", "test.example.com"]
7+
debugLocalstackEndpoint: http://localhost:4566

config/spare/testdata/test.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
spareTemplateVersion: 0.0.1
2+
deployTarget: src
3+
region: us-east-1
4+
customDomain: ""
5+
s3BucketName: ""
6+
allowOrigins: []
7+
debugLocalstackEndpoint: http://localhost:4566
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
spareTemplateVersion: 0.0.1
2+
deployTarget: src
3+
region: us-east-1
4+
customDomain: ""
5+
s3BucketName: ""
6+
allowOrigins: []
7+
debugLocalstackEndpoint: http://localhost:4566

0 commit comments

Comments
 (0)