about summary refs log tree commit diff
path: root/testInsertStarSingle.sh
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-03-15 20:29:28 +0100
committerEmile <hanemile@protonmail.com>2019-03-15 20:29:28 +0100
commitf8cb2a4d3a5fdb56aeeeeb087afa939762637149 (patch)
tree249970605d6d04fa61da89abb94d68b507b8c467 /testInsertStarSingle.sh
parentef0beb88ead85c024fbc271962d0ffb0ec1e1e19 (diff)
created a simple frontend for the db-controller backend
Diffstat (limited to 'testInsertStarSingle.sh')
-rwxr-xr-xtestInsertStarSingle.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/testInsertStarSingle.sh b/testInsertStarSingle.sh
new file mode 100755
index 0000000..36c94a2
--- /dev/null
+++ b/testInsertStarSingle.sh
@@ -0,0 +1,26 @@
+#!/usr/bin/env bash
+
+echo "Recreating the tables..."
+curl -X POST http://localhost:8081/createNodesTable                                                                                
+curl -X POST http://localhost:8081/createStarsTable                                                                                
+echo "Done"
+
+echo "Deleting preexisting tables..."
+curl -X POST http://localhost:8081/deleteStars
+curl -X POST http://localhost:8081/deleteNodes
+echo "Done"
+
+echo "Inserting all stars from teststars.csv..."
+curl -X POST --data "filename=100" http://localhost:8081/insertStarList
+echo "Done"
+
+echo "Inserting a list of stars..."
+echo "Done"
+
+echo "Getting the forest representation of the tree..."
+curl -X GET http://localhost:8081/genForestTree?index=1
+echo "Done"
+
+echo "Getting a list of all stars..."
+curl -X GET http://localhost:8081/starslist/csv                                                                                    
+echo "Done"