]> git.proxmox.com Git - pve-storage.git/blobdiff - test/get_subdir_test.pm
config: add overrides for default directory locations
[pve-storage.git] / test / get_subdir_test.pm
index 1e583504567138c306eef584504d7f59eb9e3365..26c08d53a68a1ada77c7d79518b6f9df28ff25fb 100644 (file)
@@ -27,6 +27,13 @@ foreach my $type (keys %$vtype_subdirs) {
     push @$tests, [ $scfg_with_path, $type, $path ];
 }
 
+# creates additional tests for overrides
+foreach my $type (keys %$vtype_subdirs) {
+    my $override = "/${type}_override";
+    my $scfg_with_override = { path => '/some/path', dirs => { $type => $override } };
+    push @$tests, [ $scfg_with_override, $type, "$scfg_with_override->{path}$scfg_with_override->{dirs}->{$type}" ];
+}
+
 plan tests => scalar @$tests;
 
 foreach my $tt (@$tests) {