Release 1.13.6 Docker Artifact
[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                         "description": "Hard to describe",
170                         "prevent-delete": "NONE"
171                 },
172                 {
173                         "from": "l-interface",
174                         "to": "logical-link",
175                         "label": "usesLogicalLink",
176                         "direction": "OUT",
177                         "multiplicity": "Many2Many",
178                         "contains-other-v": "NONE",
179                         "delete-other-v": "${direction}",
180                         "prevent-delete": "NONE"
181                 },
182                 {
183                         "from": "generic-vnf",
184                         "to": "l-interface",
185                         "label": "hasLInterface",
186                         "direction": "OUT",
187                         "multiplicity": "Many2Many",
188                         "contains-other-v": "${direction}",
189                         "delete-other-v": "NONE",
190                         "prevent-delete": "NONE"
191                 },
192                 {
193                         "from": "test-node1",
194                         "to": "test-node2",
195                         "label": "hasInterface",
196                         "direction": "OUT",
197                         "multiplicity": "ONE2MANY",
198                         "contains-other-v": "NONE",
199                         "delete-other-v": "NONE",
200                         "description": "test",
201                         "prevent-delete": "NONE",
202                         "private": "true"
203                 },
204                 {
205                         "from": "generic-vnf",
206                         "to": "model-ver",
207                         "label": "hasVnf",
208                         "direction": "IN",
209                         "multiplicity": "ONE2MANY",
210                         "contains-other-v": "NONE",
211                         "delete-other-v": "NONE",
212                         "description": "test",
213                         "prevent-delete": "NONE",
214                         "private": "true"
215                 },
216                 {
217                         "from": "type-r",
218                         "to": "type-r",
219                         "label": "l",
220                         "direction": "OUT",
221                         "multiplicity": "ONE2ONE",
222                         "contains-other-v": "NONE",
223                         "delete-other-v": "NONE",
224                         "description": "test",
225                         "prevent-delete": "NONE"
226                 },
227                 {
228                         "from": "type-r",
229                         "to": "type-s",
230                         "label": "m",
231                         "direction": "OUT",
232                         "multiplicity": "ONE2ONE",
233                         "contains-other-v": "NONE",
234                         "delete-other-v": "NONE",
235                         "description": "test",
236                         "prevent-delete": "NONE"
237                 },
238         {
239           "from": "l-interface",
240           "to": "l-interface",
241           "label": "org.onap.relationships.inventory.IsA",
242           "direction": "IN",
243           "multiplicity": "ONE2ONE",
244           "contains-other-v": "NONE",
245           "delete-other-v": "NONE",
246           "SVC-INFRA": "NONE",
247           "prevent-delete": "!${direction}"
248         }
249         ]
250 }