zrepl/platformtest/tests
Christian Schwarz 2642c64303 make initial replication policy configurable (most_recent, all, fail)
Config:

```
- type: push
  ...
  conflict_resolution:
    initial_replication: most_recent | all | fali
```

The ``initial_replication`` option determines which snapshots zrepl
replicates if the filesystem has not been replicated before.
If ``most_recent`` (the default), the initial replication will only
transfer the most recent snapshot, while ignoring previous snapshots.
If all snapshots should be replicated, specify ``all``.
Use ``fail`` to make replication of the filesystem fail in case
there is no corresponding fileystem on the receiver.

Code-Level Changes, apart from the obvious:
- Rework IncrementalPath()'s return signature.
  Now returns an error for initial replications as well.
- Rename & rework it's consumer, resolveConflict().

Co-authored-by: Graham Christensen <graham@grahamc.com>

Fixes https://github.com/zrepl/zrepl/issues/550
Fixes https://github.com/zrepl/zrepl/issues/187
Closes https://github.com/zrepl/zrepl/pull/592
2022-06-26 14:36:59 +02:00
..
gen [#321] platformtest: generate test case list + coverage tooling 2020-06-14 15:21:36 +02:00
batchDestroy.go [#307] add package trace, integrate it with logging, and adopt it throughout zrepl 2020-05-19 11:30:02 +02:00
generated_cases.go make initial replication policy configurable (most_recent, all, fail) 2022-06-26 14:36:59 +02:00
getNonexistent.go zfs: use exec.CommandContext everywhere 2020-03-27 13:08:43 +01:00
helpers.go fix encrypt-on-receive with placeholders 2021-12-18 15:12:47 +01:00
holds.go Reformat all files with make format. 2020-08-31 23:57:45 +02:00
idempotentBookmark.go Reformat all files with make format. 2020-08-31 23:57:45 +02:00
idempotentDestroy.go [#316] endpoint / replication protocol: more robust step-holds and replication cursor management 2020-06-14 15:21:36 +02:00
idempotentHold.go endpoint: refactor, fix stale holds on initial replication failure, zfs-abstractions subcmd, more efficient ZFS queries 2020-04-18 12:26:03 +02:00
listFilesystems.go endpoint: refactor, fix stale holds on initial replication failure, zfs-abstractions subcmd, more efficient ZFS queries 2020-04-18 12:26:03 +02:00
listFilesystemVersions.go [#321] platformtest: fix test ListFilesystemVersionsZeroExistIsNotAnError 2020-06-14 15:21:36 +02:00
recvForceIntoEncryptedErr.go [#285] support setting zfs send / recv flags in the config (send: -wLcepbS, recv: -ox) 2021-02-20 17:20:45 +01:00
recvRollback.go platformtest: fix 'active child tasks' panic for ReceiveForceRollbackWorksUnencrypted 2021-09-19 20:03:01 +02:00
replication.go make initial replication policy configurable (most_recent, all, fail) 2022-06-26 14:36:59 +02:00
replicationCursor.go replication + endpoint: replication guarantees: guarantee_{resumability,incremental,nothing} 2020-07-26 20:32:35 +02:00
resumableRecvAndTokenHandling.go [#285] support setting zfs send / recv flags in the config (send: -wLcepbS, recv: -ox) 2021-02-20 17:20:45 +01:00
resumeTokenParsing.go zfs: use exec.CommandContext everywhere 2020-03-27 13:08:43 +01:00
resumeTokensGenerate.bash new features: {resumable,encrypted,hold-protected} send-recv, last-received-hold 2020-02-14 22:00:13 +01:00
sendArgsValidation.go [#285] support setting zfs send / recv flags in the config (send: -wLcepbS, recv: -ox) 2021-02-20 17:20:45 +01:00
sendStream.go zfs: rewrite SendStream, fix bug in Close() on FreeBSD, add platformtests 2021-09-19 20:11:31 +02:00
tests.go [#321] platformtest: generate test case list + coverage tooling 2020-06-14 15:21:36 +02:00
undestroyableSnapshotParsing.go zfs: use exec.CommandContext everywhere 2020-03-27 13:08:43 +01:00