]> git.proxmox.com Git - pve-guest-common.git/commitdiff
tests: add print_pending_delete ones
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Oct 2019 15:15:07 +0000 (17:15 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Oct 2019 15:48:03 +0000 (17:48 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
tests/abstract-config-tests.pl

index f640171007b72f4368d8785e9facb29e8f577465..12ce9dd0ad2e106de09b3094eb32c56eebbdd5b9 100755 (executable)
@@ -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