mirror of
https://github.com/octoleo/restic.git
synced 2024-11-05 04:47:51 +00:00
23 lines
337 B
Go
23 lines
337 B
Go
package backend_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/restic/restic/backend/s3"
|
|
. "github.com/restic/restic/test"
|
|
)
|
|
|
|
type deleter interface {
|
|
Delete() error
|
|
}
|
|
|
|
func TestS3Backend(t *testing.T) {
|
|
be, err := s3.Create("127.0.0.1:9000", "restictestbucket")
|
|
OK(t, err)
|
|
|
|
testBackend(be, t)
|
|
|
|
del := be.(deleter)
|
|
OK(t, del.Delete())
|
|
}
|