Merge pull request #145 from AndreyKostov/s3-test-fix
Skip s3 tests if no region is specified
This commit is contained in:
commit
15df84768d
1 changed files with 2 additions and 2 deletions
|
@ -72,8 +72,8 @@ func init() {
|
||||||
|
|
||||||
// Skip S3 storage driver tests if environment variable parameters are not provided
|
// Skip S3 storage driver tests if environment variable parameters are not provided
|
||||||
skipCheck := func() string {
|
skipCheck := func() string {
|
||||||
if accessKey == "" || secretKey == "" || bucket == "" || encrypt == "" {
|
if accessKey == "" || secretKey == "" || region == "" || bucket == "" || encrypt == "" {
|
||||||
return "Must set AWS_ACCESS_KEY, AWS_SECRET_KEY, S3_BUCKET, and S3_ENCRYPT to run S3 tests"
|
return "Must set AWS_ACCESS_KEY, AWS_SECRET_KEY, AWS_REGION, S3_BUCKET, and S3_ENCRYPT to run S3 tests"
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue