Merge pull request #145 from AndreyKostov/s3-test-fix

Skip s3 tests if no region is specified
This commit is contained in:
Stephen Day 2015-02-04 12:00:22 -08:00
commit 15df84768d

View file

@ -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 ""
} }