mirror of
https://git.proxmox.com/git/pve-guest-common
synced 2025-05-22 16:30:34 +00:00
tests: add checks for remove_from_pending_delete
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
464a42c487
commit
e33cb61565
@ -101,6 +101,26 @@ my $tests = [
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
method => 'remove_from_pending_delete', # $conf, $key
|
||||||
|
subtests => [
|
||||||
|
{ # simple test addition to of a pending deletion to the empty config
|
||||||
|
params => [ { pending => { delete => 'memory', } }, 'memory' ],
|
||||||
|
expect => { pending => {} },
|
||||||
|
,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
params => [ { pending => { delete => 'cpu,!memory', } }, 'memory' ],
|
||||||
|
expect => { pending => { delete => 'cpu' } },
|
||||||
|
,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
params => [ { pending => { delete => 'cpu', } }, 'memory' ],
|
||||||
|
expect => { pending => { delete => 'cpu' } },
|
||||||
|
,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
]; # tests definition end
|
]; # tests definition end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user