1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-27 10:17:58 +00:00
restic/backend/s3_test.go

27 lines
401 B
Go
Raw Normal View History

2015-05-15 21:53:00 +00:00
package backend_test
import (
"testing"
"github.com/restic/restic/backend/s3"
. "github.com/restic/restic/test"
2015-05-15 21:53:00 +00:00
)
type deleter interface {
Delete() error
}
2015-05-15 21:53:00 +00:00
func TestS3Backend(t *testing.T) {
if TestS3Server == "" {
t.Skip("s3 test server not available")
}
be, err := s3.Open(TestS3Server, "restictestbucket")
OK(t, err)
testBackend(be, t)
del := be.(deleter)
OK(t, del.Delete())
2015-05-15 21:53:00 +00:00
}