summaryrefslogtreecommitdiffstats
path: root/aai-schema-gen/src/test/resources/dbedgerules/DbEdgeRules_test.json
diff options
context:
space:
mode:
Diffstat (limited to 'aai-schema-gen/src/test/resources/dbedgerules/DbEdgeRules_test.json')
-rw-r--r--aai-schema-gen/src/test/resources/dbedgerules/DbEdgeRules_test.json251
1 files changed, 251 insertions, 0 deletions
diff --git a/aai-schema-gen/src/test/resources/dbedgerules/DbEdgeRules_test.json b/aai-schema-gen/src/test/resources/dbedgerules/DbEdgeRules_test.json
new file mode 100644
index 0000000..b07e778
--- /dev/null
+++ b/aai-schema-gen/src/test/resources/dbedgerules/DbEdgeRules_test.json
@@ -0,0 +1,251 @@
+{
+ "rules": [
+ {
+ "from": "foo",
+ "to": "bar",
+ "label": "eats",
+ "direction": "OUT",
+ "multiplicity": "One2Many",
+ "contains-other-v": "NONE",
+ "delete-other-v": "${direction}",
+ "prevent-delete": "NONE",
+ "description": "Hard to describe"
+ },
+ {
+ "from": "foo",
+ "to": "bar",
+ "label": "eatz",
+ "direction": "IN",
+ "multiplicity": "One2Many",
+ "contains-other-v": "NONE",
+ "delete-other-v": "${direction}",
+ "prevent-delete": "NONE",
+ "description": "Hard to describe"
+ },
+ {
+ "from": "foo",
+ "to": "baz",
+ "label": "isVeryHappyAbout",
+ "direction": "OUT",
+ "multiplicity": "One2Many",
+ "contains-other-v": "${direction}",
+ "delete-other-v": "${direction}",
+ "prevent-delete": "NONE",
+ "description": "Hard to describe"
+ },
+ {
+ "from": "quux",
+ "to": "foo",
+ "label": "dancesWith",
+ "direction": "IN",
+ "multiplicity": "One2Many",
+ "contains-other-v": "!${direction}",
+ "delete-other-v": "${direction}",
+ "prevent-delete": "NONE",
+ "description": "Hard to describe"
+ },
+ {
+ "from": "test-parent",
+ "to": "test-child",
+ "label": "has",
+ "direction": "OUT",
+ "multiplicity": "One2Many",
+ "contains-other-v": "${direction}",
+ "delete-other-v": "NONE",
+ "prevent-delete": "NONE",
+ "description": "Hard to describe"
+ },
+ {
+ "from": "test-cousin",
+ "to": "test-child",
+ "label": "annoys",
+ "direction": "OUT",
+ "multiplicity": "One2Many",
+ "contains-other-v": "NONE",
+ "delete-other-v": "${direction}",
+ "prevent-delete": "NONE",
+ "description": "Hard to describe"
+ },
+ {
+ "from": "test-child",
+ "to": "test-grandchild",
+ "label": "has",
+ "direction": "OUT",
+ "multiplicity": "One2Many",
+ "contains-other-v": "${direction}",
+ "delete-other-v": "${direction}",
+ "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"
+ },
+ {
+ "from": "a",
+ "to": "b",
+ "label": "c",
+ "direction": "OUT",
+ "multiplicity": "One2Many",
+ "contains-other-v": "NONE",
+ "delete-other-v": "${direction}",
+ "prevent-delete": "NONE",
+ "default": "false",
+ "description": "Hard to describe"
+ },
+ {
+ "from": "a",
+ "to": "b",
+ "label": "d",
+ "direction": "IN",
+ "multiplicity": "One2Many",
+ "contains-other-v": "NONE",
+ "delete-other-v": "${direction}",
+ "prevent-delete": "NONE",
+ "default" : "true",
+ "description": "Hard to describe"
+ },
+ {
+ "from": "z",
+ "to": "y",
+ "label": "x",
+ "direction": "OUT",
+ "multiplicity": "One2Many",
+ "contains-other-v": "NONE",
+ "delete-other-v": "${direction}",
+ "prevent-delete": "NONE",
+ "description": "Hard to describe"
+ },
+ {
+ "from": "y",
+ "to": "z",
+ "label": "w",
+ "direction": "IN",
+ "multiplicity": "One2Many",
+ "contains-other-v": "NONE",
+ "delete-other-v": "${direction}",
+ "prevent-delete": "NONE",
+ "default" : "true",
+ "description": "Hard to describe"
+ },
+ {
+ "from": "generic-vnf",
+ "to": "vnfc",
+ "label": "uses",
+ "direction": "OUT",
+ "multiplicity": "ONE2MANY",
+ "contains-other-v": "NONE",
+ "delete-other-v": "${direction}",
+ "prevent-delete": "NONE",
+ "default": "true",
+ "description": "Hard to describe"
+ },
+ {
+ "from": "generic-vnf",
+ "to": "vnfc",
+ "label": "re-uses",
+ "direction": "OUT",
+ "multiplicity": "ONE2MANY",
+ "contains-other-v": "NONE",
+ "delete-other-v": "${direction}",
+ "prevent-delete": "NONE",
+ "description": "Hard to describe"
+ },
+ {
+ "from": "generic-vnf",
+ "to": "vnfc",
+ "label": "over-uses",
+ "direction": "OUT",
+ "multiplicity": "ONE2MANY",
+ "contains-other-v": "NONE",
+ "delete-other-v": "${direction}",
+ "prevent-delete": "NONE",
+ "description": "Hard to describe",
+ "prevent-delete": "NONE"
+ },
+ {
+ "from": "l-interface",
+ "to": "logical-link",
+ "label": "usesLogicalLink",
+ "direction": "OUT",
+ "multiplicity": "Many2Many",
+ "contains-other-v": "NONE",
+ "delete-other-v": "${direction}",
+ "prevent-delete": "NONE"
+ },
+ {
+ "from": "generic-vnf",
+ "to": "l-interface",
+ "label": "hasLInterface",
+ "direction": "OUT",
+ "multiplicity": "Many2Many",
+ "contains-other-v": "${direction}",
+ "delete-other-v": "NONE",
+ "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