Added support for Multiple Edges
[aai/aai-common.git] / aai-core / src / test / resources / dbedgerules / DbEdgeRules_test.json
1 {
2         "rules": [
3                 {
4                         "from": "foo",
5                         "to": "bar",
6                         "label": "eats",
7                         "direction": "OUT",
8                         "multiplicity": "One2Many",
9                         "contains-other-v": "NONE",
10                         "delete-other-v": "${direction}",
11                         "SVC-INFRA": "NONE",
12                         "prevent-delete": "NONE"
13                 },
14                 {
15                         "from": "foo",
16                         "to": "bar",
17                         "label": "eatz",
18                         "direction": "IN",
19                         "multiplicity": "One2Many",
20                         "contains-other-v": "NONE",
21                         "delete-other-v": "${direction}",
22                         "SVC-INFRA": "NONE",
23                         "prevent-delete": "NONE"
24                 },
25                 {
26                         "from": "foo",
27                         "to": "baz",
28                         "label": "isVeryHappyAbout",
29                         "direction": "OUT",
30                         "multiplicity": "One2Many",
31                         "contains-other-v": "${direction}",
32                         "delete-other-v": "${direction}",
33                         "SVC-INFRA": "NONE",
34                         "prevent-delete": "NONE"
35                 },
36                 {
37                         "from": "quux",
38                         "to": "foo",
39                         "label": "dancesWith",
40                         "direction": "IN",
41                         "multiplicity": "One2Many",
42                         "contains-other-v": "!${direction}",
43                         "delete-other-v": "${direction}",
44                         "SVC-INFRA": "NONE",
45                         "prevent-delete": "NONE"
46                 },
47                 {
48                         "from": "test-parent",
49                         "to": "test-child",
50                         "label": "has",
51                         "direction": "OUT",
52                         "multiplicity": "One2Many",
53                         "contains-other-v": "${direction}",
54                         "delete-other-v": "NONE",
55                         "SVC-INFRA": "NONE",
56                         "prevent-delete": "NONE"
57                 },
58                 {
59                         "from": "test-cousin",
60                         "to": "test-child",
61                         "label": "annoys",
62                         "direction": "OUT",
63                         "multiplicity": "One2Many",
64                         "contains-other-v": "NONE",
65                         "delete-other-v": "${direction}",
66                         "SVC-INFRA": "NONE",
67                         "prevent-delete": "NONE"
68                 },
69                 {
70                         "from": "test-child",
71                         "to": "test-grandchild",
72                         "label": "has",
73                         "direction": "OUT",
74                         "multiplicity": "One2Many",
75                         "contains-other-v": "${direction}",
76                         "delete-other-v": "${direction}",
77                         "SVC-INFRA": "NONE",
78                         "prevent-delete": "NONE"
79                 },              
80                 {
81                         "from": "a",
82                         "to": "b",
83                         "label": "c",
84                         "direction": "OUT",
85                         "multiplicity": "One2Many",
86                         "contains-other-v": "NONE",
87                         "delete-other-v": "${direction}",
88                         "SVC-INFRA": "NONE",
89                         "prevent-delete": "NONE",
90                         "default": "false"
91                 },
92                 {
93                         "from": "a",
94                         "to": "b",
95                         "label": "d",
96                         "direction": "IN",
97                         "multiplicity": "One2Many",
98                         "contains-other-v": "NONE",
99                         "delete-other-v": "${direction}",
100                         "SVC-INFRA": "NONE",
101                         "prevent-delete": "NONE",
102                         "default" : "true"
103                 },
104                                 {
105                         "from": "z",
106                         "to": "y",
107                         "label": "x",
108                         "direction": "OUT",
109                         "multiplicity": "One2Many",
110                         "contains-other-v": "NONE",
111                         "delete-other-v": "${direction}",
112                         "SVC-INFRA": "NONE",
113                         "prevent-delete": "NONE"
114                 },
115                 {
116                         "from": "y",
117                         "to": "z",
118                         "label": "w",
119                         "direction": "IN",
120                         "multiplicity": "One2Many",
121                         "contains-other-v": "NONE",
122                         "delete-other-v": "${direction}",
123                         "SVC-INFRA": "NONE",
124                         "prevent-delete": "NONE",
125                         "default" : "true"
126                 },
127                 {
128                         "from": "generic-vnf",
129                         "to": "vnfc",
130                         "label": "uses",
131                         "direction": "OUT",
132                         "multiplicity": "ONE2MANY",
133                         "contains-other-v": "NONE",
134                         "delete-other-v": "${direction}",
135                         "SVC-INFRA": "${direction}",
136                         "prevent-delete": "NONE",
137                         "default": "true"
138                 },
139                 {
140                         "from": "generic-vnf",
141                         "to": "vnfc",
142                         "label": "re-uses",
143                         "direction": "OUT",
144                         "multiplicity": "ONE2MANY",
145                         "contains-other-v": "NONE",
146                         "delete-other-v": "${direction}",
147                         "SVC-INFRA": "${direction}",
148                         "prevent-delete": "NONE"
149                 },
150                 {
151                         "from": "generic-vnf",
152                         "to": "vnfc",
153                         "label": "over-uses",
154                         "direction": "OUT",
155                         "multiplicity": "ONE2MANY",
156                         "contains-other-v": "NONE",
157                         "delete-other-v": "${direction}",
158                         "SVC-INFRA": "${direction}",
159                         "prevent-delete": "NONE"
160                 }
161         ]
162 }