restic/backend/s3_test.go

23 lines
337 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) {
be, err := s3.Create("127.0.0.1:9000", "restictestbucket")
OK(t, err)
testBackend(be, t)
del := be.(deleter)
OK(t, del.Delete())
2015-05-15 21:53:00 +00:00
}