aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-02-25 09:27:07 +0000
committerterminaldweller <thabogre@gmail.com>2021-02-25 09:27:07 +0000
commit35c8beccf69860479ff86215d08c8a05ed0a48a8 (patch)
tree4511787256d54fca259fe9c92af9d4589aeade7d
parentturns out we really need that health endpoint after all. travis fix... (diff)
downloadhived-35c8beccf69860479ff86215d08c8a05ed0a48a8.tar.gz
hived-35c8beccf69860479ff86215d08c8a05ed0a48a8.zip
maybe localhost?
Diffstat (limited to '')
-rwxr-xr-xtest/endpoints.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/endpoints.sh b/test/endpoints.sh
index 42de548..214b1c7 100755
--- a/test/endpoints.sh
+++ b/test/endpoints.sh
@@ -3,7 +3,9 @@ set -e
set -x
sleep 5
-curl -X GET http://127.0.0.1:8008/price?name=CAKE&unit=USD
-curl -X GET http://127.0.0.1:8008/pair?one=ETH&two=CAKE&multiplier=4.0
-curl -X POST -H "Content-Type: application/json" -d '{"name":"alert1", "expr":"ETH>CAKE"}' http://127.0.0.1:8008/addalert
-#curl -X POST
+curl -X GET http://localhost:8008/price?name=CAKE&unit=USD
+curl -X GET http://localhost:8008/pair?one=ETH&two=CAKE&multiplier=4.0
+curl -X POST -H "Content-Type: application/json" -d '{"name":"alert1", "expr":"ETH>CAKE"}' http://localhost:8008/addalert
+# curl -X GET http://127.0.0.1:8008/price?name=CAKE&unit=USD
+# curl -X GET http://127.0.0.1:8008/pair?one=ETH&two=CAKE&multiplier=4.0
+# curl -X POST -H "Content-Type: application/json" -d '{"name":"alert1", "expr":"ETH>CAKE"}' http://127.0.0.1:8008/addalert