Integrate aai-schema-ingest library into aai-core
[aai/aai-common.git] / aai-core / src / test / resources / dbedgerules / DbEdgeRules_test.json
index 9888ed7..b07e778 100644 (file)
@@ -8,7 +8,6 @@
                        "multiplicity": "One2Many",
                        "contains-other-v": "NONE",
                        "delete-other-v": "${direction}",
-                       "SVC-INFRA": "NONE",
                        "prevent-delete": "NONE",
                        "description": "Hard to describe"
                },
@@ -20,7 +19,6 @@
                        "multiplicity": "One2Many",
                        "contains-other-v": "NONE",
                        "delete-other-v": "${direction}",
-                       "SVC-INFRA": "NONE",
                        "prevent-delete": "NONE",
                        "description": "Hard to describe"
                },
@@ -32,7 +30,6 @@
                        "multiplicity": "One2Many",
                        "contains-other-v": "${direction}",
                        "delete-other-v": "${direction}",
-                       "SVC-INFRA": "NONE",
                        "prevent-delete": "NONE",
                        "description": "Hard to describe"
                },
@@ -44,7 +41,6 @@
                        "multiplicity": "One2Many",
                        "contains-other-v": "!${direction}",
                        "delete-other-v": "${direction}",
-                       "SVC-INFRA": "NONE",
                        "prevent-delete": "NONE",
                        "description": "Hard to describe"
                },
@@ -56,7 +52,6 @@
                        "multiplicity": "One2Many",
                        "contains-other-v": "${direction}",
                        "delete-other-v": "NONE",
-                       "SVC-INFRA": "NONE",
                        "prevent-delete": "NONE",
                        "description": "Hard to describe"
                },
@@ -68,7 +63,6 @@
                        "multiplicity": "One2Many",
                        "contains-other-v": "NONE",
                        "delete-other-v": "${direction}",
-                       "SVC-INFRA": "NONE",
                        "prevent-delete": "NONE",
                        "description": "Hard to describe"
                },
                        "multiplicity": "One2Many",
                        "contains-other-v": "${direction}",
                        "delete-other-v": "${direction}",
-                       "SVC-INFRA": "NONE",
+                       "prevent-delete": "NONE",
+                       "description": "Hard to describe"
+               },
+               {
+                       "from": "test-private-cousin",
+                       "to": "test-child",
+                       "label": "someprivatelabel",
+                       "direction": "OUT",
+                       "multiplicity": "One2Many",
+                       "contains-other-v": "NONE",
+                       "delete-other-v": "${direction}",
                        "prevent-delete": "NONE",
                        "description": "Hard to describe"
                },
@@ -92,7 +96,6 @@
                        "multiplicity": "One2Many",
                        "contains-other-v": "NONE",
                        "delete-other-v": "${direction}",
-                       "SVC-INFRA": "NONE",
                        "prevent-delete": "NONE",
                        "default": "false",
                        "description": "Hard to describe"
                        "multiplicity": "One2Many",
                        "contains-other-v": "NONE",
                        "delete-other-v": "${direction}",
-                       "SVC-INFRA": "NONE",
                        "prevent-delete": "NONE",
                        "default" : "true",
                        "description": "Hard to describe"
                        "multiplicity": "One2Many",
                        "contains-other-v": "NONE",
                        "delete-other-v": "${direction}",
-                       "SVC-INFRA": "NONE",
                        "prevent-delete": "NONE",
                        "description": "Hard to describe"
                },
                        "multiplicity": "One2Many",
                        "contains-other-v": "NONE",
                        "delete-other-v": "${direction}",
-                       "SVC-INFRA": "NONE",
                        "prevent-delete": "NONE",
                        "default" : "true",
                        "description": "Hard to describe"
                        "multiplicity": "ONE2MANY",
                        "contains-other-v": "NONE",
                        "delete-other-v": "${direction}",
-                       "SVC-INFRA": "${direction}",
                        "prevent-delete": "NONE",
                        "default": "true",
                        "description": "Hard to describe"
                        "multiplicity": "ONE2MANY",
                        "contains-other-v": "NONE",
                        "delete-other-v": "${direction}",
-                       "SVC-INFRA": "${direction}",
                        "prevent-delete": "NONE",
                        "description": "Hard to describe"
                },
                        "multiplicity": "ONE2MANY",
                        "contains-other-v": "NONE",
                        "delete-other-v": "${direction}",
-                       "SVC-INFRA": "${direction}",
                        "prevent-delete": "NONE",
                        "description": "Hard to describe",
                        "prevent-delete": "NONE"
                        "multiplicity": "Many2Many",
                        "contains-other-v": "NONE",
                        "delete-other-v": "${direction}",
-                       "SVC-INFRA": "${direction}",
                        "prevent-delete": "NONE"
                },
                {
                        "multiplicity": "Many2Many",
                        "contains-other-v": "${direction}",
                        "delete-other-v": "NONE",
-                       "SVC-INFRA": "${direction}",
                        "prevent-delete": "NONE"
-               }
+               },
+               {
+                       "from": "test-node1",
+                       "to": "test-node2",
+                       "label": "hasInterface",
+                       "direction": "OUT",
+                       "multiplicity": "ONE2MANY",
+                       "contains-other-v": "NONE",
+                       "delete-other-v": "NONE",
+                       "description": "test",
+                       "prevent-delete": "NONE",
+                       "private": "true"
+               },
+               {
+                       "from": "generic-vnf",
+                       "to": "model-ver",
+                       "label": "hasVnf",
+                       "direction": "IN",
+                       "multiplicity": "ONE2MANY",
+                       "contains-other-v": "NONE",
+                       "delete-other-v": "NONE",
+                       "description": "test",
+                       "prevent-delete": "NONE",
+                       "private": "true"
+               },
+               {
+                       "from": "type-r",
+                       "to": "type-r",
+                       "label": "l",
+                       "direction": "OUT",
+                       "multiplicity": "ONE2ONE",
+                       "contains-other-v": "NONE",
+                       "delete-other-v": "NONE",
+                       "description": "test",
+                       "prevent-delete": "NONE"
+               },
+               {
+                       "from": "type-r",
+                       "to": "type-s",
+                       "label": "m",
+                       "direction": "OUT",
+                       "multiplicity": "ONE2ONE",
+                       "contains-other-v": "NONE",
+                       "delete-other-v": "NONE",
+                       "description": "test",
+                       "prevent-delete": "NONE"
+               },
+       {
+         "from": "l-interface",
+         "to": "l-interface",
+         "label": "org.onap.relationships.inventory.IsA",
+         "direction": "IN",
+         "multiplicity": "ONE2ONE",
+         "contains-other-v": "NONE",
+         "delete-other-v": "NONE",
+         "SVC-INFRA": "NONE",
+         "prevent-delete": "!${direction}"
+       }
        ]
 }
\ No newline at end of file