15 lines
408 B
Text
15 lines
408 B
Text
# Fixture: BackupPolicy with only 1 destination.
|
|
# Expected: MultiDestinationRequired contract rejects.
|
|
let bp = import "schemas/lib/backup_policy.ncl" in
|
|
|
|
let dest = {
|
|
name = "only-primary",
|
|
kind = 's3,
|
|
uri = "s3:host/bucket",
|
|
cred_ref = { path = "creds/test", kind = 's3 },
|
|
role = 'primary,
|
|
} in
|
|
|
|
{
|
|
destinations | Array bp.Destination | bp.MultiDestinationRequired = [dest],
|
|
}
|