CI: import all the rest of the YAML schema

- These have **not** been fixed for validation, so the schema's themselves
  will fail to load. This is a consequence of variations in JSON-Schema
  representations through various drafts. Fixing the schemata is
  fairly straightforward.

This gives us 19 new tests, all of which fail.
main
Adriaan de Groot 5 years ago
parent df183d4026
commit 4a07bd4ae3

@ -0,0 +1,18 @@
---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/bootloader
additionalProperties: false
type: object
properties:
efiBootLoader: { type: string, required: true }
kernel: { type: string, required: true }
img: { type: string, required: true }
fallback: { type: str }
timeout: { type: str }
bootloaderEntryName: { type: str }
kernelLine: { type: str }
fallbackKernelLine: { type: str }
grubInstall: { type: string, required: true }
grubMkconfig: { type: string, required: true }
grubCfg: { type: string, required: true }
efiBootloaderId: { type: str }

@ -0,0 +1,16 @@
---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/displaymanager
additionalProperties: false
type: object
properties:
"displaymanagers":
type: seq
sequence:
- { type: string, required: true, enum: [slim, sddm, lightdm, gdm, mdm, lxdm, kdm] }
"defaultDesktopEnvironment":
type: map
mapping:
"executable": { type: str }
"desktopFile": { type: str }
"basicSetup": { type: boolean, default: false }

@ -0,0 +1,19 @@
---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/fstab
additionalProperties: false
type: object
properties:
"mountOptions":
type: map
mapping:
"default": { type: string, required: true }
"btrfs": { type: string, required: true }
"ssdExtraMountOptions":
type: map
mapping:
"ext4": { type: string, required: true }
"jfs": { type: string, required: true }
"xfs": { type: string, required: true }
"swap": { type: string, required: true }
"btrfs": { type: string, required: true }

@ -0,0 +1,15 @@
---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/grubcfg
additionalProperties: false
type: object
properties:
"overwrite": { type: boolean, default: false }
"defaults":
type: map
mapping:
"GRUB_TIMEOUT": { type: int, required: true }
"GRUB_DEFAULT": { type: string, required: true }
"GRUB_DISABLE_SUBMENU": { type: boolean, default: true }
"GRUB_TERMINAL_OUTPUT": { type: string, required: true }
"GRUB_DISABLE_RECOVERY": { type: boolean, default: true }

@ -0,0 +1,7 @@
---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/initcpio
additionalProperties: false
type: object
properties:
kernel: { type: string, required: true }

@ -0,0 +1,8 @@
---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/finished
additionalProperties: keyboard
type: object
properties:
xOrgConfFileName: { type: string, required: true }
convertedKeymapPath: { type: string, required: true }

@ -0,0 +1,17 @@
---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/license
additionalProperties: false
type: object
properties:
"entries":
type: seq
sequence:
- type: map
mapping:
"id": { type: str }
"name": { type: str }
"vendor": { type: str }
"type": { type: str }
"url": { type: str }
"required": { type: boolean, default: false }

@ -0,0 +1,10 @@
---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/locale
additionalProperties: false
type: object
properties:
"region": { type: str }
"zone": { type: str }
"localeGenPath": { type: string, required: true }
"geoipUrl": { type: str }

@ -0,0 +1,7 @@
---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/luksopenswaphookcfg
additionalProperties: false
type: object
properties:
"configFilePath": { type: string, required: true }

@ -0,0 +1,9 @@
---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/machineid
additionalProperties: false
type: object
properties:
"systemd": { type: boolean, default: true }
"dbus": { type: boolean, default: true }
"symlink": { type: boolean, default: true }

@ -0,0 +1,24 @@
---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/mount
additionalProperties: false
type: object
properties:
"extraMounts":
type: seq
sequence:
- type: map
mapping:
"device": { type: string, required: true }
"fs": { type: str }
"mountPoint": { type: string, required: true }
"options": { type: str }
"extraMountsEfi":
type: seq
sequence:
- type: map
mapping:
"device": { type: string, required: true }
"fs": { type: str }
"mountPoint": { type: string, required: true }
"options": { type: str }

@ -0,0 +1,7 @@
---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/netinstall
additionalProperties: false
type: object
properties:
groupsUrl: { type: string, required: true }

@ -0,0 +1,33 @@
---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/packages
additionalProperties: false
type: object
properties:
"backend": { type: string, required: true, enum: [packagekit, zypp, yum, dnf, urpmi, apt, pacman, portage, entropy] }
"update_db": { type: boolean, default: true }
"operations":
type: seq
sequence:
- type: map
mapping:
"install":
type: seq
sequence:
- { type: text }
"remove":
type: seq
sequence:
- { type: text }
"localInstall":
type: seq
sequence:
- { type: text }
"try_install":
type: seq
sequence:
- { type: text }
"try_remove":
type: seq
sequence:
- { type: text }

@ -0,0 +1,11 @@
---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/partition
additionalProperties: false
type: object
properties:
efiSystemPartition: { type: string, required: true }
ensureSuspendToDisk: { type: boolean, default: true }
drawNestedPartitions: { type: boolean, default: false }
alwaysShowPartitionLabels: { type: boolean, default: true }
defaultFileSystemType: { type: string, required: true }

@ -0,0 +1,7 @@
---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/plymouthcfg
additionalProperties: false
type: object
properties:
plymouth_theme: { type: str }

@ -0,0 +1,7 @@
---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/removeuser
additionalProperties: false
type: object
properties:
"username": { type: string, required: true }

@ -0,0 +1,8 @@
---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/umount
additionalProperties: false
type: object
properties:
"srcLog": { type: str }
"destLog": { type: str }

@ -0,0 +1,14 @@
---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/unpackfs
additionalProperties: false
type: object
properties:
"unpack":
type: seq
sequence:
- type: map
mapping:
"source": { type: string, required: true }
"sourcefs": { type: str }
"destination": { type: str }

@ -0,0 +1,18 @@
---
$schema: https://json-schema.org/schema#
$id: https://calamares.io/schemas/users
additionalProperties: false
type: object
properties:
"defaultGroups":
required: true
type: seq
sequence:
- { type: str }
"autologinGroup": { type: string, required: true }
"doAutologin": { type: boolean, default: true }
"sudoersGroup": { type: string, required: true }
"setRootPassword": { type: boolean, default: true }
"availableShells": { type: str }
"avatarFilePath": { type: str }
"doReusePassword": { type: boolean, default: true }
Loading…
Cancel
Save