diff options
Diffstat (limited to 'sparkybe-onap-service/src/test/resources')
75 files changed, 2095 insertions, 0 deletions
diff --git a/sparkybe-onap-service/src/test/resources/bundleconfig/etc/appprops/source-of-truth.properties b/sparkybe-onap-service/src/test/resources/bundleconfig/etc/appprops/source-of-truth.properties new file mode 100644 index 0000000..f08722f --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/bundleconfig/etc/appprops/source-of-truth.properties @@ -0,0 +1,47 @@ +# Source of Truth mappings. This file maps an enitity path to a source of truth identifier +# AAI v7 +/v7/network/ipsec-configurations/ipsec-configuration/requested-vig-address-type=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/requested-encryption-strength=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/requested-dmz-type=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/shared-dmz-network-address=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/requested-customer-name=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/ike-version=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/ikev1-authentication=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/ikev1-encryption=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/ikev1-dh-group=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/ikev1-am-group-id=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/ikev1-am-password=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/ikev1-sa-lifetime=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/ipsec-authentication=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/ipsec-encryption=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/ipsec-sa-lifetime=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/ipsec-pfs=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/xauth-userid=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/xauth-user-password=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/dpd-interval=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/dpd-frequency=service-manager +/v7/network/ipsec-configurations/ipsec-configuration/vig-servers=service-manager + +# AAI v8 +/v8/network/ipsec-configurations/ipsec-configuration/requested-vig-address-type=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/requested-encryption-strength=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/requested-dmz-type=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/shared-dmz-network-address=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/requested-customer-name=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/ike-version=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/ikev1-authentication=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/ikev1-encryption=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/ikev1-dh-group=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/ikev1-am-group-id=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/ikev1-am-password=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/ikev1-sa-lifetime=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/ipsec-authentication=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/ipsec-encryption=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/ipsec-sa-lifetime=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/ipsec-pfs=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/xauth-userid=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/xauth-user-password=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/dpd-interval=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/dpd-frequency=service-manager +/v8/network/ipsec-configurations/ipsec-configuration/vig-servers=service-manager + diff --git a/sparkybe-onap-service/src/test/resources/es_test_scripts/commands.txt b/sparkybe-onap-service/src/test/resources/es_test_scripts/commands.txt new file mode 100644 index 0000000..5d25157 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/es_test_scripts/commands.txt @@ -0,0 +1,3 @@ +commands histoty +curl -XPUT localhost:9200/topographyhistorysearchindex?pretty --data-binary @topoHistoryConfigSettings.json +curl -XPUT localhost:9200/_bulk?pretty --data-binary @topoHistoryBulkLoad.json diff --git a/sparkybe-onap-service/src/test/resources/es_test_scripts/geoEntities.json b/sparkybe-onap-service/src/test/resources/es_test_scripts/geoEntities.json new file mode 100644 index 0000000..9af3978 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/es_test_scripts/geoEntities.json @@ -0,0 +1,6 @@ +{"index":{"_index":"topographicalsearchindex-localhost","_type":"default"} +{"pkey": "complex.TEST1", "entityType": "complex", "longitude": "-82.089844", "latitude": "33.642063", "selfLink": "http://localhost:8443/complex/TEST1"} +{"index":{"_index":"topographicalsearchindex-localhost","_type":"default"} +{"pkey": "complex.TEST2", "entityType": "complex", "longitude": "-114.785156", "latitude": "37.640335", "selfLink": "http://localhost:8443/complex/TEST2"} +{"index":{"_index":"topographicalsearchindex-localhost","_type":"default"} +{"pkey": "complex.TEST3", "entityType": "complex", "longitude": "-97.910156", "latitude": "27.595935", "selfLink": "http://localhost:8443/complex/TEST3"} diff --git a/sparkybe-onap-service/src/test/resources/es_test_scripts/prepareGeoEntityBulkImport.pl b/sparkybe-onap-service/src/test/resources/es_test_scripts/prepareGeoEntityBulkImport.pl new file mode 100644 index 0000000..67ed571 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/es_test_scripts/prepareGeoEntityBulkImport.pl @@ -0,0 +1,41 @@ +#!/usr/bin/perl + +use strict; +use warnings; + +my $filename = $ARGV[0]; +my $outputfile= $ARGV[1]; + +open my $fh_input, '<', $filename or die "Cannot open $filename: $!"; +open my $fh_output, '>', $outputfile or die "Cannot open $outputfile: $!"; + +while ( my $line = <$fh_input> ) { + chomp ($line); + + if ( $line =~ /(.*)(\".*\")(.*)/ ) { + + # we have seen examples of the status field containing quoted comma-delimited + # strings which is messing up parsing of the record data which is supposed to be + # comma-separated at the field level. This little block converts sections of + # this type of data into a single-quoted-string with a semi-colon delimiter instead. + + my $beforeBadStr = $1; + my $badStr = $2; + my $afterBadStr = $3; + + $badStr =~ s/,/;/g; + $badStr =~ s/"/'/g; + + $line = $beforeBadStr . $badStr . $afterBadStr ; + + } + + my @row = split(",", $line); + print $fh_output "{\"index\":{\"_index\":\"topographicalsearchindex-localhost\",\"_type\":\"default\"}\n"; + print $fh_output "{\"pkey\": \"$row[0]\", \"entityType\": \"$row[1]\", \"location\" : {\"lat\": \"$row[3]\", \"lon\": \"$row[2]\"}, \"selfLink\": \"$row[4]\"}\n"; + +} + +close($fh_input); +close($fh_output); + diff --git a/sparkybe-onap-service/src/test/resources/es_test_scripts/sampleGeoEntities.csv b/sparkybe-onap-service/src/test/resources/es_test_scripts/sampleGeoEntities.csv new file mode 100644 index 0000000..d149e39 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/es_test_scripts/sampleGeoEntities.csv @@ -0,0 +1,4 @@ +complex.TEST1,complex,-82.089844,33.642063,http://localhost:8443/complex/TEST1, +complex.TEST2,complex,-114.785156,37.640335,http://localhost:8443/complex/TEST2, +complex.TEST3,complex,-97.910156,27.595935,http://localhost:8443/complex/TEST3, +pserver.TEST1,pserver,-97.910156,27.595935,http://localhost:8443/pserver/TEST1
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/es_test_scripts/topoHistoryBulkLoad.json b/sparkybe-onap-service/src/test/resources/es_test_scripts/topoHistoryBulkLoad.json new file mode 100644 index 0000000..77d57f7 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/es_test_scripts/topoHistoryBulkLoad.json @@ -0,0 +1,24 @@ +{"index":{"_index":"topographyhistorysearchindex-localhost","_type":"default"} +{"count":4,"entityType":"vServer","timestamp":"31-01-2017 03:00:00"} +{"index":{"_index":"topographyhistorysearchindex-localhost","_type":"default"} +{"count":2,"entityType":"pServer","timestamp":"31-01-2017 03:00:00"} +{"index":{"_index":"topographyhistorysearchindex-localhost","_type":"default"} +{"count":3,"entityType":"pServer","timestamp":"31-01-2017 02:00:00"} +{"index":{"_index":"topographyhistorysearchindex-localhost","_type":"default"} +{"count":4,"entityType":"pServer","timestamp":"31-01-2017 03:00:00"} +{"index":{"_index":"topographyhistorysearchindex-localhost","_type":"default"} +{"count":2,"entityType":"vServer","timestamp":"31-01-2017 01:00:00"} +{"index":{"_index":"topographyhistorysearchindex-localhost","_type":"default"} +{"count":4,"entityType":"pServer","timestamp":"30-01-2017 03:00:00"} +{"index":{"_index":"topographyhistorysearchindex-localhost","_type":"default"} +{"count":4,"entityType":"generic-vnf","timestamp":"30-01-2017 03:00:00"} +{"index":{"_index":"topographyhistorysearchindex-localhost","_type":"default"} +{"count":4,"entityType":"vpe","timestamp":"31-01-2017 03:00:00"} +{"index":{"_index":"topographyhistorysearchindex-localhost","_type":"default"} +{"count":4,"entityType":"newvce","timestamp":"31-01-2017 03:00:00"} +{"index":{"_index":"topographyhistorysearchindex-localhost","_type":"default"} +{"count":4,"entityType":"vce","timestamp":"31-01-2017 03:00:00"} +{"index":{"_index":"topographyhistorysearchindex-localhost","_type":"default"} +{"count":4,"entityType":"vce","timestamp":"30-01-2017 03:00:00"} +{"index":{"_index":"topographyhistorysearchindex-localhost","_type":"default"} +{"count":4,"entityType":"vce","timestamp":"01-02-2017 03:00:00"} diff --git a/sparkybe-onap-service/src/test/resources/es_test_scripts/topoHistoryConfigSettings.json b/sparkybe-onap-service/src/test/resources/es_test_scripts/topoHistoryConfigSettings.json new file mode 100644 index 0000000..875813e --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/es_test_scripts/topoHistoryConfigSettings.json @@ -0,0 +1,20 @@ +{ + "topographyhistorysearchindex-localhost" : { + "mappings" : { + "default" : { + "properties" : { + "count" : { + "type" : "keyword" + }, + "entityType" : { + "type" : "keyword" + }, + "timestamp" : { + "type" : "date", + "format" : "MMM d y HH:m:s||dd-MM-yyyy HH:mm:ss||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||MM/dd/yyyy||yyyyMMdd'T'HHmmssZ" + } + } + } + } + } +} diff --git a/sparkybe-onap-service/src/test/resources/es_test_scripts/topographicalConfigSettings.json b/sparkybe-onap-service/src/test/resources/es_test_scripts/topographicalConfigSettings.json new file mode 100644 index 0000000..c9f5d5d --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/es_test_scripts/topographicalConfigSettings.json @@ -0,0 +1,24 @@ +{ + "mappings": { + "default": { + "properties": { + "pkey": { + "type": "string" + }, + "entityType": { + "type": "string" + }, + "longitude": { + "type": "string" + }, + "latitude": { + "type": "string" + }, + "selfLink": { + "type": "string" + } + } + } + + } +} diff --git a/sparkybe-onap-service/src/test/resources/es_test_scripts/topographysearch_schema.json b/sparkybe-onap-service/src/test/resources/es_test_scripts/topographysearch_schema.json new file mode 100644 index 0000000..5de6904 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/es_test_scripts/topographysearch_schema.json @@ -0,0 +1,9 @@ +{ + "fields": [ + {"name": "pkey", "data-type": "string", "searchable": "false"}, + {"name": "entityType", "data-type": "string", "searchable": "false"}, + {"name": "latitude", "data-type": "string", "searchable": "false"}, + {"name": "longitude", "data-type": "string", "searchable": "false"}, + {"name": "selfLink", "data-type": "string", "searchable": "false"} + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/filters/AggregationSuggestionEntity_getIndexDocumentJson_expected.json b/sparkybe-onap-service/src/test/resources/filters/AggregationSuggestionEntity_getIndexDocumentJson_expected.json new file mode 100644 index 0000000..53e9ec9 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/filters/AggregationSuggestionEntity_getIndexDocumentJson_expected.json @@ -0,0 +1 @@ +"filterList":[{"filterId":"1"},{"filterId":"2"},{"filterId":"7"},{"filterId":"8"}]
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/filters/aaiui_filters.json b/sparkybe-onap-service/src/test/resources/filters/aaiui_filters.json new file mode 100644 index 0000000..31716ed --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/filters/aaiui_filters.json @@ -0,0 +1,88 @@ +{ + "filters": [ + { + "filterId": "1", + "filterName": "Orchestration-Status", + "displayName": "Orchestration Status", + "dataType": "list", + "dataSource": { + "indexName": "aggregate_generic-vnf_index", + "docType": "default", + "fieldName": "orchestration-status" + } + }, + { + "filterId": "2", + "filterName": "Prov-Status", + "displayName": "Provisioning Status", + "dataType": "list", + "dataSource": { + "indexName": "aggregate_generic-vnf_index", + "docType": "default", + "fieldName": "prov-status" + } + }, + { + "filterId": "3", + "filterName": "Severity", + "displayName": "Severity", + "dataType": "list", + "dataSource": { + "indexName": "di-violations", + "docType": "default", + "fieldName": "severity" + } + }, + { + "filterId": "4", + "filterName": "Category", + "displayName": "Category", + "dataType": "list", + "dataSource": { + "indexName": "di-violations", + "docType": "default", + "fieldName": "category" + } + }, + { + "filterId": "5", + "filterName": "Date", + "displayName": "Date", + "dataType": "date" + }, + { + "filterId": "6", + "filterName": "EntityType", + "displayName": "Object Type", + "dataType": "list", + "dataSource": { + "indexName": "di-violations", + "docType": "default", + "fieldName": "entityType" + } + }, + { + "filterId": "7", + "filterName": "NF-Type", + "displayName": "Network Function Type", + "dataType": "list", + "dataSource": { + "indexName": "aggregate_generic-vnf_index", + "docType": "default", + "fieldName": "nf-type" + } + }, + { + "filterId": "8", + "filterName": "NF-Role", + "displayName": "Network Function Role", + "dataType": "list", + "dataSource": { + "indexName": "aggregate_generic-vnf_index", + "docType": "default", + "fieldName": "nf-role" + } + } + + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/filters/aaiui_filters_testConfig.json b/sparkybe-onap-service/src/test/resources/filters/aaiui_filters_testConfig.json new file mode 100644 index 0000000..62b6811 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/filters/aaiui_filters_testConfig.json @@ -0,0 +1,79 @@ +{ + "filters": [ + { + "filterId": "1", + "filterName": "Orchestration-Status", + "displayName": "Orchestration Status", + "dataType": "dropDown", + "multiSelect": "false", + "watermark": "Any Orchestration Status", + "optionsType": "options", + "dataSource": { + "indexName": "aggregate_generic-vnf_index", + "docType": "default", + "fieldName": "orchestration-status" + } + }, + { + "filterId": "2", + "filterName": "Prov-Status", + "displayName": "Provisioning Status", + "dataType": "dropDown", + "multiSelect": "false", + "watermark": "Any Provisioning Status", + "optionsType": "options", + "dataSource": { + "indexName": "aggregate_generic-vnf_index", + "docType": "default", + "fieldName": "prov-status" + } + }, + { + "filterId": "5", + "filterName": "Date", + "displayName": "Date", + "dataType": "date", + "multiSelect": "false", + "watermark": "Choose Date Range", + "defaultValue" : {"decode": "Today", "code": "last_0_hours"}, + "optionsType": "dynamicOptions", + "optionsValues": [ + {"decode": "Today", "code": "last_0_hours"}, + {"decode": "Since Yesterday", "code": "last_1_days"}, + {"decode": "Since Last Week", "code": "last_1_weeks"}, + {"decode": "Since Last Month", "code": "last_1_months"}, + {"decode": "Since Last Year", "code": "last_1_years"}, + {"decode": "Custom Range", "code": "custom_range"} + ] + }, + { + "filterId": "7", + "filterName": "NF-Type", + "displayName": "Network Function Type", + "dataType": "dropDown", + "multiSelect": "false", + "watermark": "Any Network Function Type", + "optionsType": "options", + "dataSource": { + "indexName": "aggregate_generic-vnf_index", + "docType": "default", + "fieldName": "nf-type" + } + }, + { + "filterId": "8", + "filterName": "NF-Role", + "displayName": "Network Function Role", + "dataType": "dropDown", + "multiSelect": "false", + "watermark": "Any Network Function Role", + "optionsType": "options", + "dataSource": { + "indexName": "aggregate_generic-vnf_index", + "docType": "default", + "fieldName": "nf-role" + } + } + + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/filters/aaiui_views.json b/sparkybe-onap-service/src/test/resources/filters/aaiui_views.json new file mode 100644 index 0000000..e6ece9f --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/filters/aaiui_views.json @@ -0,0 +1,38 @@ +{ + "views": [ + { + "viewName" : "vnfSearch", + "filters" : [ + { + "filterId": "1" + }, + { + "filterId": "2" + }, + { + "filterId": "7" + }, + { + "filterId": "8" + } + ] + }, + { + "viewName" : "dataIntegrity", + "filters" : [ + { + "filterId": "3" + }, + { + "filterId": "4" + }, + { + "filterId": "5" + }, + { + "filterId": "6" + } + ] + } + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/filters/aaiui_views_testConfig.json b/sparkybe-onap-service/src/test/resources/filters/aaiui_views_testConfig.json new file mode 100644 index 0000000..9ca0119 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/filters/aaiui_views_testConfig.json @@ -0,0 +1,21 @@ +{ + "views": [ + { + "viewName" : "vnfSearch", + "filters" : [ + { + "filterId": "1" + }, + { + "filterId": "2" + }, + { + "filterId": "7" + }, + { + "filterId": "8" + } + ] + } + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/filters/filterAggregationEndpoint_emptyRequestBody_expectedResponse.json b/sparkybe-onap-service/src/test/resources/filters/filterAggregationEndpoint_emptyRequestBody_expectedResponse.json new file mode 100644 index 0000000..95a2b16 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/filters/filterAggregationEndpoint_emptyRequestBody_expectedResponse.json @@ -0,0 +1 @@ +{"count":0}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/filters/filterAggregationEndpoint_emptyRequestFilterArray_expectedResponse.json b/sparkybe-onap-service/src/test/resources/filters/filterAggregationEndpoint_emptyRequestFilterArray_expectedResponse.json new file mode 100644 index 0000000..36ae0a5 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/filters/filterAggregationEndpoint_emptyRequestFilterArray_expectedResponse.json @@ -0,0 +1 @@ +{"groupby_aggregation":[{"totalChartHits":0,"buckets":[]}]}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/filters/filterAggregationEndpoint_emptyRequestFilterArray_requestBody.json b/sparkybe-onap-service/src/test/resources/filters/filterAggregationEndpoint_emptyRequestFilterArray_requestBody.json new file mode 100644 index 0000000..ba7d987 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/filters/filterAggregationEndpoint_emptyRequestFilterArray_requestBody.json @@ -0,0 +1,3 @@ +{ + "filters": [] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/filters/filterAggregationEndpoint_successPath_expectedResponse.json b/sparkybe-onap-service/src/test/resources/filters/filterAggregationEndpoint_successPath_expectedResponse.json new file mode 100644 index 0000000..e2c5766 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/filters/filterAggregationEndpoint_successPath_expectedResponse.json @@ -0,0 +1 @@ +{"total":116,"aggregations":{"prov-status":[{"doc_count":77,"key":""},{"doc_count":2,"key":"PREPROV"}],"orchestration-status":[{"doc_count":116,"key":"Created"}]}} diff --git a/sparkybe-onap-service/src/test/resources/filters/filterAggregationEndpoint_successPath_operationResult.json b/sparkybe-onap-service/src/test/resources/filters/filterAggregationEndpoint_successPath_operationResult.json new file mode 100644 index 0000000..753a11f --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/filters/filterAggregationEndpoint_successPath_operationResult.json @@ -0,0 +1 @@ +{"took":39,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":116,"max_score":0.0,"hits":[]},"aggregations":{"prov-status":{"doc_count_error_upper_bound":0,"sum_other_doc_count":0,"buckets":[{"key":"","doc_count":77},{"key":"PREPROV","doc_count":2}]},"orchestration-status":{"doc_count_error_upper_bound":0,"sum_other_doc_count":0,"buckets":[{"key":"Created","doc_count":116}]}}}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/filters/filterAggregationEndpoint_successPath_requestBody.json b/sparkybe-onap-service/src/test/resources/filters/filterAggregationEndpoint_successPath_requestBody.json new file mode 100644 index 0000000..c321760 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/filters/filterAggregationEndpoint_successPath_requestBody.json @@ -0,0 +1,11 @@ +{ + "filters": [ + { + "filterId": "1", + "filterValue": "Created" + }, + { + "filterId": "2" + } + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/portal/portal-authentication.properties b/sparkybe-onap-service/src/test/resources/portal/portal-authentication.properties new file mode 100644 index 0000000..c3c34d6 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/portal/portal-authentication.properties @@ -0,0 +1,2 @@ +username=testuser +password=OBF:1vv31vn61xtv1zlo1y0s1v1p1v2p1y0y1zlu1xtn1vnw1vu7
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/portal/roles.config b/sparkybe-onap-service/src/test/resources/portal/roles.config new file mode 100644 index 0000000..b8313bd --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/portal/roles.config @@ -0,0 +1,6 @@ +[ + { + "id":1, + "name":"View" + } +]
\ No newline at end of file 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 diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/customer/customer-4.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/customer/customer-4.json new file mode 100644 index 0000000..df805ba --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/customer/customer-4.json @@ -0,0 +1,60 @@ +{ + "global-customer-id": "customer-4", + "subscriber-name": "Gold", + "subscriber-type": "GoldType", + "resource-version": "1494001938080", + "service-subscriptions": { + "service-subscription": [ + { + "service-type": "service-subscription-2", + "resource-version": "1494001891362", + "service-instances": { + "service-instance": [ + { + "service-instance-id": "service-instance-54", + "service-instance-name": "si_failtest", + "model-invariant-id": "732263bd-0655-428d-a347-d65676d1a949", + "resource-version": "1494001997513" + }, + { + "service-instance-id": "service-instance-55", + "service-instance-name": "test-343432", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500370094198", + "orchestration-status": "Active" + } + ] + }, + "relationship-list": { + "relationship": [ + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/tenant-1", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "cotton-candy" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "fluffy-clouds" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "tenant-1" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "CandyMan" + } + ] + } + ] + } + } + ] + } +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-50.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-50.json new file mode 100644 index 0000000..17a48fc --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-50.json @@ -0,0 +1,26 @@ +{ + "service-instance-id": "service-instance-50", + "service-instance-name": "s01", + "service-type": "", + "service-role": "", + "environment-context": "Universe", + "workload-context": "QuantumContext", + "model-invariant-id": "5b9c0f33-eec1-484a-bf77-736a6644d7a8", + "model-version-id": "b75e0d22-05ff-4448-9266-5f0d4e1dbbd6", + "resource-version": "1510659038818", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/project1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "project1" + } + ] + } + ] + } +} diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-51.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-51.json new file mode 100644 index 0000000..bfc5241 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-51.json @@ -0,0 +1,28 @@ +{ + "service-instance-id": "service-instance-51", + "service-instance-name": "test765445g", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1499868690949", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/fbb52a16-2c57-4212-802f-32dbba2204f2", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "fbb52a16-2c57-4212-802f-32dbba2204f2" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fdfdfdf" + } + ] + } + ] + } +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-52.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-52.json new file mode 100644 index 0000000..6083a8f --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-52.json @@ -0,0 +1,12 @@ +{ + "service-instance-id": "service-instance-52", + "service-instance-name": "si52", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "d7b48529-6ae2-49f0-8633-b29e7cd4d4ce", + "model-version-id": "44671b15-83dd-4db7-a36e-dfada3eaa2f9", + "resource-version": "1508144995828", + "orchestration-status": "Active" +} diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-53.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-53.json new file mode 100644 index 0000000..5765c43 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-53.json @@ -0,0 +1,12 @@ +{ + "service-instance-id": "service-instance-53", + "service-instance-name": "a1", + "service-type": "si53-type", + "service-role": "si53-role", + "environment-context": "Universe", + "workload-context": "Nano", + "model-invariant-id": "340f3957-ff0a-4503-866d-a34fd1b97450", + "model-version-id": "ee2d8783-8495-4fb1-9553-6cdbd2dd3a50", + "resource-version": "1509355912484", + "orchestration-status": "Active", +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-54.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-54.json new file mode 100644 index 0000000..249c38b --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-54.json @@ -0,0 +1,6 @@ +{ + "service-instance-id": "service-instance-54", + "service-instance-name": "si_failtest", + "model-invariant-id": "732263bd-0655-428d-a347-d65676d1a949", + "resource-version": "1494001997513" +} diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-55.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-55.json new file mode 100644 index 0000000..8db5b2e --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-55.json @@ -0,0 +1,8 @@ +{ + "service-instance-id": "service-instance-55", + "service-instance-name": "test-343432", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500370094198", + "orchestration-status": "Active" +} diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-56.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-56.json new file mode 100644 index 0000000..a87de6f --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-56.json @@ -0,0 +1,4 @@ +{ + "service-instance-id": "service-instance-56", + "resource-version": "1495736709053" +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-57.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-57.json new file mode 100644 index 0000000..ce26fda --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-57.json @@ -0,0 +1,11 @@ +{ + "service-instance-id": "service-instance-57", + "service-instance-name": "first_macro_shani", + "service-type": "", + "service-role": "", + "workload-context": "Universe", + "model-invariant-id": "5b9c0f33-eec1-484a-bf77-736a6644d7a8", + "model-version-id": "b75e0d22-05ff-4448-9266-5f0d4e1dbbd6", + "resource-version": "1508071197869", + "orchestration-status": "Active" +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-58.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-58.json new file mode 100644 index 0000000..7e6f5e9 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-58.json @@ -0,0 +1,32 @@ +{ + "service-instance-id": "service-instance-58", + "service-instance-name": "a3", + "service-type": "", + "service-role": "", + "environment-context": "FluffyClouds", + "workload-context": "TasteGood", + "model-invariant-id": "d5937aa1-37fb-4ed0-8c30-5144b89a64ae", + "model-version-id": "06ac9663-54cf-4c77-b926-6e8757cf6380", + "resource-version": "1509356358573", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/9c925d7e-1a94-4784-a45b-408c8cc96fa8", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "9c925d7e-1a94-4784-a45b-408c8cc96fa8" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "dfdsfds" + } + ] + } + ] + } +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-59.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-59.json new file mode 100644 index 0000000..37e7d35 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-instance/service-instance-59.json @@ -0,0 +1,4 @@ +{ + "service-instance-id": "service-instance-59", + "resource-version": "1506087955081" +} diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-subscription/service-subscription-2.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-subscription/service-subscription-2.json new file mode 100644 index 0000000..2d02ccc --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/service-subscription/service-subscription-2.json @@ -0,0 +1,50 @@ +{ + "service-type": "service-subscription-2", + "resource-version": "1494001891362", + "service-instances": { + "service-instance": [ + { + "service-instance-id": "service-instance-54", + "service-instance-name": "si_failtest", + "model-invariant-id": "732263bd-0655-428d-a347-d65676d1a949", + "resource-version": "1494001997513" + }, + { + "service-instance-id": "service-instance-55", + "service-instance-name": "test-343432", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500370094198", + "orchestration-status": "Active" + } + ] + }, + "relationship-list": { + "relationship": [ + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/myCloud/isBig/tenants/tenant/tenant-1", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "myCloud" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "isBig" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "tenant-1" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "SuperDude" + } + ] + } + ] + } +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/tenant/tenant-1.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/tenant/tenant-1.json new file mode 100644 index 0000000..3dad086 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-resources/tenant/tenant-1.json @@ -0,0 +1,23 @@ +{ + "tenant-id": "tenant-1", + "tenant-name": "SuperDude", + "resource-version": "1494001855362", + "relationship-list": { + "relationship": [ + { + "related-to": "service-subscription", + "related-link": "/aai/v11/business/customers/customer/customer-2/service-subscriptions/service-subscription/service-subscription-2", + "relationship-data": [ + { + "relationship-key": "customer.global-customer-id", + "relationship-value": "customer-4" + }, + { + "relationship-key": "service-subscription.service-type", + "relationship-value": "service-subscription-2" + } + ] + } + ] + } +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-50.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-50.json new file mode 100644 index 0000000..d4e9d8d --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-50.json @@ -0,0 +1,8 @@ +{ + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/customer-2/service-subscriptions/service-subscription/service-subscription-2/service-instances/service-instance/service-instance-50" + } + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-51.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-51.json new file mode 100644 index 0000000..7c29652 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-51.json @@ -0,0 +1,8 @@ +{ + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/customer-2/service-subscriptions/service-subscription/service-subscription-2/service-instances/service-instance/service-instance-51" + } + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-52.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-52.json new file mode 100644 index 0000000..5d88946 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-52.json @@ -0,0 +1,8 @@ +{ + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/customer-2/service-subscriptions/service-subscription/service-subscription-2/service-instances/service-instance/service-instance-52" + } + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-53.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-53.json new file mode 100644 index 0000000..8422ab0 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-53.json @@ -0,0 +1,8 @@ +{ + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/customer-2/service-subscriptions/service-subscription/service-subscription-2/service-instances/service-instance/service-instance-53" + } + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-54.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-54.json new file mode 100644 index 0000000..d61ee8e --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-54.json @@ -0,0 +1,8 @@ +{ + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/customer-2/service-subscriptions/service-subscription/service-subscription-2/service-instances/service-instance/service-instance-54" + } + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-55.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-55.json new file mode 100644 index 0000000..7594913 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-55.json @@ -0,0 +1,8 @@ +{ + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/customer-2/service-subscriptions/service-subscription/service-subscription-2/service-instances/service-instance/service-instance-55" + } + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-56.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-56.json new file mode 100644 index 0000000..dc66079 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-56.json @@ -0,0 +1,8 @@ +{ + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/DHV_20170525142406/service-subscriptions/service-subscription/uCPE/service-instances/service-instance/service-instance-56" + } + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-57.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-57.json new file mode 100644 index 0000000..427fbdf --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-57.json @@ -0,0 +1,8 @@ +{ + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/customer-2/service-subscriptions/service-subscription/service-subscription-2/service-instances/service-instance/service-instance-57" + } + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-58.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-58.json new file mode 100644 index 0000000..f459422 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-58.json @@ -0,0 +1,8 @@ +{ + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/customer-2/service-subscriptions/service-subscription/service-subscription-2/service-instances/service-instance/service-instance-58" + } + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-59.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-59.json new file mode 100644 index 0000000..380f932 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance-59.json @@ -0,0 +1,8 @@ +{ + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/customer-1/service-subscriptions/service-subscription/service-subscription-1/service-instances/service-instance/service-instance-59" + } + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance/service-instance-54.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance/service-instance-54.json new file mode 100644 index 0000000..d61ee8e --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance/service-instance-54.json @@ -0,0 +1,8 @@ +{ + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/customer-2/service-subscriptions/service-subscription/service-subscription-2/service-instances/service-instance/service-instance-54" + } + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance/service-instance-55.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance/service-instance-55.json new file mode 100644 index 0000000..7594913 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-instance/service-instance-55.json @@ -0,0 +1,8 @@ +{ + "result-data": [ + { + "resource-type": "service-instance", + "resource-link": "/aai/v11/business/customers/customer/customer-2/service-subscriptions/service-subscription/service-subscription-2/service-instances/service-instance/service-instance-55" + } + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-subscription/service-subscription-2.json b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-subscription/service-subscription-2.json new file mode 100644 index 0000000..d377d5d --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/aai-traversal/generic-query/service-subscription/service-subscription-2.json @@ -0,0 +1,8 @@ +{ + "result-data": [ + { + "resource-type": "service-subscription", + "resource-link": "/aai/v11/business/customers/customer/customer-2/service-subscriptions/service-subscription/service-subscription-2" + } + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/activeInventory_complex_nodesQuery_response.json b/sparkybe-onap-service/src/test/resources/sync/aai/activeInventory_complex_nodesQuery_response.json new file mode 100644 index 0000000..508d711 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/activeInventory_complex_nodesQuery_response.json @@ -0,0 +1,24 @@ +{ + "result-data" : [ + { + "resource-type" : "complex", + "resource-link" : "https://a.server.some.where:8443/aai/v7/complexes/complex/complex1" + }, + { + "resource-type" : "complex", + "resource-link" : "https://a.server.some.where:8443/aai/v7/complexes/complex/complex2" + }, + { + "resource-type" : "complex", + "resource-link" : "https://a.server.some.where:8443/aai/v7/complexes/complex/complex3" + }, + { + "resource-type" : "complex", + "resource-link" : "https://a.server.some.where:8443/aai/v7/complexes/complex/complex4" + }, + { + "resource-type" : "complex", + "resource-link" : "https://a.server.some.where:8443/aai/v7/complexes/complex/complex5" + } + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/activeInventory_generic-vnf_nodesQuery_response.json b/sparkybe-onap-service/src/test/resources/sync/aai/activeInventory_generic-vnf_nodesQuery_response.json new file mode 100644 index 0000000..f1cb3d4 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/activeInventory_generic-vnf_nodesQuery_response.json @@ -0,0 +1,16 @@ +{ + "result-data": [ + { + "resource-type": "generic-vnf", + "resource-link": "/aai/v11/network/generic-vnfs/generic-vnf/generic-vnf-1" + }, + { + "resource-type": "generic-vnf", + "resource-link": "/aai/v11/network/generic-vnfs/generic-vnf/generic-vnf-2" + }, + { + "resource-type": "generic-vnf", + "resource-link": "/aai/v11/network/generic-vnfs/generic-vnf/generic-vnf-3" + } + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/activeInventory_service-subscription_nodesQuery_response.json b/sparkybe-onap-service/src/test/resources/sync/aai/activeInventory_service-subscription_nodesQuery_response.json new file mode 100644 index 0000000..414724f --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/activeInventory_service-subscription_nodesQuery_response.json @@ -0,0 +1,16 @@ +{ + "result-data": [ + { + "resource-type": "service-subscription", + "resource-link": "/aai/v11/business/customers/customer/customer-1/service-subscriptions/service-subscription/service-subscription1" + }, + { + "resource-type": "service-subscription", + "resource-link": "/aai/v11/business/customers/customer/customer-2/service-subscriptions/service-subscription/service-subscription-2" + }, + { + "resource-type": "service-subscription", + "resource-link": "/aai/v11/business/customers/customer/customer-3/service-subscriptions/service-subscription/service-subscription-3" + } + ] +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/complex1_fullDepth_aaiEntityRetrieval.json b/sparkybe-onap-service/src/test/resources/sync/aai/complex1_fullDepth_aaiEntityRetrieval.json new file mode 100644 index 0000000..3831848 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/complex1_fullDepth_aaiEntityRetrieval.json @@ -0,0 +1,30 @@ +{ + "physical-location-id": "HMBGGEANN02-1", + "resource-version": "1494001844620", + "physical-location-type": "EQUIPMENT LOCATION-1", + "street1": "WENDENSTRASSE 379-1", + "city": "HAMBURG-1", + "state": "GE", + "postal-code": "20097-1", + "country": "USA", + "region": "US", + "relationship-list": { + "relationship": [ + { + "related-to": "pserver", + "related-link": "/aai/v11/cloud-infrastructure/pservers/pserver/GER-45-IIGA-TRANSPORT_ONLY_DEL-1", + "relationship-data": [ + { + "relationship-key": "pserver.hostname", + "relationship-value": "GER-45-IIGA-TRANSPORT_ONLY_DEL-1" + } + ], + "related-to-property": [ + { + "property-key": "pserver.pserver-name2-1" + } + ] + } + ] + } +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/complex2_fullDepth_aaiEntityRetrieval.json b/sparkybe-onap-service/src/test/resources/sync/aai/complex2_fullDepth_aaiEntityRetrieval.json new file mode 100644 index 0000000..7a4d680 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/complex2_fullDepth_aaiEntityRetrieval.json @@ -0,0 +1,30 @@ +{ + "physical-location-id": "HMBGGEANN02-2", + "resource-version": "1494001844620", + "physical-location-type": "EQUIPMENT LOCATION-2", + "street1": "WENDENSTRASSE 379-2", + "city": "HAMBURG-2", + "state": "GE", + "postal-code": "20097-2", + "country": "USA", + "region": "US", + "relationship-list": { + "relationship": [ + { + "related-to": "pserver", + "related-link": "/aai/v11/cloud-infrastructure/pservers/pserver/GER-45-IIGA-TRANSPORT_ONLY_DEL-2", + "relationship-data": [ + { + "relationship-key": "pserver.hostname", + "relationship-value": "GER-45-IIGA-TRANSPORT_ONLY_DEL-2" + } + ], + "related-to-property": [ + { + "property-key": "pserver.pserver-name2-2" + } + ] + } + ] + } +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/complex3_fullDepth_aaiEntityRetrieval.json b/sparkybe-onap-service/src/test/resources/sync/aai/complex3_fullDepth_aaiEntityRetrieval.json new file mode 100644 index 0000000..e4a3789 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/complex3_fullDepth_aaiEntityRetrieval.json @@ -0,0 +1,30 @@ +{ + "physical-location-id": "HMBGGEANN02-3", + "resource-version": "1494001844620", + "physical-location-type": "EQUIPMENT LOCATION-3", + "street1": "WENDENSTRASSE 379-3", + "city": "HAMBURG-3", + "state": "GE", + "postal-code": "20097-3", + "country": "USA", + "region": "US", + "relationship-list": { + "relationship": [ + { + "related-to": "pserver", + "related-link": "/aai/v11/cloud-infrastructure/pservers/pserver/GER-45-IIGA-TRANSPORT_ONLY_DEL-3", + "relationship-data": [ + { + "relationship-key": "pserver.hostname", + "relationship-value": "GER-45-IIGA-TRANSPORT_ONLY_DEL-3" + } + ], + "related-to-property": [ + { + "property-key": "pserver.pserver-name2-3" + } + ] + } + ] + } +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/complex4_fullDepth_aaiEntityRetrieval.json b/sparkybe-onap-service/src/test/resources/sync/aai/complex4_fullDepth_aaiEntityRetrieval.json new file mode 100644 index 0000000..1963b3b --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/complex4_fullDepth_aaiEntityRetrieval.json @@ -0,0 +1,30 @@ +{ + "physical-location-id": "HMBGGEANN02-4", + "resource-version": "1494001844620", + "physical-location-type": "EQUIPMENT LOCATION-4", + "street1": "WENDENSTRASSE 379-4", + "city": "HAMBURG-4", + "state": "GE", + "postal-code": "20097-4", + "country": "USA", + "region": "US", + "relationship-list": { + "relationship": [ + { + "related-to": "pserver", + "related-link": "/aai/v11/cloud-infrastructure/pservers/pserver/GER-45-IIGA-TRANSPORT_ONLY_DEL-4", + "relationship-data": [ + { + "relationship-key": "pserver.hostname", + "relationship-value": "GER-45-IIGA-TRANSPORT_ONLY_DEL-4" + } + ], + "related-to-property": [ + { + "property-key": "pserver.pserver-name2-4" + } + ] + } + ] + } +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/complex5_fullDepth_aaiEntityRetrieval.json b/sparkybe-onap-service/src/test/resources/sync/aai/complex5_fullDepth_aaiEntityRetrieval.json new file mode 100644 index 0000000..70fcba8 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/complex5_fullDepth_aaiEntityRetrieval.json @@ -0,0 +1,30 @@ +{ + "physical-location-id": "HMBGGEANN02-5", + "resource-version": "1494001844620", + "physical-location-type": "EQUIPMENT LOCATION-5", + "street1": "WENDENSTRASSE 379-5", + "city": "HAMBURG-5", + "state": "GE", + "postal-code": "20097-5", + "country": "USA", + "region": "US", + "relationship-list": { + "relationship": [ + { + "related-to": "pserver", + "related-link": "/aai/v11/cloud-infrastructure/pservers/pserver/GER-45-IIGA-TRANSPORT_ONLY_DEL-5", + "relationship-data": [ + { + "relationship-key": "pserver.hostname", + "relationship-value": "GER-45-IIGA-TRANSPORT_ONLY_DEL-5" + } + ], + "related-to-property": [ + { + "property-key": "pserver.pserver-name2-5" + } + ] + } + ] + } +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/generic-vnf-generic-vnf-1_full_depth.json b/sparkybe-onap-service/src/test/resources/sync/aai/generic-vnf-generic-vnf-1_full_depth.json new file mode 100644 index 0000000..14abe18 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/generic-vnf-generic-vnf-1_full_depth.json @@ -0,0 +1,136 @@ +{ + "vnf-id": "generic-vnf-1", + "vnf-name": "vProbe_Fe_VEPMS_sk316t_sd_01", + "vnf-type": "vProbe Fe VEPMS_sk316t/vProbe Fe VEPMS_sk316t 0", + "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "1511102454640", + "model-invariant-id": "b8dba4bd-04ee-42bc-8c41-db06addb6866", + "model-version-id": "c9e7826d-c4b8-40c7-83e4-d9f96e7d5827", + "model-customization-id": "d2ca6d16-6529-4362-b53e-7bf4141372b1", + "nf-type": "PROBES", + "nf-function": "vProbes (Frontend )", + "nf-role": "vLB", + "nf-naming-code": "null", + "relationship-list": { + "relationship": [ + { + "related-to": "service-instance", + "related-link": "/aai/v11/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Mobility/service-instances/service-instance/22663785-ebb9-49c7-b95b-209537e6627f", + "relationship-data": [ + { + "relationship-key": "customer.global-customer-id", + "relationship-value": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb" + }, + { + "relationship-key": "service-subscription.service-type", + "relationship-value": "Mobility" + }, + { + "relationship-key": "service-instance.service-instance-id", + "relationship-value": "22663785-ebb9-49c7-b95b-209537e6627f" + } + ], + "related-to-property": [ + { + "property-key": "service-instance.service-instance-name", + "property-value": "vProbe_Fe_VEPMS_sk316t_sd" + } + ] + }, + { + "related-to": "line-of-business", + "related-link": "/aai/v11/business/lines-of-business/line-of-business/lob1", + "relationship-data": [ + { + "relationship-key": "line-of-business.line-of-business-name", + "relationship-value": "lob1" + } + ] + }, + { + "related-to": "platform", + "related-link": "/aai/v11/business/platforms/platform/platform1", + "relationship-data": [ + { + "relationship-key": "platform.platform-name", + "relationship-value": "platform1" + } + ] + }, + { + "related-to": "volume-group", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/volume-groups/volume-group/ecf748d5-be43-45ae-a8b1-c8520d144bdf", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "volume-group.volume-group-id", + "relationship-value": "ecf748d5-be43-45ae-a8b1-c8520d144bdf" + } + ] + }, + { + "related-to": "volume-group", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/volume-groups/volume-group/1e26c1a7-8a91-4459-ba02-8cc2d70dd065", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "volume-group.volume-group-id", + "relationship-value": "1e26c1a7-8a91-4459-ba02-8cc2d70dd065" + } + ] + }, + { + "related-to": "volume-group", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/volume-groups/volume-group/5223cfdc-50bf-4607-9651-2270384d6414", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "volume-group.volume-group-id", + "relationship-value": "5223cfdc-50bf-4607-9651-2270384d6414" + } + ] + } + ] + }, + "vf-modules": { + "vf-module": [ + { + "vf-module-id": "eba81b96-851e-4374-9b9e-d186527f3c46", + "vf-module-name": "zmtn6afprb01_base1_sd_02", + "heat-stack-id": "zmtn6afprb01_base1_sd_02/cfd1203d-ff2f-49a3-a40b-72ac67cd8432", + "orchestration-status": "active", + "is-base-vf-module": true, + "resource-version": "1511301104226", + "model-invariant-id": "c01b5b9f-0760-4bcc-93b5-e1b24dd9bcfa", + "model-version-id": "30e71b66-93c6-4e0f-b7ff-de26b45c83e9", + "model-customization-id": "caaf8b40-03e9-4c58-9d18-613f564e2ea8", + "module-index": 0 + } + ] + } +} diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/generic-vnf-generic-vnf-2_full_depth.json b/sparkybe-onap-service/src/test/resources/sync/aai/generic-vnf-generic-vnf-2_full_depth.json new file mode 100644 index 0000000..a03e4c8 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/generic-vnf-generic-vnf-2_full_depth.json @@ -0,0 +1,118 @@ +{ + "vnf-id": "generic-vnf-2", + "vnf-name": "zmtn6apndns_v6_01", + "vnf-type": "APNDNS_mm779p_II/APNDNS_mm779p_II 0", + "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", + "prov-status": "PREPROV", + "orchestration-status": "Created", + "in-maint": false, + "is-closed-loop-disabled": false, + "resource-version": "1511184323962", + "model-invariant-id": "f3f6ed00-cd41-4e96-b669-0daa10da5491", + "model-version-id": "f76e6281-d80f-4403-9603-4245b0c8d8cd", + "model-customization-id": "f499ebb9-4383-42c1-8ace-2b682f312504", + "nf-type": "DNS", + "nf-function": "APN-DNS", + "nf-role": "VDNS", + "nf-naming-code": "null", + "relationship-list": { + "relationship": [ + { + "related-to": "service-instance", + "related-link": "/aai/v11/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Nimbus/service-instances/service-instance/3a743f07-86cc-47db-bee5-03fa91c77748", + "relationship-data": [ + { + "relationship-key": "customer.global-customer-id", + "relationship-value": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb" + }, + { + "relationship-key": "service-subscription.service-type", + "relationship-value": "Nimbus" + }, + { + "relationship-key": "service-instance.service-instance-id", + "relationship-value": "3a743f07-86cc-47db-bee5-03fa91c77748" + } + ], + "related-to-property": [ + { + "property-key": "service-instance.service-instance-name", + "property-value": "APNDNS_mm779p_II_V6" + } + ] + }, + { + "related-to": "line-of-business", + "related-link": "/aai/v11/business/lines-of-business/line-of-business/lob1", + "relationship-data": [ + { + "relationship-key": "line-of-business.line-of-business-name", + "relationship-value": "lob1" + } + ] + }, + { + "related-to": "platform", + "related-link": "/aai/v11/business/platforms/platform/platform1", + "relationship-data": [ + { + "relationship-key": "platform.platform-name", + "relationship-value": "platform1" + } + ] + }, + { + "related-to": "volume-group", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/volume-groups/volume-group/03ec51a4-2ea9-4947-b66a-b01c7b9e9ea5", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "volume-group.volume-group-id", + "relationship-value": "03ec51a4-2ea9-4947-b66a-b01c7b9e9ea5" + } + ] + }, + { + "related-to": "volume-group", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/volume-groups/volume-group/1b3bf4c2-a4cc-4c37-afcc-ec49f5c1c653", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "volume-group.volume-group-id", + "relationship-value": "1b3bf4c2-a4cc-4c37-afcc-ec49f5c1c653" + } + ] + } + ] + }, + "vf-modules": { + "vf-module": [ + { + "vf-module-id": "1b5602c0-b0c7-42fd-9bbd-8d503e464c5a", + "vf-module-name": "APNDNS_V6_base", + "heat-stack-id": "APNDNS_V6_base/bd3aa649-179f-4017-a848-f9a90cfa8908", + "orchestration-status": "active", + "is-base-vf-module": true, + "resource-version": "1511271087769", + "model-invariant-id": "874a259a-c4a3-4928-bbaa-0cd391ea3ec8", + "model-version-id": "417a7a36-87f8-4366-8d7b-95e47f1009b9", + "model-customization-id": "76a64957-74c7-4598-84c9-aa0e94bd2a69", + "module-index": 0 + } + ] + } +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/generic-vnf-generic-vnf-3_full_depth.json b/sparkybe-onap-service/src/test/resources/sync/aai/generic-vnf-generic-vnf-3_full_depth.json new file mode 100644 index 0000000..de2481b --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/generic-vnf-generic-vnf-3_full_depth.json @@ -0,0 +1,30 @@ +{ + "vnf-id": "generic-vnf-3", + "vnf-name": "generic-vnf-test01-name19", + "vnf-name2": "generic-vnf-test01-name19", + "vnf-type": "generic-vnf-rx2202-type", + "service-id": "d0217510-514b-429d-9b84-e4ed74e4c552", + "regional-resource-zone": "example-regional-resource-zone-val-8204", + "prov-status": "ACTIVE", + "license-key": "lk", + "equipment-role": "role", + "orchestration-status": "PendingDelete", + "heat-stack-id": "generic-vnf-rx2202-heat-stack-id", + "mso-catalog-key": "generic-vnf-rx2202-mso-catalog-key", + "management-option": "generic-vnf-rx2202-management-option", + "ipv4-oam-address": "1.2.3.4", + "ipv4-loopback0-address": "4.5.6.7", + "nm-lan-v6-address": "33::34", + "management-v6-address": "34::35", + "vcpu": 7957, + "vcpu-units": "example-vcpu-units-val-8204", + "vmemory": 168, + "vmemory-units": "example-vmemory-units-val-8204", + "vdisk": 3227, + "vdisk-units": "example-vdisk-units-val-8204", + "in-maint": false, + "is-closed-loop-disabled": true, + "resource-version": "1500476417001", + "nf-type": "vCE/vFW", + "nf-role": "vSeGW" +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/service-subscription-service-subscription-1.json b/sparkybe-onap-service/src/test/resources/sync/aai/service-subscription-service-subscription-1.json new file mode 100644 index 0000000..3d2d38c --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/service-subscription-service-subscription-1.json @@ -0,0 +1,12 @@ +{ + "service-type": "service-subscription-1", + "resource-version": "1506087955078", + "service-instances": { + "service-instance": [ + { + "service-instance-id": "service-subscription-1", + "resource-version": "1506087955081" + } + ] + } +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/service-subscription-service-subscription-2.json b/sparkybe-onap-service/src/test/resources/sync/aai/service-subscription-service-subscription-2.json new file mode 100644 index 0000000..d4c2414 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/service-subscription-service-subscription-2.json @@ -0,0 +1,350 @@ +{ + "service-type": "service-subscription-2", + "resource-version": "1494001891362", + "service-instances": { + "service-instance": [ + { + "service-instance-id": "service-instance-54", + "service-instance-name": "si_failtest", + "model-invariant-id": "732263bd-0655-428d-a347-d65676d1a949", + "resource-version": "1494001997513" + }, + { + "service-instance-id": "service-instance-55", + "service-instance-name": "test-343432", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1500370094198", + "orchestration-status": "Active" + }, + { + "service-instance-id": "service-instance-50", + "service-instance-name": "s01", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "5b9c0f33-eec1-484a-bf77-736a6644d7a8", + "model-version-id": "b75e0d22-05ff-4448-9266-5f0d4e1dbbd6", + "resource-version": "1510659038818", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "project", + "related-link": "/aai/v11/business/projects/project/project1", + "relationship-data": [ + { + "relationship-key": "project.project-name", + "relationship-value": "project1" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/589fe0db-26c4-45e5-9f4e-a246c74fce76", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "589fe0db-26c4-45e5-9f4e-a246c74fce76" + } + ] + } + ] + } + }, + { + "service-instance-id": "service-instance-52", + "service-instance-name": "shanitest", + "service-type": "", + "service-role": "", + "environment-context": "null", + "workload-context": "null", + "model-invariant-id": "d7b48529-6ae2-49f0-8633-b29e7cd4d4ce", + "model-version-id": "44671b15-83dd-4db7-a36e-dfada3eaa2f9", + "resource-version": "1508144995828", + "orchestration-status": "Active" + }, + { + "service-instance-id": "service-instance-57", + "service-instance-name": "first_macro_shani", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "5b9c0f33-eec1-484a-bf77-736a6644d7a8", + "model-version-id": "b75e0d22-05ff-4448-9266-5f0d4e1dbbd6", + "resource-version": "1508071197869", + "orchestration-status": "Active" + }, + { + "service-instance-id": "service-instance-53", + "service-instance-name": "a1", + "service-type": "service_type_shani", + "service-role": "service_role_shani", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "340f3957-ff0a-4503-866d-a34fd1b97450", + "model-version-id": "ee2d8783-8495-4fb1-9553-6cdbd2dd3a50", + "resource-version": "1509355912484", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/2356a43d-ed56-43b6-aefc-8391b82588c9", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "2356a43d-ed56-43b6-aefc-8391b82588c9" + } + ] + } + ] + } + }, + { + "service-instance-id": "service-instance-58", + "service-instance-name": "a3", + "service-type": "", + "service-role": "", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "d5937aa1-37fb-4ed0-8c30-5144b89a64ae", + "model-version-id": "06ac9663-54cf-4c77-b926-6e8757cf6380", + "resource-version": "1509356358573", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/9c925d7e-1a94-4784-a45b-408c8cc96fa8", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "9c925d7e-1a94-4784-a45b-408c8cc96fa8" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "dfdsfds" + } + ] + }, + { + "related-to": "owning-entity", + "related-link": "/aai/v11/business/owning-entities/owning-entity/589fe0db-26c4-45e5-9f4e-a246c74fce76", + "relationship-data": [ + { + "relationship-key": "owning-entity.owning-entity-id", + "relationship-value": "589fe0db-26c4-45e5-9f4e-a246c74fce76" + } + ] + } + ] + } + }, + { + "service-instance-id": "service-instance-51", + "service-instance-name": "test765445g", + "model-invariant-id": "709d1be4-9a3f-4a29-8c4d-a20465e808a3", + "model-version-id": "240376de-870e-48df-915a-31f140eedd2c", + "resource-version": "1499868690949", + "orchestration-status": "Active", + "relationship-list": { + "relationship": [ + { + "related-to": "generic-vnf", + "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/fbb52a16-2c57-4212-802f-32dbba2204f2", + "relationship-data": [ + { + "relationship-key": "generic-vnf.vnf-id", + "relationship-value": "fbb52a16-2c57-4212-802f-32dbba2204f2" + } + ], + "related-to-property": [ + { + "property-key": "generic-vnf.vnf-name", + "property-value": "fdfdfdf" + } + ] + } + ] + } + } + ] + }, + "relationship-list": { + "relationship": [ + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/tenant-1", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "tenant-1" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-sspstMAIL" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/23cbbd1872864ea08aa53ade25d34172", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "23cbbd1872864ea08aa53ade25d34172" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN Web Tool-15-D-rtertet" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/ded2432abb5a4100801331d07787afc2", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "ded2432abb5a4100801331d07787afc2" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN/SMS-16-D-SSPecompFlvr2" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/ad5aab08f5f7435e9983311af543f311", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "ad5aab08f5f7435e9983311af543f311" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-X-PODECOMP" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/8071dc66981c4294b05483a1cddac801", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "8071dc66981c4294b05483a1cddac801" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "CESAR-100-X-ecompPODprivate" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/036f769581904ca08ead1415c22b9ec0", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "036f769581904ca08ead1415c22b9ec0" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AINWebTool-15-X-PODECOMPCLONE" + } + ] + }, + { + "related-to": "tenant", + "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/mtn6/tenants/tenant/c2475a36c5e04f12a21593849ae83420", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "att-aic" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "mtn6" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "c2475a36c5e04f12a21593849ae83420" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "AIN/SMS-16-X-hope" + } + ] + } + ] + } +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/aai/service-subscription-service-subscription-3.json b/sparkybe-onap-service/src/test/resources/sync/aai/service-subscription-service-subscription-3.json new file mode 100644 index 0000000..39b46ad --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/aai/service-subscription-service-subscription-3.json @@ -0,0 +1,12 @@ +{ + "service-type": "service-subscription-3", + "resource-version": "1495736709052", + "service-instances": { + "service-instance": [ + { + "service-instance-id": "service-subscription-3", + "resource-version": "1495736709053" + } + ] + } +}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/auth/emptyCert.p12 b/sparkybe-onap-service/src/test/resources/sync/auth/emptyCert.p12 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/auth/emptyCert.p12 diff --git a/sparkybe-onap-service/src/test/resources/sync/etc/autoSuggestMappings.json b/sparkybe-onap-service/src/test/resources/sync/etc/autoSuggestMappings.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/etc/autoSuggestMappings.json @@ -0,0 +1 @@ +{}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/sync/etc/autoSuggestSettings.json b/sparkybe-onap-service/src/test/resources/sync/etc/autoSuggestSettings.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/sync/etc/autoSuggestSettings.json @@ -0,0 +1 @@ +{}
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/user-auth-reader/authorized-users-empty.config b/sparkybe-onap-service/src/test/resources/user-auth-reader/authorized-users-empty.config new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/user-auth-reader/authorized-users-empty.config diff --git a/sparkybe-onap-service/src/test/resources/user-auth-reader/authorized-users.config b/sparkybe-onap-service/src/test/resources/user-auth-reader/authorized-users.config new file mode 100644 index 0000000..b9bb4e2 --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/user-auth-reader/authorized-users.config @@ -0,0 +1,3 @@ +user1 +user2 user3 +user4
\ No newline at end of file diff --git a/sparkybe-onap-service/src/test/resources/user-validator/authorized-users.config b/sparkybe-onap-service/src/test/resources/user-validator/authorized-users.config new file mode 100644 index 0000000..58698bc --- /dev/null +++ b/sparkybe-onap-service/src/test/resources/user-validator/authorized-users.config @@ -0,0 +1,3 @@ + user1 +user2 user3 +user4
\ No newline at end of file |