diff options
author | da490c <dave.adams@amdocs.com> | 2018-03-22 00:32:52 -0400 |
---|---|---|
committer | da490c <dave.adams@amdocs.com> | 2018-03-22 09:34:25 -0400 |
commit | ba31685194c77ef140411531299696ae701385d4 (patch) | |
tree | 912f7d5b3378901ccabb8df52b26866d74572f10 /sparkybe-onap-service/src/test/resources/sync/ElasticSearch | |
parent | ef7f255958e541ffaec0fd2a977440dd7b6fd6b8 (diff) |
Convert Sparky to Spring-Boot
Issue-ID: AAI-599
Change-Id: If474dd02794f442fdddcd90f62fb75e0d6b907e7
Signed-off-by: da490c <dave.adams@amdocs.com>
Diffstat (limited to 'sparkybe-onap-service/src/test/resources/sync/ElasticSearch')
7 files changed, 412 insertions, 0 deletions
diff --git a/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/AfterSync_ElasticSearch_ScrollApi_Successful.json b/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/AfterSync_ElasticSearch_ScrollApi_Successful.json new file mode 100644 index 0000000..014e194 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/AfterSync_ElasticSearch_ScrollApi_Successful.json @@ -0,0 +1,171 @@ +{ + "_scroll_id": "cXVlcnlUaGVuRmV0Y2g7NTs1MzA6T2dvOXI5ekVSWkdTM0JBQ0tnR0Jvdzs1Mjg6T2dvOXI5ekVSWkdTM0JBQ0tnR0Jvdzs1Mjc6T2dvOXI5ekVSWkdTM0JBQ0tnR0Jvdzs1MjY6T2dvOXI5ekVSWkdTM0JBQ0tnR0Jvdzs1Mjk6T2dvOXI5ekVSWkdTM0JBQ0tnR0JvdzswOw==", + "took": 29, + "timed_out": false, + "_shards": { + "total": 5, + "successful": 5, + "failed": 0 + }, + "hits": { + "total": 1345, + "max_score": 1, + "hits": [ + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "7defe67ea13549fcf8163c755db0d8595f32da23022966e3313281474a551742DWH", + "_score": 1, + "_source": { + "entityType": "generic-vnf", + "entityPrimaryKeyValue": "genericvnft2i12bd2", + "link": "/aai/v11/network/generic-vnfs/generic-vnf/genericvnft2i12bd2", + "searchTags": "genericvnft2i12bd2;genericvnft2i12bd2", + "searchTagIDs": "vnf-id;vnf-name", + "lastmodTimestamp": "2018-01-29T03:35:40.413-0500" + } + }, + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "981d7d3e27d91cbf118b01e6b5415ecbe1622a0c6c2afe4e04f91919f37f8fbeDWH", + "_score": 1, + "_source": { + "entityType": "complex", + "entityPrimaryKeyValue": "STUB-609ccabb-7504-3e23-91a4-30d29776e792", + "link": "/aai/v11/cloud-infrastructure/complexes/complex/STUB-609ccabb-7504-3e23-91a4-30d29776e792", + "searchTags": "STUB-609ccabb-7504-3e23-91a4-30d29776e792;Sydney;BennelongPoint; 2000", + "searchTagIDs": "physical-location-id;complex-name;street1;postal-code", + "lastmodTimestamp": "2018-01-25T13:15:57.471-0500" + } + }, + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "89788f6bbcddfe40a5248fdb2c46c380aaea66f61e56c66e00d815163ddf98c4DWH", + "_score": 1, + "_source": { + "entityType": "pnf", + "entityPrimaryKeyValue": "NSG34-ANZBank", + "link": "/aai/v11/network/pnfs/pnf/NSG34-ANZBank", + "searchTags": "NSG34-ANZBank", + "searchTagIDs": "pnf-name", + "lastmodTimestamp": "2018-01-25T13:15:50.890-0500" + } + }, + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "76ec93a5740e6c519dbbe4f20c366bf8114273adc13db228bc3012658ec80e57DWH", + "_score": 1, + "_source": { + "entityType": "service-instance", + "entityPrimaryKeyValue": "84635d51-0183-4078-850b-8eeb1ac88a5a", + "link": "/aai/v11/business/customers/customer/ANZBank/service-subscriptions/service-subscription/SDWAN-CPE/service-instances/service-instance/84635d51-0183-4078-850b-8eeb1ac88a5a", + "searchTags": "84635d51-0183-4078-850b-8eeb1ac88a5a;CPE-PERTH-NSG32", + "searchTagIDs": "service-instance-id;service-instance-name", + "lastmodTimestamp": "2018-01-25T13:15:55.672-0500" + } + }, + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "1ad1fbf279a6f822db790bc1d1143b6c09be33dbcae870b332bcb622b42bb208DWH", + "_score": 1, + "_source": { + "entityType": "service-instance", + "entityPrimaryKeyValue": "69d0ab4c-1ab1-4488-997d-d6f8ae82bfeb", + "link": "/aai/v11/business/customers/customer/AEESDNC/service-subscriptions/service-subscription/SDWAN-DOMAIN/service-instances/service-instance/69d0ab4c-1ab1-4488-997d-d6f8ae82bfeb", + "searchTags": "69d0ab4c-1ab1-4488-997d-d6f8ae82bfeb;Domain-AEESDNC", + "searchTagIDs": "service-instance-id;service-instance-name", + "lastmodTimestamp": "2018-01-25T13:15:54.341-0500" + } + }, + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "11b0c483640efdac72d39859387aa623b2059d8ac35bf5310b3ef0d77c0eaebcDWH", + "_score": 1, + "_source": { + "entityType": "generic-vnf", + "entityPrimaryKeyValue": "genericvnft1i1bd2", + "link": "/aai/v11/network/generic-vnfs/generic-vnf/genericvnft1i1bd2", + "searchTags": "genericvnft1i1bd2;genericvnft1i1bd2", + "searchTagIDs": "vnf-id;vnf-name", + "lastmodTimestamp": "2018-01-29T03:35:28.908-0500" + } + }, + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "44182de194b1b4b6ad8002bf79277cf7be2b3143d2cc4e84c2ce80c46574a550DWH", + "_score": 1, + "_source": { + "entityType": "generic-vnf", + "entityPrimaryKeyValue": "genericvnft3i1be2", + "link": "/aai/v11/network/generic-vnfs/generic-vnf/genericvnft3i1be2", + "searchTags": "genericvnft3i1be2;genericvnft3i1be2", + "searchTagIDs": "vnf-id;vnf-name", + "lastmodTimestamp": "2018-01-29T03:35:47.064-0500" + } + }, + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "ee9e7975cb6db6deb2222802b7cac2dd1ec122341742ce4efb1e34c792712679DWH", + "_score": 1, + "_source": { + "entityType": "customer", + "entityPrimaryKeyValue": "Barclays", + "link": "/aai/v11/business/customers/customer/Barclays", + "searchTags": "Barclays;Barclays", + "searchTagIDs": "global-customer-id;subscriber-name", + "lastmodTimestamp": "2018-01-25T13:16:00.301-0500" + } + }, + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "f05c00191ad4746d4a2e7457e5f378df328cf7edfd4f99cc5ad8688be0185fd2DWH", + "_score": 1, + "_source": { + "entityType": "customer", + "entityPrimaryKeyValue": "AEESDNC", + "link": "/aai/v11/business/customers/customer/AEESDNC", + "searchTags": "AEESDNC;AEESDNC", + "searchTagIDs": "global-customer-id;subscriber-name", + "lastmodTimestamp": "2018-01-25T13:16:00.390-0500" + } + }, + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "96be943f01d1db1fe8a3c6ffd03f79385d99dc8d351a6292980fc1af93da987bDWH", + "_score": 1, + "_source": { + "entityType": "generic-vnf", + "entityPrimaryKeyValue": "aeetest_vnf1_under_fw-si1", + "link": "/aai/v11/network/generic-vnfs/generic-vnf/aeetest_vnf1_under_fw-si1", + "searchTags": "aeetest_vnf1_under_fw-si1;aeetest_vnf1_under_fw-si1", + "searchTagIDs": "vnf-id;vnf-name", + "lastmodTimestamp": "2018-01-29T03:35:51.548-0500" + } + }, + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "96be943f01d1db1fe8a3c6ffd03f79385d99dc8d351a6292980fc1af93da987bDWH2", + "_score": 1, + "_source": { + "entityType": "generic-vnf", + "entityPrimaryKeyValue": "aeetest_vnf1_under_fw-si12", + "link": "/aai/v11/network/generic-vnfs/generic-vnf/aeetest_vnf1_under_fw-si12", + "searchTags": "aeetest_vnf1_under_fw-si1;aeetest_vnf1_under_fw-si12", + "searchTagIDs": "vnf-id;vnf-name", + "lastmodTimestamp": "2018-01-29T03:35:51.548-0502" + } + } + + ] + } +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/BeforeSync_ElasticSearch_ScrollApi_Successful.json b/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/BeforeSync_ElasticSearch_ScrollApi_Successful.json new file mode 100644 index 0000000..38fc297 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/BeforeSync_ElasticSearch_ScrollApi_Successful.json @@ -0,0 +1,156 @@ +{ + "_scroll_id": "cXVlcnlUaGVuRmV0Y2g7NTs1MzA6T2dvOXI5ekVSWkdTM0JBQ0tnR0Jvdzs1Mjg6T2dvOXI5ekVSWkdTM0JBQ0tnR0Jvdzs1Mjc6T2dvOXI5ekVSWkdTM0JBQ0tnR0Jvdzs1MjY6T2dvOXI5ekVSWkdTM0JBQ0tnR0Jvdzs1Mjk6T2dvOXI5ekVSWkdTM0JBQ0tnR0JvdzswOw==", + "took": 29, + "timed_out": false, + "_shards": { + "total": 5, + "successful": 5, + "failed": 0 + }, + "hits": { + "total": 1345, + "max_score": 1, + "hits": [ + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "7defe67ea13549fcf8163c755db0d8595f32da23022966e3313281474a551742", + "_score": 1, + "_source": { + "entityType": "generic-vnf", + "entityPrimaryKeyValue": "genericvnft2i12bd2", + "link": "/aai/v11/network/generic-vnfs/generic-vnf/genericvnft2i12bd2", + "searchTags": "genericvnft2i12bd2;genericvnft2i12bd2", + "searchTagIDs": "vnf-id;vnf-name", + "lastmodTimestamp": "2018-01-29T03:35:40.413-0500" + } + }, + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "981d7d3e27d91cbf118b01e6b5415ecbe1622a0c6c2afe4e04f91919f37f8fbe", + "_score": 1, + "_source": { + "entityType": "complex", + "entityPrimaryKeyValue": "STUB-609ccabb-7504-3e23-91a4-30d29776e792", + "link": "/aai/v11/cloud-infrastructure/complexes/complex/STUB-609ccabb-7504-3e23-91a4-30d29776e792", + "searchTags": "STUB-609ccabb-7504-3e23-91a4-30d29776e792;Sydney;BennelongPoint; 2000", + "searchTagIDs": "physical-location-id;complex-name;street1;postal-code", + "lastmodTimestamp": "2018-01-25T13:15:57.471-0500" + } + }, + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "89788f6bbcddfe40a5248fdb2c46c380aaea66f61e56c66e00d815163ddf98c4", + "_score": 1, + "_source": { + "entityType": "pnf", + "entityPrimaryKeyValue": "NSG34-ANZBank", + "link": "/aai/v11/network/pnfs/pnf/NSG34-ANZBank", + "searchTags": "NSG34-ANZBank", + "searchTagIDs": "pnf-name", + "lastmodTimestamp": "2018-01-25T13:15:50.890-0500" + } + }, + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "76ec93a5740e6c519dbbe4f20c366bf8114273adc13db228bc3012658ec80e57", + "_score": 1, + "_source": { + "entityType": "service-instance", + "entityPrimaryKeyValue": "84635d51-0183-4078-850b-8eeb1ac88a5a", + "link": "/aai/v11/business/customers/customer/ANZBank/service-subscriptions/service-subscription/SDWAN-CPE/service-instances/service-instance/84635d51-0183-4078-850b-8eeb1ac88a5a", + "searchTags": "84635d51-0183-4078-850b-8eeb1ac88a5a;CPE-PERTH-NSG32", + "searchTagIDs": "service-instance-id;service-instance-name", + "lastmodTimestamp": "2018-01-25T13:15:55.672-0500" + } + }, + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "1ad1fbf279a6f822db790bc1d1143b6c09be33dbcae870b332bcb622b42bb208", + "_score": 1, + "_source": { + "entityType": "service-instance", + "entityPrimaryKeyValue": "69d0ab4c-1ab1-4488-997d-d6f8ae82bfeb", + "link": "/aai/v11/business/customers/customer/AEESDNC/service-subscriptions/service-subscription/SDWAN-DOMAIN/service-instances/service-instance/69d0ab4c-1ab1-4488-997d-d6f8ae82bfeb", + "searchTags": "69d0ab4c-1ab1-4488-997d-d6f8ae82bfeb;Domain-AEESDNC", + "searchTagIDs": "service-instance-id;service-instance-name", + "lastmodTimestamp": "2018-01-25T13:15:54.341-0500" + } + }, + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "11b0c483640efdac72d39859387aa623b2059d8ac35bf5310b3ef0d77c0eaebc", + "_score": 1, + "_source": { + "entityType": "generic-vnf", + "entityPrimaryKeyValue": "genericvnft1i1bd2", + "link": "/aai/v11/network/generic-vnfs/generic-vnf/genericvnft1i1bd2", + "searchTags": "genericvnft1i1bd2;genericvnft1i1bd2", + "searchTagIDs": "vnf-id;vnf-name", + "lastmodTimestamp": "2018-01-29T03:35:28.908-0500" + } + }, + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "44182de194b1b4b6ad8002bf79277cf7be2b3143d2cc4e84c2ce80c46574a550", + "_score": 1, + "_source": { + "entityType": "generic-vnf", + "entityPrimaryKeyValue": "genericvnft3i1be2", + "link": "/aai/v11/network/generic-vnfs/generic-vnf/genericvnft3i1be2", + "searchTags": "genericvnft3i1be2;genericvnft3i1be2", + "searchTagIDs": "vnf-id;vnf-name", + "lastmodTimestamp": "2018-01-29T03:35:47.064-0500" + } + }, + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "ee9e7975cb6db6deb2222802b7cac2dd1ec122341742ce4efb1e34c792712679", + "_score": 1, + "_source": { + "entityType": "customer", + "entityPrimaryKeyValue": "Barclays", + "link": "/aai/v11/business/customers/customer/Barclays", + "searchTags": "Barclays;Barclays", + "searchTagIDs": "global-customer-id;subscriber-name", + "lastmodTimestamp": "2018-01-25T13:16:00.301-0500" + } + }, + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "f05c00191ad4746d4a2e7457e5f378df328cf7edfd4f99cc5ad8688be0185fd2", + "_score": 1, + "_source": { + "entityType": "customer", + "entityPrimaryKeyValue": "AEESDNC", + "link": "/aai/v11/business/customers/customer/AEESDNC", + "searchTags": "AEESDNC;AEESDNC", + "searchTagIDs": "global-customer-id;subscriber-name", + "lastmodTimestamp": "2018-01-25T13:16:00.390-0500" + } + }, + { + "_index": "entitysearchindex-localhost", + "_type": "default", + "_id": "96be943f01d1db1fe8a3c6ffd03f79385d99dc8d351a6292980fc1af93da987b", + "_score": 1, + "_source": { + "entityType": "generic-vnf", + "entityPrimaryKeyValue": "aeetest_vnf1_under_fw-si1", + "link": "/aai/v11/network/generic-vnfs/generic-vnf/aeetest_vnf1_under_fw-si1", + "searchTags": "aeetest_vnf1_under_fw-si1;aeetest_vnf1_under_fw-si1", + "searchTagIDs": "vnf-id;vnf-name", + "lastmodTimestamp": "2018-01-29T03:35:51.548-0500" + } + } + ] + } +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/docEntityFromElasticSearch1.json b/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/docEntityFromElasticSearch1.json new file mode 100644 index 0000000..904c729 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/docEntityFromElasticSearch1.json @@ -0,0 +1,17 @@ +{ + "_index" : "aggregate_generic-vnf_index", + "_type" : "default", + "_id" : "a5583fff3d57e0412363a9edfc265fd95374e6e0ef7b7061c7286622da904848", + "_version" : 1, + "found" : true, + "_source" : { + "link" : "/aai/v11/network/generic-vnfs/generic-vnf/genericvnft2i11bd2", + "lastmodTimestamp" : "2018-01-29T03:35:46.859-0500", + "vnf-id" : "genericvnft2i11bd2", + "in-maint" : "false", + "resource-version" : "1508939769479", + "vnf-name" : "genericvnft2i11bd2", + "vnf-type" : "VirtualNetworkFunctionType", + "is-closed-loop-disabled" : "true" + } + }
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/docEntityFromElasticSearch2.json b/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/docEntityFromElasticSearch2.json new file mode 100644 index 0000000..7eb2317 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/docEntityFromElasticSearch2.json @@ -0,0 +1,17 @@ +{ + "_index" : "aggregate_generic-vnf_index", + "_type" : "default", + "_id" : "a5583fff3d57e0412363a9edfc265fd95374e6e0ef7b7061c7286622da9048482", + "_version" : 1, + "found" : true, + "_source" : { + "link" : "/aai/v11/network/generic-vnfs/generic-vnf/genericvnft2i11bd22", + "lastmodTimestamp" : "2018-01-29T03:35:46.859-0500", + "vnf-id" : "genericvnft2i11bd22", + "in-maint" : "false", + "resource-version" : "1508939769479", + "vnf-name" : "genericvnft2i11bd22", + "vnf-type" : "VirtualNetworkFunctionType", + "is-closed-loop-disabled" : "true" + } + }
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/docEntityFromElasticSearch3.json b/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/docEntityFromElasticSearch3.json new file mode 100644 index 0000000..6332610 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/docEntityFromElasticSearch3.json @@ -0,0 +1,17 @@ +{ + "_index" : "aggregate_generic-vnf_index", + "_type" : "default", + "_id" : "a5583fff3d57e0412363a9edfc265fd95374e6e0ef7b7061c7286622da9048483", + "_version" : 1, + "found" : true, + "_source" : { + "link" : "/aai/v11/network/generic-vnfs/generic-vnf/genericvnft2i11bd3", + "lastmodTimestamp" : "2018-01-29T03:35:46.859-0500", + "vnf-id" : "genericvnft2i11bd3", + "in-maint" : "false", + "resource-version" : "1508939769479", + "vnf-name" : "genericvnft2i11bd3", + "vnf-type" : "VirtualNetworkFunctionType", + "is-closed-loop-disabled" : "true" + } + }
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/docEntityFromElasticSearch4.json b/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/docEntityFromElasticSearch4.json new file mode 100644 index 0000000..71298e9 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/docEntityFromElasticSearch4.json @@ -0,0 +1,17 @@ +{ + "_index" : "aggregate_generic-vnf_index", + "_type" : "default", + "_id" : "a5583fff3d57e0412363a9edfc265fd95374e6e0ef7b7061c7286622da9048484", + "_version" : 1, + "found" : true, + "_source" : { + "link" : "/aai/v11/network/generic-vnfs/generic-vnf/genericvnft2i11bd4", + "lastmodTimestamp" : "2018-01-29T03:35:46.859-0500", + "vnf-id" : "genericvnft2i11bd4", + "in-maint" : "false", + "resource-version" : "1508939769479", + "vnf-name" : "genericvnft2i11bd4", + "vnf-type" : "VirtualNetworkFunctionType", + "is-closed-loop-disabled" : "true" + } +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/docEntityFromElasticSearch5.json b/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/docEntityFromElasticSearch5.json new file mode 100644 index 0000000..08d8cdd --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/ElasticSearch/docEntityFromElasticSearch5.json @@ -0,0 +1,17 @@ +{ + "_index" : "aggregate_generic-vnf_index", + "_type" : "default", + "_id" : "a5583fff3d57e0412363a9edfc265fd95374e6e0ef7b7061c7286622da904848", + "_version" : 1, + "found" : true, + "_source" : { + "link" : "/aai/v11/network/generic-vnfs/generic-vnf/genericvnft2i11bd5", + "lastmodTimestamp" : "2018-01-29T03:35:46.859-0500", + "vnf-id" : "genericvnft2i11bd5", + "in-maint" : "false", + "resource-version" : "1508939769479", + "vnf-name" : "genericvnft2i11bd5", + "vnf-type" : "VirtualNetworkFunctionType", + "is-closed-loop-disabled" : "true" + } + }
\ No newline at end of file |