Skip to content

Commit

Permalink
aws: Add missing fields for config test. (#3740)
Browse files Browse the repository at this point in the history
Adds additional tests for aws.Config field merging.
  • Loading branch information
bkda committed Feb 19, 2021
1 parent 083706b commit 6a40d08
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions aws/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,22 @@ func TestCopyReturnsNewInstance(t *testing.T) {
var mergeTestZeroValueConfig = Config{}

var mergeTestConfig = Config{
Credentials: testCredentials,
Endpoint: String("MergeTestEndpoint"),
Region: String("MERGE_TEST_AWS_REGION"),
DisableSSL: Bool(true),
HTTPClient: http.DefaultClient,
LogLevel: LogLevel(LogDebug),
Logger: NewDefaultLogger(),
MaxRetries: Int(10),
DisableParamValidation: Bool(true),
DisableComputeChecksums: Bool(true),
S3ForcePathStyle: Bool(true),
Credentials: testCredentials,
Endpoint: String("MergeTestEndpoint"),
Region: String("MERGE_TEST_AWS_REGION"),
DisableSSL: Bool(true),
HTTPClient: http.DefaultClient,
LogLevel: LogLevel(LogDebug),
Logger: NewDefaultLogger(),
MaxRetries: Int(10),
DisableParamValidation: Bool(true),
DisableComputeChecksums: Bool(true),
DisableEndpointHostPrefix: Bool(true),
EnableEndpointDiscovery: Bool(true),
EnforceShouldRetryCheck: Bool(true),
DisableRestProtocolURICleaning: Bool(true),
S3ForcePathStyle: Bool(true),
LowerCaseHeaderMaps: Bool(true),
}

var mergeTests = []struct {
Expand Down

0 comments on commit 6a40d08

Please sign in to comment.