Code for testing the filters now works
[trust_router.git] / common / tests / test-filters / filt-inforec-1.json
1 {
2   "local_organizations": [
3     { "organization_name": "inforec filter test 1",
4       "realms": [
5         { "realm": "realm",
6           "gss_names": ["gss"],
7           "filters": {
8             "tid_inbound": [
9               { "action": "accept",
10                 "specs": [
11                   { "field": "rp_realm",
12                     "match": [
13                       "a.realm",
14                       "*.a.realm"
15                     ]
16                   }
17                 ]
18               }
19             ],
20             "trp_inbound": [
21               { "action": "accept",
22                 "specs": [
23                   { "field": "info_type",
24                     "match": ["route"]}
25                 ]
26               },
27               { "action": "accept",
28                 "specs": [
29                   { "field": "info_type",
30                     "match": ["community"]}
31                 ]
32               }
33             ],
34             "trp_outbound": [
35               { "action": "accept",
36                 "specs": [
37                   { "field": "info_type",
38                     "match": ["invalid value"]}
39                 ]
40               },
41               { "action": "accept",
42                 "specs": [
43                   { "field": "info_type",
44                     "match": ["community"]}
45                 ]
46               }
47             ]
48           }
49         }
50       ]
51     }
52   ]
53 }