Skip to content

v0.2.47..v0.2.48 changeset ServiceExportOsm.sh

Garret Voltz edited this page Sep 27, 2019 · 1 revision
diff --git a/test-files/cmd/glacial/ServiceExportOsm.sh b/test-files/cmd/glacial/ServiceExportOsm.sh
index 6bf7d9a..b8fb7f4 100755
--- a/test-files/cmd/glacial/ServiceExportOsm.sh
+++ b/test-files/cmd/glacial/ServiceExportOsm.sh
@@ -4,7 +4,6 @@ set -e
 source $HOOT_HOME/conf/database/DatabaseConfig.sh
 
 export DB_URL="hootapidb://$DB_USER:$DB_PASSWORD@$DB_HOST:$DB_PORT/$DB_NAME"
-export PG_URL="dbname='$WFS_DB_NAME' host='$DB_HOST' port='$DB_PORT' user='$DB_USER' password='$DB_PASSWORD'"
 export PGPASSWORD=$DB_PASSWORD
 export outputname=service-export-test
 export outputfolder=$HOOT_HOME/tmp/$outputname
@@ -19,10 +18,6 @@ hoot convert $HOOT_OPTS test-files/$inputfile.osm $DB_URL/$input
 # Delete any previous output
 rm -rf $outputfolder
 
-# Delete any previous WFS data store tables
-SQL=$( psql -h $DB_HOST -t -A -d $WFS_DB_NAME -U $DB_USER -p $DB_PORT -c "SELECT 'DROP TABLE \"' || tablename || '\";' FROM pg_tables WHERE tablename like 'service_export_test\_%';" )
-echo $SQL | psql -h $DB_HOST -d $WFS_DB_NAME -U $DB_USER -p $DB_PORT > /dev/null
-
 echo "Test osm with no translation"
 export translation=""
 export outputtype=osm
@@ -38,17 +33,8 @@ export translation="translations/TDSv61.js"
 export outputtype=gdb
 MAKEFLAGS= make -f $HOOT_HOME/scripts/core/osm2ogrscript > /dev/null
 
-echo "Test wfs with TDSv4.0 translation"
-export translation="translations/TDSv40.js"
-export outputtype=wfs
-MAKEFLAGS= make -f $HOOT_HOME/scripts/core/osm2ogrscript > /dev/null
-
 echo "Remove ingested data"
 hoot delete-db-map $HOOT_OPTS $DB_URL/$input
 
-echo "Remove WFS data store tables"
-SQL=$( psql -h $DB_HOST -t -A -d $WFS_DB_NAME -U $DB_USER -p $DB_PORT -c "SELECT 'DROP TABLE \"' || tablename || '\";' FROM pg_tables WHERE tablename like 'service_export_test\_%';" )
-echo $SQL | psql -h $DB_HOST -d $WFS_DB_NAME -U $DB_USER -p $DB_PORT > /dev/null
-
 # Remove file output
 rm -rf $outputfolder
Clone this wiki locally