summaryrefslogtreecommitdiff
path: root/test/network_tests/security_tests/conf/security_test_local_config.json.in
blob: 60036f8f0f01541d14dcbe6c68a190fc62e1d989 (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
    "unicast" : "localhost",
    "logging" :
    { 
        "level" : "info",
        "console" : "true",
        "file" : { "enable" : "false", "path" : "/tmp/vsomeip.log" },
        "dlt" : "false"
    },
    "applications" : 
    [
        {
            "name" : "service-sample",
            "id" : "0x1277"
        },
        {    
            "name" : "client-sample",
            "id" : "0x1255"
        },
        {
            "name" : "routingmanagerd",
            "id" : "0x1111"
        }
    ],
    "security" :
    {
        "check_credentials" : "true",
        "policies" :
        [
            {
                "credentials" : { "uid" : "@TEST_UID@", "gid" : "@TEST_GID@" },
                "allow" :
                {
                    "offers":
                    [
                        {
                            "service"  : "0x1234",
                            "instance" : "0x5678"
                        }
                    ],
                    "requests":
                    [
                        {
                            "service"  : "0x1234",
                            "instances" :
                            [
                                {
                                    "ids" : ["0x5678"],
                                    "methods" : [ {"first" : "0x8421", "last" : "0x8422" }, "0x8001", "0x7777" ]
                                }
                            ]
                        }
                    ]
                }
            }
        ]
    },
    "routing" : "routingmanagerd",
    "routing-credentials" :
    {
        "uid" : "@TEST_UID@",
        "gid" : "@TEST_GID@"
    },
    "service-discovery" :
    {
        "enable" : "true",
        "multicast" : "224.244.224.245",
        "port" : "30490",
        "protocol" : "udp",
        "initial_delay_min" : "10",
        "initial_delay_max" : "100",
        "repetitions_base_delay" : "200",
        "repetitions_max" : "3",
        "ttl" : "3",
        "cyclic_offer_delay" : "2000",
        "request_response_delay" : "1500"
    }
}