File: system-ssh-test-conf.pl

package info (click to toggle)
libconfig-model-openssh-perl 1.241-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 672 kB
  • sloc: perl: 3,198; makefile: 2
file content (40 lines) | stat: -rw-r--r-- 1,110 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# This file is part of Config-Model-OpenSsh
#
# This software is Copyright (c) 2008-2018 by Dominique Dumont.
#
# This is free software, licensed under:
#
#   The GNU Lesser General Public License, Version 2.1, February 1999
#
use strict;

use Config::Model::BackendMgr;

# test loading layered config à la ssh_config

$model_to_test = "SystemSsh";

@tests = (
    {    # t0
        name  => 'basic',
        setup => {
            'system_ssh_config' => {
                'darwin' => '/etc/ssh_config',
                'default' => '/etc/ssh/ssh_config',
            },
        },
        check => {
            'Host:"*" Ciphers' => 'aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc',
            'Host:"*" IdentityFile:1' => '~/.ssh/id_rsa',
            #'Host:"foo\.\*,\*\.bar"' => '',
            # 'LocalForward:0 port' => 20022,
            # 'LocalForward:0 host' => 10.3.244.4,
            # 'LocalForward:1 ipv6' => 1,
            # 'LocalForward:1 port' => 22080,
            # 'LocalForward:1 host' => '2001:0db8:85a3:0000:0000:8a2e:0370:7334',
        },
    }
);

1;