2016-01-23 17:46:04 +00:00
|
|
|
// DO NOT EDIT, AUTOMATICALLY GENERATED
|
|
|
|
package s3_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/restic/restic/backend/test"
|
|
|
|
)
|
|
|
|
|
|
|
|
var SkipMessage string
|
|
|
|
|
|
|
|
func TestS3BackendCreate(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestCreate(t)
|
2016-01-23 17:46:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestS3BackendOpen(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestOpen(t)
|
2016-01-23 17:46:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestS3BackendCreateWithConfig(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestCreateWithConfig(t)
|
2016-01-23 17:46:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestS3BackendLocation(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestLocation(t)
|
2016-01-23 17:46:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestS3BackendConfig(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestConfig(t)
|
2016-01-23 17:46:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestS3BackendLoad(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestLoad(t)
|
2016-01-23 17:46:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestS3BackendWrite(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestWrite(t)
|
2016-01-23 17:46:04 +00:00
|
|
|
}
|
|
|
|
|
2016-01-24 15:59:38 +00:00
|
|
|
func TestS3BackendSave(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
|
|
|
test.TestSave(t)
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestS3BackendSaveFilenames(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
|
|
|
test.TestSaveFilenames(t)
|
|
|
|
}
|
|
|
|
|
2016-01-23 18:12:02 +00:00
|
|
|
func TestS3BackendBackend(t *testing.T) {
|
2016-01-23 17:46:04 +00:00
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestBackend(t)
|
2016-01-23 17:46:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestS3BackendDelete(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestDelete(t)
|
2016-01-23 17:46:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestS3BackendCleanup(t *testing.T) {
|
|
|
|
if SkipMessage != "" {
|
|
|
|
t.Skip(SkipMessage)
|
|
|
|
}
|
2016-01-23 18:12:02 +00:00
|
|
|
test.TestCleanup(t)
|
2016-01-23 17:46:04 +00:00
|
|
|
}
|