diff options
author | 2018-03-22 00:32:52 -0400 | |
---|---|---|
committer | 2018-03-22 09:34:25 -0400 | |
commit | ba31685194c77ef140411531299696ae701385d4 (patch) | |
tree | 912f7d5b3378901ccabb8df52b26866d74572f10 /src/test/resources/es_test_scripts | |
parent | ef7f255958e541ffaec0fd2a977440dd7b6fd6b8 (diff) |
Convert Sparky to Spring-Boot
Issue-ID: AAI-599
Change-Id: If474dd02794f442fdddcd90f62fb75e0d6b907e7
Signed-off-by: da490c <dave.adams@amdocs.com>
Diffstat (limited to 'src/test/resources/es_test_scripts')
8 files changed, 0 insertions, 131 deletions
diff --git a/src/test/resources/es_test_scripts/commands.txt b/src/test/resources/es_test_scripts/commands.txt deleted file mode 100644 index 5d25157..0000000 --- a/src/test/resources/es_test_scripts/commands.txt +++ /dev/null @@ -1,3 +0,0 @@ -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/src/test/resources/es_test_scripts/geoEntities.json b/src/test/resources/es_test_scripts/geoEntities.json deleted file mode 100644 index 9af3978..0000000 --- a/src/test/resources/es_test_scripts/geoEntities.json +++ /dev/null @@ -1,6 +0,0 @@ -{"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/src/test/resources/es_test_scripts/prepareGeoEntityBulkImport.pl b/src/test/resources/es_test_scripts/prepareGeoEntityBulkImport.pl deleted file mode 100644 index 67ed571..0000000 --- a/src/test/resources/es_test_scripts/prepareGeoEntityBulkImport.pl +++ /dev/null @@ -1,41 +0,0 @@ -#!/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/src/test/resources/es_test_scripts/sampleGeoEntities.csv b/src/test/resources/es_test_scripts/sampleGeoEntities.csv deleted file mode 100644 index d149e39..0000000 --- a/src/test/resources/es_test_scripts/sampleGeoEntities.csv +++ /dev/null @@ -1,4 +0,0 @@ -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/src/test/resources/es_test_scripts/topoHistoryBulkLoad.json b/src/test/resources/es_test_scripts/topoHistoryBulkLoad.json deleted file mode 100644 index 77d57f7..0000000 --- a/src/test/resources/es_test_scripts/topoHistoryBulkLoad.json +++ /dev/null @@ -1,24 +0,0 @@ -{"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/src/test/resources/es_test_scripts/topoHistoryConfigSettings.json b/src/test/resources/es_test_scripts/topoHistoryConfigSettings.json deleted file mode 100644 index 875813e..0000000 --- a/src/test/resources/es_test_scripts/topoHistoryConfigSettings.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "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/src/test/resources/es_test_scripts/topographicalConfigSettings.json b/src/test/resources/es_test_scripts/topographicalConfigSettings.json deleted file mode 100644 index c9f5d5d..0000000 --- a/src/test/resources/es_test_scripts/topographicalConfigSettings.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "mappings": { - "default": { - "properties": { - "pkey": { - "type": "string" - }, - "entityType": { - "type": "string" - }, - "longitude": { - "type": "string" - }, - "latitude": { - "type": "string" - }, - "selfLink": { - "type": "string" - } - } - } - - } -} diff --git a/src/test/resources/es_test_scripts/topographysearch_schema.json b/src/test/resources/es_test_scripts/topographysearch_schema.json deleted file mode 100644 index 5de6904..0000000 --- a/src/test/resources/es_test_scripts/topographysearch_schema.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "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 |