457cbd136b
fixes #280
36 lines
832 B
Go
36 lines
832 B
Go
package tests
|
|
|
|
import (
|
|
"reflect"
|
|
"runtime"
|
|
|
|
"github.com/zrepl/zrepl/platformtest"
|
|
)
|
|
|
|
type Case func(*platformtest.Context)
|
|
|
|
func (c Case) String() string {
|
|
return runtime.FuncForPC(reflect.ValueOf(c).Pointer()).Name()
|
|
}
|
|
|
|
var Cases = []Case{
|
|
BatchDestroy,
|
|
UndestroyableSnapshotParsing,
|
|
GetNonexistent,
|
|
ReplicationCursor,
|
|
RollupReleaseIncluding,
|
|
RollupReleaseExcluding,
|
|
RollupReleaseMostRecentIsBookmarkWithoutSnapshot,
|
|
RollupReleaseMostRecentIsBookmarkAndSnapshotStillExists,
|
|
RollupReleaseMostRecentDoesntExist,
|
|
IdempotentHold,
|
|
IdempotentBookmark,
|
|
IdempotentDestroy,
|
|
ResumeTokenParsing,
|
|
ResumableRecvAndTokenHandling,
|
|
SendArgsValidationEncryptedSendOfUnencryptedDatasetForbidden,
|
|
SendArgsValidationResumeTokenEncryptionMismatchForbidden,
|
|
SendArgsValidationResumeTokenDifferentFilesystemForbidden,
|
|
ListHolds,
|
|
}
|