diff options
Diffstat (limited to 'testInsertStarSingle.sh')
-rwxr-xr-x | testInsertStarSingle.sh | 26 |
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" |