provisioning/schemas/tests/fixtures/backup_no_encryption.ncl

34 lines
917 B
Text
Raw Permalink Normal View History

# Fixture: BackupProvider declared with encryption=false.
# Expected: EncryptionRequired contract rejects at nickel export time.
let Schema = import "schemas/providers/backup.ncl" in
{
provider | Schema.BackupProvider | Schema.EncryptionRequired = {
name = "no-crypto-provider",
binary = "noop",
features = {
tags = false,
ui = false,
verify = false,
mount = false,
encryption = false, # ← deliberately broken
compression = false,
dedup = 'none,
streaming = false,
},
env = { required = [] },
commands = {
backup = {
subcmd = "backup",
snapshot_id_regex = "id (?P<id>\\w+)",
},
restore = {
subcmd = "restore",
target_flag = "--target",
},
list = { subcmd = "list" },
forget = { subcmd = "forget" },
},
},
}