Use json_is_true() in place of json_boolean_value() for compatibility
[trust_router.git] / common / tests / test-filters / filt-inforec-1.json
1 {
2   "tr_internal": {
3     "hostname": "server.example.com"
4   },
5   "communities": [
6     {
7       "apcs": [],
8       "community_id": "apc.example.com",
9       "idp_realms": ["realm"],
10       "rp_realms": ["realm"],
11       "type": "apc"
12     }
13   ],
14   "local_organizations": [
15     { "organization_name": "inforec filter test 1",
16       "realms": [
17         { "realm": "realm",
18           "identity_provider": {
19             "aaa_servers": ["rad"],
20             "apcs": ["apc.example.com"],
21             "shared_config": "no"
22           },
23           "gss_names": ["gss"],
24           "filters": {
25             "tid_inbound": [
26               { "action": "accept",
27                 "specs": [
28                   { "field": "rp_realm",
29                     "match": [
30                       "a.realm",
31                       "*.a.realm"
32                     ]
33                   }
34                 ]
35               }
36             ],
37             "trp_inbound": [
38               { "action": "accept",
39                 "specs": [
40                   { "field": "info_type",
41                     "match": ["route"]}
42                 ]
43               },
44               { "action": "accept",
45                 "specs": [
46                   { "field": "info_type",
47                     "match": ["community"]}
48                 ]
49               }
50             ],
51             "trp_outbound": [
52               { "action": "accept",
53                 "specs": [
54                   { "field": "info_type",
55                     "match": ["invalid value"]}
56                 ]
57               },
58               { "action": "accept",
59                 "specs": [
60                   { "field": "info_type",
61                     "match": ["community"]}
62                 ]
63               }
64             ]
65           }
66         }
67       ]
68     }
69   ]
70 }