zrepl/platformtest
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
..
harness platformtest: retry zpool export if 'pool is busy' 2021-12-18 15:58:24 +01:00
logmockzfs add platformtest: infrastructure for ZFS compatiblity testing 2019-09-14 13:43:46 +02:00
tests make initial replication policy configurable (most_recent, all, fail) 2022-06-26 14:36:59 +02:00
platformtest_exec.go platformtest: logging-related refactorings 2019-10-14 17:32:58 +02:00
platformtest_logging.go [#307] add package trace, integrate it with logging, and adopt it throughout zrepl 2020-05-19 11:30:02 +02:00
platformtest_ops.go bump golangci-lint to 1.35.2 and fix resulting lint errors 2021-01-25 00:16:01 +01:00
platformtest_parser_test.go add platformtest: infrastructure for ZFS compatiblity testing 2019-09-14 13:43:46 +02:00
platformtest_zpool.go platformtest: retry zpool export if 'pool is busy' 2021-12-18 15:58:24 +01:00
platformtest.go platformtest: FailNow on Errorf 2020-05-15 21:04:52 +02:00