From c29213f0ef394dd86fe240c34761c42719708849 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 18 Oct 2019 17:15:07 +0200 Subject: [PATCH] tests: add print_pending_delete ones Signed-off-by: Thomas Lamprecht --- tests/abstract-config-tests.pl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/abstract-config-tests.pl b/tests/abstract-config-tests.pl index f640171..12ce9dd 100755 --- a/tests/abstract-config-tests.pl +++ b/tests/abstract-config-tests.pl @@ -60,6 +60,24 @@ my $tests = [ }, ] }, +{ + method => 'print_pending_delete', + subtests => [ + { + params => [{ + cpu => { force => 0, }, + memory => { force => 0, }, + }], + expect => "memory,cpu", + }, + { + params => [{ # we have no double negation, only simple stuff + '!memory' => { force => 1, }, + }], + expect => "!!memory", + }, + ] +}, ]; # tests definition end -- 2.39.2