#
# This file is part of Config-Model
#
# This software is Copyright (c) 2005-2022 by Dominique Dumont.
#
# This is free software, licensed under:
#
#   The GNU Lesser General Public License, Version 2.1, February 1999
#
use strict;
use warnings;

my @tests = (
    { # t0
        check => {
            'fs:/proc fs_spec',           "proc" ,
            'fs:/proc fs_file',           "/proc" ,
            'fs:/home fs_file',          "/home",
            'fs:/home fs_spec',          "UUID=18e71d5c-436a-4b88-aa16-308ebfa2eef8",
        },
        dump_errors => [
            qr/value 2 > max limit 0/ => 'fs:"/var/chroot/lenny-i386/dev" fs_passno=0' ,
        ],
    },
    { #t1
        check => {
            'fs:root fs_spec',           "LABEL=root" ,
            'fs:root fs_file',           "/" ,
            'fs:/mnt/foo fs_mntopts "x-systemd.mount-timeout"', '2m',
        },
    },
);

return {
    model_to_test => "Fstab",
    conf_file_name => "fstab",
    conf_dir => "etc",
    tests => \@tests
};
