test: section config: also test array entries in unknown section

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fiona Ebner 2023-08-16 11:24:39 +02:00
parent d2a6411cab
commit 9c357928ef

View File

@ -219,6 +219,7 @@ my $with_unknown_data = {
type => 'bad', type => 'bad',
common => 'omg', common => 'omg',
unknownfield => 'shouldnotbehere', unknownfield => 'shouldnotbehere',
unknownarray => ['entry1', 'entry2'],
}, },
}, },
order => enum(qw(t1 t2 invalid t3)), order => enum(qw(t1 t2 invalid t3)),
@ -236,6 +237,8 @@ one: t2
bad: invalid bad: invalid
common omg common omg
unknownfield shouldnotbehere unknownfield shouldnotbehere
unknownarray entry1
unknownarray entry2
two: t3 two: t3
field2 5 field2 5