2015-05-15 21:53:00 +00:00
|
|
|
package backend_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
bes3 "github.com/restic/restic/backend/s3"
|
|
|
|
. "github.com/restic/restic/test"
|
|
|
|
)
|
|
|
|
|
2015-06-14 13:43:47 +00:00
|
|
|
func setupS3Backend(t *testing.T) *bes3.S3Backend {
|
2015-11-06 21:31:59 +00:00
|
|
|
return bes3.Open("play.minio.io:9000", "restictestbucket")
|
2015-05-15 21:53:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestS3Backend(t *testing.T) {
|
|
|
|
s := setupS3Backend(t)
|
|
|
|
|
|
|
|
testBackend(s, t)
|
|
|
|
}
|