Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
xBlaz3kx committed Oct 16, 2024
1 parent 0ce6a78 commit d530839
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion configuration/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/xBlaz3kx/DevX/tls"
)

type exampleConfiguration struct {
Expand All @@ -26,7 +27,7 @@ func TestGetConfiguration(t *testing.T) {
Organization: "example",
Bucket: "example",
AccessToken: "accessToken",
TLS: TLS{
TLS: tls.TLS{
IsEnabled: false,
},
},
Expand Down
4 changes: 2 additions & 2 deletions s3/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"github.com/aws/aws-sdk-go/service/s3"
"github.com/aws/aws-sdk-go/service/s3/s3manager"
"github.com/google/uuid"
"github.com/xBlaz3kx/DevX/configuration"
"github.com/xBlaz3kx/DevX/observability"
"github.com/xBlaz3kx/DevX/tls"
"go.opentelemetry.io/otel/trace"
"go.uber.org/zap"
)
Expand Down Expand Up @@ -74,7 +74,7 @@ type Configuration struct {
ForcePathStyle bool `yaml:"forcePathStyle" json:"forcePathStyle" mapstructure:"forcePathStyle"`

// TLS is the TLS configuration for the Configuration connection.
TLS configuration.TLS `mapstructure:"tls" yaml:"tls" json:"tls"`
TLS tls.TLS `mapstructure:"tls" yaml:"tls" json:"tls"`
}

func (c Configuration) ToAWSConfig() *aws.Config {
Expand Down

0 comments on commit d530839

Please sign in to comment.