qemu-server/test/parse-config-expected
Fiona Ebner 68eabc42c1 parse config: warn about duplicate sections
Currently, a duplicate section will quietly override the previous
instance of the section with the same identifier. Keep the current
behavior of preferring later entries, but issue a warning or die when
parsing strictly.

The entry for 'pending' in the result needs to start out as undefined
for the check to also work in presence of empty sections. Avoid
changing the returned value itself, by making sure to initialize the
entry before returning.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Link: https://lore.proxmox.com/20250127112923.31703-12-f.ebner@proxmox.com
2025-04-07 14:13:01 +02:00
..
cloudinit-snapshot.conf parse config: be precise about section type checks 2025-04-07 14:13:01 +02:00
cloudinit-snapshot.conf.strict.error parse config: be precise about section type checks 2025-04-07 14:13:01 +02:00
duplicate-sections.conf test: parse config: test config with duplicate sections 2025-04-07 14:13:01 +02:00
duplicate-sections.conf.strict.error parse config: warn about duplicate sections 2025-04-07 14:13:01 +02:00
unknown-sections.conf parse config: skip unknown sections and warn about their presence 2025-04-07 14:13:01 +02:00
unknown-sections.conf.strict.error parse config: skip unknown sections and warn about their presence 2025-04-07 14:13:01 +02:00
verify-snapshot.conf test: add parse config tests 2025-04-07 14:13:01 +02:00
verify-snapshot.conf.strict.error test: add parse config tests 2025-04-07 14:13:01 +02:00