tests: add checks for remove_from_pending_delete

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-10-18 19:45:58 +02:00
parent 464a42c487
commit e33cb61565

View File

@ -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