contains-other-v no longer implies delete-other-v
[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": "baz",
17                         "label": "isVeryHappyAbout",
18                         "direction": "OUT",
19                         "multiplicity": "One2Many",
20                         "contains-other-v": "${direction}",
21                         "delete-other-v": "${direction}",
22                         "SVC-INFRA": "NONE",
23                         "prevent-delete": "NONE"
24                 },
25                 {
26                         "from": "quux",
27                         "to": "foo",
28                         "label": "dancesWith",
29                         "direction": "IN",
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": "test-parent",
38                         "to": "test-child",
39                         "label": "has",
40                         "direction": "OUT",
41                         "multiplicity": "One2Many",
42                         "contains-other-v": "${direction}",
43                         "delete-other-v": "NONE",
44                         "SVC-INFRA": "NONE",
45                         "prevent-delete": "NONE"
46                 },
47                 {
48                         "from": "test-cousin",
49                         "to": "test-child",
50                         "label": "annoys",
51                         "direction": "OUT",
52                         "multiplicity": "One2Many",
53                         "contains-other-v": "NONE",
54                         "delete-other-v": "${direction}",
55                         "SVC-INFRA": "NONE",
56                         "prevent-delete": "NONE"
57                 },
58                 {
59                         "from": "test-child",
60                         "to": "test-grandchild",
61                         "label": "has",
62                         "direction": "OUT",
63                         "multiplicity": "One2Many",
64                         "contains-other-v": "${direction}",
65                         "delete-other-v": "${direction}",
66                         "SVC-INFRA": "NONE",
67                         "prevent-delete": "NONE"
68                 }
69         ]
70 }