aboutsummaryrefslogtreecommitdiff
path: root/api/tests.sh
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-03-09 15:04:42 +0100
committerlonkaars <l.leblansch@gmail.com>2021-03-09 15:04:42 +0100
commitda56acd469aa3dc07f9316f8543f7b32fe29deda (patch)
tree0413d61f01795e91d168070cfcd1cbd6b0cc4a0d /api/tests.sh
parenta024764a6b889d8a07119e71d91cc8a9440c8c20 (diff)
search function working :tada:
Diffstat (limited to 'api/tests.sh')
-rwxr-xr-xapi/tests.sh37
1 files changed, 23 insertions, 14 deletions
diff --git a/api/tests.sh b/api/tests.sh
index ce30af3..5281acf 100755
--- a/api/tests.sh
+++ b/api/tests.sh
@@ -72,22 +72,31 @@
# localhost:5000/game/new
# }
-random_game_1 () {
- curl -X POST \
- -H "Content-Type: application/json" \
- -d '{ "user_id": "e6162c82-3e60-4479-ac96-a1af508e49c4" }' \
- localhost:2080/api/game/random
-}
+# random_game_1 () {
+# curl -X POST \
+# -H "Content-Type: application/json" \
+# -d '{ "user_id": "e6162c82-3e60-4479-ac96-a1af508e49c4" }' \
+# localhost:2080/api/game/random
+# }
+
+# random_game_2 () {
+# curl -X POST \
+# -H "Content-Type: application/json" \
+# -d '{ "user_id": "de960155-7d58-46b3-a4f6-7d33aa034ad9" }' \
+# localhost:2080/api/game/random
+# }
+
+# sleep 3
+# random_game_1
+# sleep 10
+# random_game_2
-random_game_2 () {
- curl -X POST \
+search () {
+ curl \
-H "Content-Type: application/json" \
- -d '{ "user_id": "de960155-7d58-46b3-a4f6-7d33aa034ad9" }' \
- localhost:2080/api/game/random
+ -d "{ \"query\": \"$1\" }" \
+ localhost:2080/api/social/search
}
-sleep 3
-random_game_1
-sleep 10
-random_game_2
+search loekaars