Skip to content

Commit

Permalink
Updates aws-sdk-go-base to v2.0.0-beta.39
Browse files Browse the repository at this point in the history
  • Loading branch information
gdavison committed Nov 10, 2023
1 parent 6c4fc42 commit 82ae6ba
Show file tree
Hide file tree
Showing 5 changed files with 355 additions and 314 deletions.
8 changes: 3 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ require (
github.com/gertd/go-pluralize v0.2.1
github.com/google/go-cmp v0.6.0
github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.21.0
github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.38
github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.39
github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.39
github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.40
github.com/hashicorp/awspolicyequivalence v1.6.0
github.com/hashicorp/go-cleanhttp v0.5.2
github.com/hashicorp/go-cty v1.4.1-0.20200723130312-85980079f637
Expand Down Expand Up @@ -134,7 +134,7 @@ require (
github.com/aws/aws-sdk-go-v2/internal/ini v1.4.0 // indirect
github.com/aws/aws-sdk-go-v2/internal/v4a v1.2.2 // indirect
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.25.0 // indirect
github.com/aws/aws-sdk-go-v2/service/iam v1.26.0 // indirect
github.com/aws/aws-sdk-go-v2/service/iam v1.27.0 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.0 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.2.2 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.2 // indirect
Expand Down Expand Up @@ -208,5 +208,3 @@ exclude ( // Contains INI parsing regression
github.com/aws/aws-sdk-go-v2/internal/ini v1.5.0
github.com/aws/aws-sdk-go-v2/internal/ini v1.5.1
)

replace github.com/hashicorp/aws-sdk-go-base/v2 => github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.38.0.20231106231929-ee4c6bb6c5c8
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ github.com/aws/aws-sdk-go-v2/service/glacier v1.18.1 h1:wa9rRTfCZw+RvQJuD/4iPn1r
github.com/aws/aws-sdk-go-v2/service/glacier v1.18.1/go.mod h1:ZJhKms6QZ9tiRXtrnMeGgUvbIfBOND/3jpDN7aT+6SQ=
github.com/aws/aws-sdk-go-v2/service/healthlake v1.19.1 h1:31Iepf9WjG+A7yn8PlfD9iPzeRTDti7u4xEX627a4ZQ=
github.com/aws/aws-sdk-go-v2/service/healthlake v1.19.1/go.mod h1:GblRjVXDixg+NQjMQR9gRcBsQRtG3YMcUGeXhwWG6yI=
github.com/aws/aws-sdk-go-v2/service/iam v1.26.0 h1:BGEB7NY0e0YZjrQBDN+2kj0ZZg/B5xNjyk0SUjeKuj8=
github.com/aws/aws-sdk-go-v2/service/iam v1.26.0/go.mod h1:K+kpOBBIGJKPAVdyzzCRR6ssqxpVG6SioxWi2/uWctk=
github.com/aws/aws-sdk-go-v2/service/iam v1.27.0 h1:Yho1UMoY/Gno30by4l7dXgIdr78t4OuIpw3VT1xz/zE=
github.com/aws/aws-sdk-go-v2/service/iam v1.27.0/go.mod h1:K+kpOBBIGJKPAVdyzzCRR6ssqxpVG6SioxWi2/uWctk=
github.com/aws/aws-sdk-go-v2/service/identitystore v1.20.1 h1:6Rff8OESjgxil0ynygZdfXFxQuhHKpALtmpdJQ7YyLY=
github.com/aws/aws-sdk-go-v2/service/identitystore v1.20.1/go.mod h1:Esf9ujGNJ5wpXL0Xc9cBEab3Svp7ZoejlawyQ/AbW1c=
github.com/aws/aws-sdk-go-v2/service/inspector2 v1.19.1 h1:H2hwmUz/njU3nJmOFYr5SEZoRX11SFbgysLQ+rea7QI=
Expand Down Expand Up @@ -260,10 +260,10 @@ github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4=
github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.21.0 h1:IUypt/TbXiJBkBbE3926CgnjD8IltAitdn7Yive61DY=
github.com/hashicorp/aws-cloudformation-resource-schema-sdk-go v0.21.0/go.mod h1:cdTE6F2pCKQobug+RqRaQp7Kz9hIEqiSvpPmb6E5G1w=
github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.38.0.20231106231929-ee4c6bb6c5c8 h1:9EQc7Lio5Mhc0dkQAz3Kb/qdv+5K5CfIE6Kp3i+Q69E=
github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.38.0.20231106231929-ee4c6bb6c5c8/go.mod h1:y1qchK9Ii0bpVNfofQIByA3vD7W+RG5x+lDIXhj2ITY=
github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.39 h1:j8/73Sv9CATp6FKJJ+r2ghw8Yvq+nZSRqHYMxVUXGcM=
github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.39/go.mod h1:9wIzp4fMm/Gra2/pWa9yL0vCN6VldCMDavcPUCUEdvI=
github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.39 h1:nyCyZVZJ5CmYelTkCDmC9dO2UgzTB5daeAFn8P9UOtA=
github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.39/go.mod h1:HMcr0msfsuDQCed/AhmdLlRU0IoAcB31hrvQed3JiLc=
github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.40 h1:FLwvItnCr/cu93ZcFdk+eX6AdEpkerbZHMb0ApHfTSM=
github.com/hashicorp/aws-sdk-go-base/v2/awsv1shim/v2 v2.0.0-beta.40/go.mod h1:BKUjqbpcP+tx0HGno7pGrIEyo2xidvM10VZk23EtcP8=
github.com/hashicorp/awspolicyequivalence v1.6.0 h1:7aadmkalbc5ewStC6g3rljx1iNvP4QyAhg2KsHx8bU8=
github.com/hashicorp/awspolicyequivalence v1.6.0/go.mod h1:9IOaIHx+a7C0NfUNk1A93M7kHd5rJ19aoUx37LZGC14=
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
Expand Down
28 changes: 26 additions & 2 deletions internal/provider/provider_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,12 @@ type testCaseDriver struct {
config configurer
}

func (d *testCaseDriver) Configuration() configtesting.Configurer {
return d.configuration()
func (d *testCaseDriver) Configuration(fs []configtesting.ConfigFunc) configtesting.Configurer {
conf := d.configuration()
for _, f := range fs {
f(conf)
}
return conf
}

func (d *testCaseDriver) configuration() *configurer {
Expand Down Expand Up @@ -232,10 +236,26 @@ func (c configurer) AddSharedConfigFile(f string) {
}
}

func (c configurer) SetAccessKey(s string) {
c["access_key"] = s
}

func (c configurer) SetSecretKey(s string) {
c["secret_key"] = s
}

func (c configurer) SetProfile(s string) {
c["profile"] = s
}

func (c configurer) SetRegion(s string) {
c["region"] = s
}

func (c configurer) SetUseFIPSEndpoint(b bool) {
c["use_fips_endpoint"] = b
}

func (c configurer) SetSkipCredsValidation(b bool) {
c["skip_credentials_validation"] = b
}
Expand All @@ -254,6 +274,10 @@ func (t thing) GetCredentials() aws.CredentialsProvider {
return t
}

func (t thing) GetRegion() string {
panic("not implemented")

Check failure on line 278 in internal/provider/provider_config_test.go

View workflow job for this annotation

GitHub Actions / providerlint

R009: avoid panic() usage
}

func TestProviderConfig_Authentication_SSO(t *testing.T) { //nolint:paralleltest
configtesting.SSO(t, &testDriver{})
}
Expand Down
Loading

0 comments on commit 82ae6ba

Please sign in to comment.