Fixes for 11-17 tests
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_get-vnf-api-parent-instance.json
index 8de156f..e448157 100644 (file)
@@ -1,208 +1 @@
-[
-  {
-    "id":"ca9867f0.bee9b8",
-    "type":"for",
-    "name":"for tmp.vnfs",
-    "xml":"<for index='vnfidx' start='0' end='`$tmp.vnfdata.vnfs.vnf-list_length`' >\n\n\n",
-    "comments":"",
-    "outputs":1,
-    "x":490.9999313354492,
-    "y":347.3333616256714,
-    "z":"113743e5.c5805c",
-    "wires":[
-      [
-        "c8f3625d.8c17"
-      ]
-    ]
-  },
-  {
-    "id":"5f5355c8.d5e21c",
-    "type":"dgstart",
-    "name":"DGSTART",
-    "outputs":1,
-    "x":121.66665649414062,
-    "y":80,
-    "z":"113743e5.c5805c",
-    "wires":[
-      [
-        "72be46c0.39b648"
-      ]
-    ]
-  },
-  {
-    "id":"72be46c0.39b648",
-    "type":"service-logic",
-    "name":"GENERIC-RESOURCE-API ${project.version}",
-    "module":"GENERIC-RESOURCE-API",
-    "version":"${project.version}",
-    "comments":"",
-    "xml":"<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
-    "outputs":1,
-    "x":272.90473556518555,
-    "y":147.95239067077637,
-    "z":"113743e5.c5805c",
-    "wires":[
-      [
-        "f67f0e3d.eb57b"
-      ]
-    ]
-  },
-  {
-    "id":"f67f0e3d.eb57b",
-    "type":"method",
-    "name":"get-vnf-api-parent-instance",
-    "xml":"<method rpc='get-vnf-api-parent-instance' mode='sync'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":326.8215026855469,
-    "y":207.19044494628906,
-    "z":"113743e5.c5805c",
-    "wires":[
-      [
-        "26d836cd.d8f48a"
-      ]
-    ]
-  },
-  {
-    "id":"26d836cd.d8f48a",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "comments":"",
-    "outputs":1,
-    "x":227.14284896850586,
-    "y":326.5237879753113,
-    "z":"113743e5.c5805c",
-    "wires":[
-      [
-        "c3cef9b4.0af4e8",
-        "ca9867f0.bee9b8"
-      ]
-    ]
-  },
-  {
-    "id":"c3cef9b4.0af4e8",
-    "type":"get-resource",
-    "name":"get-resource vnf-api vnfs",
-    "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='vnfs' pfx='tmp.vnfdata' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":535.9999847412109,
-    "y":286.9999952316284,
-    "z":"113743e5.c5805c",
-    "wires":[
-      [
-
-      ]
-    ]
-  },
-  {
-    "id":"c8f3625d.8c17",
-    "type":"switchNode",
-    "name":"switch parent-service-instance-id matches",
-    "xml":"<switch test='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.service-information.service-instance-id == $tmp.search.parent-service-instance-id`'>\n\n\n",
-    "comments":"",
-    "outputs":1,
-    "x":763.9999847412109,
-    "y":349.6666841506958,
-    "z":"113743e5.c5805c",
-    "wires":[
-      [
-        "929c05d0.10e968"
-      ]
-    ]
-  },
-  {
-    "id":"8e1b44d6.600948",
-    "type":"get-resource",
-    "name":"get-resource parent service instance",
-    "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='vnfs/vnf-list/$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.vnf-id/service-data/' pfx='parent-service-instance' >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t",
-    "comments":"",
-    "outputs":1,
-    "x":1265.3333053588867,
-    "y":324.6666851043701,
-    "z":"113743e5.c5805c",
-    "wires":[
-      [
-        "2e1a8d2c.7d2b72"
-      ]
-    ]
-  },
-  {
-    "id":"2e1a8d2c.7d2b72",
-    "type":"failure",
-    "name":"failure",
-    "xml":"<outcome value='failure'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1490.666654586792,
-    "y":324.33336639404297,
-    "z":"113743e5.c5805c",
-    "wires":[
-      [
-        "b633d9b1.a67d28"
-      ]
-    ]
-  },
-  {
-    "id":"929c05d0.10e968",
-    "type":"success",
-    "name":"true",
-    "xml":"<outcome value='true'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1003.0000076293945,
-    "y":240.66669464111328,
-    "z":"113743e5.c5805c",
-    "wires":[
-      [
-        "40f0e6cc.970498"
-      ]
-    ]
-  },
-  {
-    "id":"40f0e6cc.970498",
-    "type":"block",
-    "name":"block",
-    "xml":"<block>\n",
-    "atomic":"false",
-    "comments":"",
-    "outputs":1,
-    "x":1036.0000534057617,
-    "y":327.6667003631592,
-    "z":"113743e5.c5805c",
-    "wires":[
-      [
-        "5f33dc50.216f34",
-        "8e1b44d6.600948"
-      ]
-    ]
-  },
-  {
-    "id":"5f33dc50.216f34",
-    "type":"set",
-    "name":"set  tmp.old-service-data.vnf-id",
-    "xml":"<set>\n<parameter name='tmp.old-service-data.vnf-id' value='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.vnf-id`' />\n",
-    "comments":"",
-    "x":1255.0000228881836,
-    "y":231.00003814697266,
-    "z":"113743e5.c5805c",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"b633d9b1.a67d28",
-    "type":"returnFailure",
-    "name":"return failure - parent service instance not found",
-    "xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" \n    value=\"`'No entry found for parent service instance id ' + $tmp.ar.parent-service-instance-id + '.'`\" />\n",
-    "comments":"",
-    "x":1759.6666259765625,
-    "y":316.6666564941406,
-    "z":"113743e5.c5805c",
-    "wires":[
-
-    ]
-  }
-]
\ No newline at end of file
+[{"id":"b8bfabbe.77248","type":"for","name":"for tmp.vnfs","xml":"<for index='vnfidx' start='0' end='`$tmp.vnfdata.vnfs.vnf-list_length`' >\n\n\n","comments":"","outputs":1,"x":527.833251953125,"y":363.3333740234375,"z":"ff9767f5.010a38","wires":[["4776ee38.4ee138"]]},{"id":"bc101beb.ef5ea","type":"dgstart","name":"DGSTART","outputs":1,"x":182.5,"y":96,"z":"ff9767f5.010a38","wires":[["a51bb8c8.d3e1e8"]]},{"id":"a51bb8c8.d3e1e8","type":"service-logic","name":"GENERIC-RESOURCE-API 1.2.0-SNAPSHOT-111701","module":"GENERIC-RESOURCE-API","version":"${project.version}","comments":"","xml":"<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>","outputs":1,"x":333.7380790710449,"y":163.95239067077637,"z":"ff9767f5.010a38","wires":[["bc6b4b85.047838"]]},{"id":"bc6b4b85.047838","type":"method","name":"get-vnf-api-parent-instance","xml":"<method rpc='get-vnf-api-parent-instance' mode='sync'>\n","comments":"","outputs":1,"x":387.65484619140625,"y":223.19044494628906,"z":"ff9767f5.010a38","wires":[["3935ebce.d82b5c"]]},{"id":"3935ebce.d82b5c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":287.97619247436523,"y":342.5237879753113,"z":"ff9767f5.010a38","wires":[["425453de.b10ae4","b8bfabbe.77248"]]},{"id":"425453de.b10ae4","type":"get-resource","name":"get-resource vnf-api vnfs","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='vnfs' pfx='tmp.vnfdata' >\n","comments":"","outputs":1,"x":575.8333129882812,"y":301,"z":"ff9767f5.010a38","wires":[[]]},{"id":"204813dd.64581c","type":"switchNode","name":"switch parent-service-instance-id matches","xml":"<switch test='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.service-information.service-instance-id == $tmp.search.parent-service-instance-id`'>\n\n\n","comments":"","outputs":1,"x":864.8333129882812,"y":448.66668701171875,"z":"ff9767f5.010a38","wires":[["bd5f161e.f84a8"]]},{"id":"ec84cb14.e8d89","type":"get-resource","name":"get-resource parent service instance","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='vnfs/vnf-list/$tmp.vnfdata.vnfs.vnf-list[$vnfidx].vnf-id/service-data/' pfx='parent-service-instance' >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t","comments":"","outputs":1,"x":1374.166648864746,"y":616.6666851043701,"z":"ff9767f5.010a38","wires":[["be638d5d.95cb48"]]},{"id":"be638d5d.95cb48","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1599.4999980926514,"y":616.333366394043,"z":"ff9767f5.010a38","wires":[["4aba0b85.648554"]]},{"id":"bd5f161e.f84a8","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1111.833351135254,"y":532.6666946411133,"z":"ff9767f5.010a38","wires":[["ceced407.7170f8"]]},{"id":"ceced407.7170f8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1144.833396911621,"y":619.6667003631592,"z":"ff9767f5.010a38","wires":[["e54aa0de.05e748","ec84cb14.e8d89","ff23046.a29a578","383fa1b1.09842e"]]},{"id":"e54aa0de.05e748","type":"set","name":"set  tmp.old-service-data.vnf-id","xml":"<set>\n<parameter name='tmp.old-service-data.vnf-id' value='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].vnf-id`' />\n","comments":"","x":1359.8333740234375,"y":512.0000305175781,"z":"ff9767f5.010a38","wires":[]},{"id":"4aba0b85.648554","type":"returnFailure","name":"return failure - parent service instance not found","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" \n    value=\"`'No entry found for parent service instance id ' + $tmp.ar.parent-service-instance-id + '.'`\" />\n","comments":"","x":1868.4999694824219,"y":608.6666564941406,"z":"ff9767f5.010a38","wires":[]},{"id":"6ff4efde.253f28","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1356,"y":460,"z":"ff9767f5.010a38","wires":[]},{"id":"46071db9.aff5dc","type":"execute","name":"execute printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/get-vnf-parent.log' />\n\n","comments":"","outputs":1,"x":1336,"y":694,"z":"ff9767f5.010a38","wires":[[]]},{"id":"4776ee38.4ee138","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":632,"y":411,"z":"ff9767f5.010a38","wires":[["204813dd.64581c","3e55274e.58fc2"]]},{"id":"ff23046.a29a578","type":"set","name":"set debug","xml":"<set>\n<parameter name='tmp.debug.service-instance.id1' value='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.service-information.service-instance-id`' />\n<parameter name='tmp.debug.service-instance.id2' value='`$tmp.search.parent-service-instance-id`' />\n<parameter name='tmp.debug.service-instance.id3.vnf-id' value='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].vnf-id`' />\n\n\n\n","comments":"","x":1315,"y":411,"z":"ff9767f5.010a38","wires":[]},{"id":"3e55274e.58fc2","type":"set","name":"set tmp.search.parent-service-instance-id","xml":"<set>\n<parameter name='tmp.debug.tmp.search.parent-service-instance-id' value='`$tmp.search.parent-service-instance-id`' />\n","comments":"","x":860,"y":390,"z":"ff9767f5.010a38","wires":[]},{"id":"383fa1b1.09842e","type":"break","name":"break","xml":"<break>","comments":"","x":1299,"y":769,"z":"ff9767f5.010a38","wires":[]}]