]> git.proxmox.com Git - pve-storage.git/blobdiff - test/archive_info_test.pm
Expand archive_info to include ctime, vmid and is_std_name
[pve-storage.git] / test / archive_info_test.pm
index 2d1405bdfb047f7848c2cbeb23a3a15f47c37f3b..5e5ca8a93512b72ea5eecaa79bdf61656a3b18de 100644 (file)
@@ -26,6 +26,9 @@ my $tests = [
            'format'       => 'tar',
            'decompressor' => ['tar', '-z'],
            'compression'  => 'gz',
+           'vmid'         => $vmid,
+           'ctime'        => 1585604370,
+           'is_std_name'  => 1,
        },
     },
     {
@@ -36,6 +39,9 @@ my $tests = [
            'format'       => 'tar',
            'decompressor' => ['tar', '-z'],
            'compression'  => 'gz',
+           'vmid'         => $vmid,
+           'ctime'        => 1585604370,
+           'is_std_name'  => 1,
        },
     },
     {
@@ -46,6 +52,7 @@ my $tests = [
            'format'       => 'tar',
            'decompressor' => ['tar', '-z'],
            'compression'  => 'gz',
+           'is_std_name'  => 0,
        },
     },
 ];
@@ -83,6 +90,9 @@ for my $virt (sort keys %$bkp_suffix) {
                'format'       => "$format",
                'decompressor' => $decomp->{$suffix},
                'compression'  => "$suffix",
+               'vmid'         => $vmid,
+               'ctime'        => 1585602760,
+               'is_std_name'  => 1,
            },
        };
     }