]> git.proxmox.com Git - pve-installer.git/commit
auto-installer: add tests for answer file parsing
authorAaron Lauterer <a.lauterer@proxmox.com>
Wed, 17 Apr 2024 12:30:45 +0000 (14:30 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Apr 2024 12:31:37 +0000 (14:31 +0200)
commitc4b8579455299669a37f8967fe853a3088da2307
tree433cf1d6030d93070bd7d3d2ead229ed44cad37d
parent2949f8253920d9ecc46cf524c0278a3e1d92c567
auto-installer: add tests for answer file parsing

By matching the resulting json to be passed to the low level installer
against known good ones.

The environment info was gathered from one of our AMD Epyc Rome test
servers to have a realistic starting point.

Tested-by: Christoph Heiss <c.heiss@proxmox.com>
Reviewed-by: Christoph Heiss <c.heiss@proxmox.com>
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 files changed:
proxmox-auto-installer/tests/parse-answer.rs [new file with mode: 0644]
proxmox-auto-installer/tests/resources/iso-info.json [new file with mode: 0644]
proxmox-auto-installer/tests/resources/locales.json [new file with mode: 0644]
proxmox-auto-installer/tests/resources/parse_answer/disk_match.json [new file with mode: 0644]
proxmox-auto-installer/tests/resources/parse_answer/disk_match.toml [new file with mode: 0644]
proxmox-auto-installer/tests/resources/parse_answer/disk_match_all.json [new file with mode: 0644]
proxmox-auto-installer/tests/resources/parse_answer/disk_match_all.toml [new file with mode: 0644]
proxmox-auto-installer/tests/resources/parse_answer/disk_match_any.json [new file with mode: 0644]
proxmox-auto-installer/tests/resources/parse_answer/disk_match_any.toml [new file with mode: 0644]
proxmox-auto-installer/tests/resources/parse_answer/minimal.json [new file with mode: 0644]
proxmox-auto-installer/tests/resources/parse_answer/minimal.toml [new file with mode: 0644]
proxmox-auto-installer/tests/resources/parse_answer/nic_matching.json [new file with mode: 0644]
proxmox-auto-installer/tests/resources/parse_answer/nic_matching.toml [new file with mode: 0644]
proxmox-auto-installer/tests/resources/parse_answer/readme [new file with mode: 0644]
proxmox-auto-installer/tests/resources/parse_answer/specific_nic.json [new file with mode: 0644]
proxmox-auto-installer/tests/resources/parse_answer/specific_nic.toml [new file with mode: 0644]
proxmox-auto-installer/tests/resources/parse_answer/zfs.json [new file with mode: 0644]
proxmox-auto-installer/tests/resources/parse_answer/zfs.toml [new file with mode: 0644]
proxmox-auto-installer/tests/resources/run-env-info.json [new file with mode: 0644]
proxmox-auto-installer/tests/resources/run-env-udev.json [new file with mode: 0644]