Skip to content

v0.2.53..v0.2.54 changeset ServiceHootApiDbReaderCmdTest.sh

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/test-files/cmd/slow/ServiceHootApiDbReaderCmdTest.sh b/test-files/cmd/slow/ServiceHootApiDbReaderCmdTest.sh
index 52bc361..5953c04 100755
--- a/test-files/cmd/slow/ServiceHootApiDbReaderCmdTest.sh
+++ b/test-files/cmd/slow/ServiceHootApiDbReaderCmdTest.sh
@@ -9,16 +9,18 @@ OUTPUT_DIR=test-output/cmd/slow/ServiceHootApiDbReaderCmdTest
 rm -rf $OUTPUT_DIR
 mkdir -p $OUTPUT_DIR
 
+CONFIG="-C Testing.conf"
+
 echo "initial data load"
-hoot convert --warn -D hootapi.db.writer.create.user=true -D api.db.email=$EMAIL -D hootapi.db.writer.overwrite.map=true test-files/DcGisRoads.osm "$HOOT_DB_URL/DcGisRoads-ServiceHootApiDbReaderCmdTest"
+hoot convert --warn $CONFIG -D hootapi.db.writer.create.user=true -D api.db.email=$EMAIL -D hootapi.db.writer.overwrite.map=true test-files/DcGisRoads.osm "$HOOT_DB_URL/DcGisRoads-ServiceHootApiDbReaderCmdTest"
 
 echo "unbounded query"
-hoot convert --warn -D api.db.email=$EMAIL -D convert.ops="hoot::RemoveTagsVisitor;hoot::RemoveAttributesVisitor" -D tag.filter.keys="source:datetime" -D remove.attributes.visitor.types="changeset;timestamp" "$HOOT_DB_URL/DcGisRoads-ServiceHootApiDbReaderCmdTest" $OUTPUT_DIR/output1.osm
-hoot diff --warn test-files/cmd/slow/ServiceHootApiDbReaderTest/output1.osm $OUTPUT_DIR/output1.osm
+hoot convert --warn $CONFIG -D api.db.email=$EMAIL -D convert.ops="hoot::RemoveTagsVisitor;hoot::RemoveAttributesVisitor" -D tag.filter.keys="source:datetime" -D remove.attributes.visitor.types="changeset;timestamp" "$HOOT_DB_URL/DcGisRoads-ServiceHootApiDbReaderCmdTest" $OUTPUT_DIR/output1.osm
+hoot diff --warn $CONFIG test-files/cmd/slow/ServiceHootApiDbReaderTest/output1.osm $OUTPUT_DIR/output1.osm
 
 echo "bounded query"
-hoot convert --warn -D api.db.email=$EMAIL -D convert.ops="hoot::RemoveTagsVisitor;hoot::RemoveAttributesVisitor" -D tag.filter.keys="source:datetime" -D remove.attributes.visitor.types="changeset;timestamp" -D convert.bounding.box=-77.04,38.8916,-77.03324,38.8958 "$HOOT_DB_URL/DcGisRoads-ServiceHootApiDbReaderCmdTest" $OUTPUT_DIR/output2.osm
-hoot diff test-files/cmd/slow/ServiceHootApiDbReaderTest/output2.osm $OUTPUT_DIR/output2.osm
+hoot convert --warn $CONFIG -D api.db.email=$EMAIL -D convert.ops="hoot::RemoveTagsVisitor;hoot::RemoveAttributesVisitor" -D tag.filter.keys="source:datetime" -D remove.attributes.visitor.types="changeset;timestamp" -D convert.bounding.box=-77.04,38.8916,-77.03324,38.8958 "$HOOT_DB_URL/DcGisRoads-ServiceHootApiDbReaderCmdTest" $OUTPUT_DIR/output2.osm
+hoot diff $CONFIG test-files/cmd/slow/ServiceHootApiDbReaderTest/output2.osm $OUTPUT_DIR/output2.osm
 
 echo "clean up database"
-hoot db-delete-map --warn -D api.db.email=$EMAIL "$HOOT_DB_URL/DcGisRoads-ServiceHootApiDbReaderCmdTest"
+hoot db-delete-map --warn $CONFIG -D api.db.email=$EMAIL "$HOOT_DB_URL/DcGisRoads-ServiceHootApiDbReaderCmdTest"
Clone this wiki locally