test: parse_volname

Test to reduce the potential for accidental breakage on regex changes.
And to make sure that all vtype_subdirs are parsed.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
This commit is contained in:
Alwin Antreich
2020-04-28 15:58:16 +02:00
committed by Fabian Grünbichler
parent 92ae59df9e
commit c48801b52a
3 changed files with 258 additions and 1 deletions

View File

@ -457,6 +457,10 @@ my $vtype_subdirs = {
snippets => 'snippets',
};
sub get_vtype_subdirs {
return $vtype_subdirs;
}
sub get_subdir {
my ($class, $scfg, $vtype) = @_;