f3734ed0d4
- endpoint abstractions now share an interface `Abstraction`
- pkg endpoint now has a query facitilty (`ListAbstractions`) which is
used to find on-disk
- step holds and bookmarks
- replication cursors (v1, v2)
- last-received-holds
- the `zrepl holds list` command consumes endpoint.ListAbstractions
- the new `zrepl holds release-{all,stale}` commands can be used
to remove abstractions of package endpoint
Co-authored-by: InsanePrawn <insane.prawny@gmail.com>
supersedes #282
fixes #280
fixes #278
30 lines
624 B
Go
30 lines
624 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,
|
|
IdempotentHold,
|
|
IdempotentBookmark,
|
|
IdempotentDestroy,
|
|
ResumeTokenParsing,
|
|
ResumableRecvAndTokenHandling,
|
|
SendArgsValidationEncryptedSendOfUnencryptedDatasetForbidden,
|
|
SendArgsValidationResumeTokenEncryptionMismatchForbidden,
|
|
SendArgsValidationResumeTokenDifferentFilesystemForbidden,
|
|
}
|