b07e7783b93412c4f2a1d26c7377c616b74d6981
[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                         "prevent-delete": "NONE",
12                         "description": "Hard to describe"
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                         "prevent-delete": "NONE",
23                         "description": "Hard to describe"
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                         "prevent-delete": "NONE",
34                         "description": "Hard to describe"
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                         "prevent-delete": "NONE",
45                         "description": "Hard to describe"
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                         "prevent-delete": "NONE",
56                         "description": "Hard to describe"
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                         "prevent-delete": "NONE",
67                         "description": "Hard to describe"
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                         "prevent-delete": "NONE",
78                         "description": "Hard to describe"
79                 },
80                 {
81                         "from": "test-private-cousin",
82                         "to": "test-child",
83                         "label": "someprivatelabel",
84                         "direction": "OUT",
85                         "multiplicity": "One2Many",
86                         "contains-other-v": "NONE",
87                         "delete-other-v": "${direction}",
88                         "prevent-delete": "NONE",
89                         "description": "Hard to describe"
90                 },
91                 {
92                         "from": "a",
93                         "to": "b",
94                         "label": "c",
95                         "direction": "OUT",
96                         "multiplicity": "One2Many",
97                         "contains-other-v": "NONE",
98                         "delete-other-v": "${direction}",
99                         "prevent-delete": "NONE",
100                         "default": "false",
101                         "description": "Hard to describe"
102                 },
103                 {
104                         "from": "a",
105                         "to": "b",
106                         "label": "d",
107                         "direction": "IN",
108                         "multiplicity": "One2Many",
109                         "contains-other-v": "NONE",
110                         "delete-other-v": "${direction}",
111                         "prevent-delete": "NONE",
112                         "default" : "true",
113                         "description": "Hard to describe"
114                 },
115                                 {
116                         "from": "z",
117                         "to": "y",
118                         "label": "x",
119                         "direction": "OUT",
120                         "multiplicity": "One2Many",
121                         "contains-other-v": "NONE",
122                         "delete-other-v": "${direction}",
123                         "prevent-delete": "NONE",
124                         "description": "Hard to describe"
125                 },
126                 {
127                         "from": "y",
128                         "to": "z",
129                         "label": "w",
130                         "direction": "IN",
131                         "multiplicity": "One2Many",
132                         "contains-other-v": "NONE",
133                         "delete-other-v": "${direction}",
134                         "prevent-delete": "NONE",
135                         "default" : "true",
136                         "description": "Hard to describe"
137                 },
138                 {
139                         "from": "generic-vnf",
140                         "to": "vnfc",
141                         "label": "uses",
142                         "direction": "OUT",
143                         "multiplicity": "ONE2MANY",
144                         "contains-other-v": "NONE",
145                         "delete-other-v": "${direction}",
146                         "prevent-delete": "NONE",
147                         "default": "true",
148                         "description": "Hard to describe"
149                 },
150                 {
151                         "from": "generic-vnf",
152                         "to": "vnfc",
153                         "label": "re-uses",
154                         "direction": "OUT",
155                         "multiplicity": "ONE2MANY",
156                         "contains-other-v": "NONE",
157                         "delete-other-v": "${direction}",
158                         "prevent-delete": "NONE",
159                         "description": "Hard to describe"
160                 },
161                 {
162                         "from": "generic-vnf",
163                         "to": "vnfc",
164                         "label": "over-uses",
165                         "direction": "OUT",
166                         "multiplicity": "ONE2MANY",
167                         "contains-other-v": "NONE",
168                         "delete-other-v": "${direction}",
169                         "prevent-delete": "NONE",
170                         "description": "Hard to describe",
171                         "prevent-delete": "NONE"
172                 },
173                 {
174                         "from": "l-interface",
175                         "to": "logical-link",
176                         "label": "usesLogicalLink",
177                         "direction": "OUT",
178                         "multiplicity": "Many2Many",
179                         "contains-other-v": "NONE",
180                         "delete-other-v": "${direction}",
181                         "prevent-delete": "NONE"
182                 },
183                 {
184                         "from": "generic-vnf",
185                         "to": "l-interface",
186                         "label": "hasLInterface",
187                         "direction": "OUT",
188                         "multiplicity": "Many2Many",
189                         "contains-other-v": "${direction}",
190                         "delete-other-v": "NONE",
191                         "prevent-delete": "NONE"
192                 },
193                 {
194                         "from": "test-node1",
195                         "to": "test-node2",
196                         "label": "hasInterface",
197                         "direction": "OUT",
198                         "multiplicity": "ONE2MANY",
199                         "contains-other-v": "NONE",
200                         "delete-other-v": "NONE",
201                         "description": "test",
202                         "prevent-delete": "NONE",
203                         "private": "true"
204                 },
205                 {
206                         "from": "generic-vnf",
207                         "to": "model-ver",
208                         "label": "hasVnf",
209                         "direction": "IN",
210                         "multiplicity": "ONE2MANY",
211                         "contains-other-v": "NONE",
212                         "delete-other-v": "NONE",
213                         "description": "test",
214                         "prevent-delete": "NONE",
215                         "private": "true"
216                 },
217                 {
218                         "from": "type-r",
219                         "to": "type-r",
220                         "label": "l",
221                         "direction": "OUT",
222                         "multiplicity": "ONE2ONE",
223                         "contains-other-v": "NONE",
224                         "delete-other-v": "NONE",
225                         "description": "test",
226                         "prevent-delete": "NONE"
227                 },
228                 {
229                         "from": "type-r",
230                         "to": "type-s",
231                         "label": "m",
232                         "direction": "OUT",
233                         "multiplicity": "ONE2ONE",
234                         "contains-other-v": "NONE",
235                         "delete-other-v": "NONE",
236                         "description": "test",
237                         "prevent-delete": "NONE"
238                 },
239         {
240           "from": "l-interface",
241           "to": "l-interface",
242           "label": "org.onap.relationships.inventory.IsA",
243           "direction": "IN",
244           "multiplicity": "ONE2ONE",
245           "contains-other-v": "NONE",
246           "delete-other-v": "NONE",
247           "SVC-INFRA": "NONE",
248           "prevent-delete": "!${direction}"
249         }
250         ]
251 }