]> git.proxmox.com Git - pve-storage.git/blobdiff - test/path_to_volume_id_test.pm
factoring out regex for vztmpl
[pve-storage.git] / test / path_to_volume_id_test.pm
index 5eee2f6a7172d40efc8d3b5c4151b66ad8972c82..8149c881e2e727085d29924345b18258a4b4d2a1 100644 (file)
@@ -166,12 +166,13 @@ my @tests = (
            'local:snippets/hookscript.pl',
        ],
     },
-
-    # no matches
     {
        description => 'CT template, tar.xz',
        volname     => "$storage_dir/template/cache/debian-10.0-standard_10.0-1_amd64.tar.xz",
-       expected    => [''],
+       expected    => [
+           'vztmpl',
+           'local:vztmpl/debian-10.0-standard_10.0-1_amd64.tar.xz',
+       ],
     },
 
     # no matches, path or files with failures