diff options
Diffstat (limited to 'tutorials/SDNC_AAIService_Adaptor')
4 files changed, 248 insertions, 0 deletions
diff --git a/tutorials/SDNC_AAIService_Adaptor/AAI_READ_TEST_aaiReadTest.json b/tutorials/SDNC_AAIService_Adaptor/AAI_READ_TEST_aaiReadTest.json new file mode 100644 index 00000000..77d78bbd --- /dev/null +++ b/tutorials/SDNC_AAIService_Adaptor/AAI_READ_TEST_aaiReadTest.json @@ -0,0 +1,111 @@ +[ + { + "id": "9004f35e.82aaf", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 151, + "y": 136, + "z": "f80284e0.3417a8", + "wires": [ + [ + "c678a15d.374ce" + ] + ] + }, + { + "id": "c678a15d.374ce", + "type": "service-logic", + "name": "AAI_READ_TEST 1", + "module": "AAI_READ_TEST", + "version": "1", + "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='AAI_READ_TEST' version='1'>", + "outputs": 1, + "x": 376, + "y": 136, + "z": "f80284e0.3417a8", + "wires": [ + [ + "f7fb1b43.16c978" + ] + ] + }, + { + "id": "f7fb1b43.16c978", + "type": "method", + "name": "method", + "xml": "<method rpc='aaiReadTest' mode='sync'>\n", + "comments": "", + "outputs": 1, + "x": 585, + "y": 136, + "z": "f80284e0.3417a8", + "wires": [ + [ + "ca1bb9f7.661a68" + ] + ] + }, + { + "id": "ca1bb9f7.661a68", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 751, + "y": 136, + "z": "f80284e0.3417a8", + "wires": [ + [ + "e873afab.3db4", + "5462eeec.c1708", + "9af02e4e.2771f" + ] + ] + }, + { + "id": "e873afab.3db4", + "type": "record", + "name": "record", + "xml": "<record plugin='org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder'>\n<parameter name=\"logger\" value=\"message-log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n<parameter name=\"field2\" value=\"AAI GET\"/>\n<parameter name=\"field3\" value=\"`$aai-service-id`\"/>", + "comments": "", + "outputs": 1, + "x": 909, + "y": 89, + "z": "f80284e0.3417a8", + "wires": [ + [] + ] + }, + { + "id": "5462eeec.c1708", + "type": "get-resource", + "name": "get-resource", + "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'\nresource=\"service\"\nkey='service.service-id = $aai-service-id'\npfx='aai.data.read' local-only='false'>\n", + "comments": "", + "outputs": 1, + "x": 922, + "y": 136, + "z": "f80284e0.3417a8", + "wires": [ + [] + ] + }, + { + "id": "9af02e4e.2771f", + "type": "record", + "name": "record", + "xml": "<record plugin='org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder'>\n<parameter name=\"logger\" value=\"message-log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n<parameter name=\"field2\" value=\"AAI GET\"/>\n<parameter name=\"field3\" value=\"Service type:\"/>\n<parameter name=\"field4\" value=\"`$aai.data.read.service-description`\"/>", + "comments": "", + "outputs": 1, + "x": 910, + "y": 187, + "z": "f80284e0.3417a8", + "wires": [ + [] + ] + } +]
\ No newline at end of file diff --git a/tutorials/SDNC_AAIService_Adaptor/AAI_WRITE_TEST_aaiWriteTest.json b/tutorials/SDNC_AAIService_Adaptor/AAI_WRITE_TEST_aaiWriteTest.json new file mode 100644 index 00000000..4dda3ffe --- /dev/null +++ b/tutorials/SDNC_AAIService_Adaptor/AAI_WRITE_TEST_aaiWriteTest.json @@ -0,0 +1,96 @@ +[ + { + "id": "87de78ad.d84798", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 132, + "y": 141, + "z": "915a2fa8.a1505", + "wires": [ + [ + "5ae14c99.6f40a4" + ] + ] + }, + { + "id": "5ae14c99.6f40a4", + "type": "service-logic", + "name": "AAI_WRITE_TEST 1", + "module": "AAI_WRITE_TEST", + "version": "1", + "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='AAI_WRITE_TEST' version='1'>", + "outputs": 1, + "x": 352, + "y": 141, + "z": "915a2fa8.a1505", + "wires": [ + [ + "27a5dff6.0d64b" + ] + ] + }, + { + "id": "27a5dff6.0d64b", + "type": "method", + "name": "method", + "xml": "<method rpc='aaiWriteTest' mode='sync'>\n", + "comments": "", + "outputs": 1, + "x": 585, + "y": 141, + "z": "915a2fa8.a1505", + "wires": [ + [ + "72c5f21f.8ff9bc" + ] + ] + }, + { + "id": "72c5f21f.8ff9bc", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 775, + "y": 141, + "z": "915a2fa8.a1505", + "wires": [ + [ + "4f1bf235.a8ceec", + "c70f3ff5.db33" + ] + ] + }, + { + "id": "4f1bf235.a8ceec", + "type": "save", + "name": "save", + "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'\nresource=\"service\" key=\"service-id = $service-id\" force=\"true\" pfx=\"tmp.aai-data.service\">\n<parameter name='service-id' value='`$service-id`' />\n<parameter name='service-description' value='`$service-description`' />", + "comments": "", + "outputs": 1, + "x": 967, + "y": 190, + "z": "915a2fa8.a1505", + "wires": [ + [] + ] + }, + { + "id": "c70f3ff5.db33", + "type": "record", + "name": "record", + "xml": "<record plugin='org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder'>\n<parameter name=\"logger\" value=\"message-log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n<parameter name=\"field2\" value=\"Create service\"/>\n<parameter name=\"field3\" value=\"`$service-id`\"/>\n<parameter name=\"field4\" value=\"`$service-description`\"/>", + "comments": "", + "outputs": 1, + "x": 968, + "y": 82, + "z": "915a2fa8.a1505", + "wires": [ + [] + ] + } +]
\ No newline at end of file diff --git a/tutorials/SDNC_AAIService_Adaptor/aaiReadTest.txt b/tutorials/SDNC_AAIService_Adaptor/aaiReadTest.txt new file mode 100644 index 00000000..76853e7e --- /dev/null +++ b/tutorials/SDNC_AAIService_Adaptor/aaiReadTest.txt @@ -0,0 +1,19 @@ +curl -X POST \ + http://10.12.5.253:30202/restconf/operations/SLI-API:execute-graph \ + -H 'Authorization: Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ==' \ + -H 'Content-Type: application/json' \ + -H 'Postman-Token: 04a25312-5513-4667-a621-934cff51e289' \ + -H 'cache-control: no-cache' \ + -d '{ + "input": { + "module-name": "AAI_READ_TEST", + "rpc-name": "aaiReadTest", + "mode": "sync", + "sli-parameter": [ + { + "parameter-name": "aai-service-id", + "string-value": "792be903-6572-4306-8ae0-be884f7740b4" + } + ] + } +}'
\ No newline at end of file diff --git a/tutorials/SDNC_AAIService_Adaptor/aaiWriteTest.txt b/tutorials/SDNC_AAIService_Adaptor/aaiWriteTest.txt new file mode 100644 index 00000000..5e193c65 --- /dev/null +++ b/tutorials/SDNC_AAIService_Adaptor/aaiWriteTest.txt @@ -0,0 +1,22 @@ +curl -X POST \ + http://10.12.5.253:30202/restconf/operations/SLI-API:execute-graph \ + -H 'Content-Type: application/json' \ + -H 'Postman-Token: 1b684beb-d0f1-427c-85d8-b92b29754220' \ + -H 'cache-control: no-cache' \ + -d '{ + "input": { + "module-name": "AAI_WRITE_TEST", + "rpc-name": "aaiWriteTest", + "mode": "sync", + "sli-parameter": [ + { + "parameter-name": "service-id", + "string-value": "00000000-1111-2222-3333-444444555555" + }, + { + "parameter-name": "service-description", + "string-value": "Test-Service" + } + ] + } +}'
\ No newline at end of file |