mirror of
https://github.com/octoleo/restic.git
synced 2024-11-17 18:45:15 +00:00
Update tests for new s3 lib
This commit is contained in:
parent
10cd672a92
commit
3bf447b422
@ -34,10 +34,11 @@ func setupS3Backend(t *testing.T) *bes3.S3Backend {
|
|||||||
S3LocationConstraint: true, // s3test server requires a LocationConstraint
|
S3LocationConstraint: true, // s3test server requires a LocationConstraint
|
||||||
}
|
}
|
||||||
|
|
||||||
s.auth = aws.Auth{"abc", "123", ""}
|
s.auth = aws.Auth{"abc", "123"}
|
||||||
|
|
||||||
service := s3.New(s.auth, s.region)
|
service := s3.New(s.auth, s.region)
|
||||||
bucket := service.Bucket("testbucket")
|
bucket, berr := service.Bucket("testbucket")
|
||||||
|
OK(t, err)
|
||||||
err = bucket.PutBucket("private")
|
err = bucket.PutBucket("private")
|
||||||
OK(t, err)
|
OK(t, err)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user