Skip to content

Commit

Permalink
adding shell for test
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoOMaia committed Nov 25, 2023
1 parent e439938 commit 8ece831
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,10 @@ wget --server-response \
--output-document response.out \
--header='Content-Type: application/json' \
--post-data '{"songs": ["Yesterday", "Bohemian Rhapsody"]}' \
http://10.96.150.194:32196/api/recommend
http://<CLUSTER-IP>:32196/api/recommend
```
use o script sheel ``test.sh`` para testar alterando o ``<CLUSTER-IP>`` para o ip do cluster
voce pode ver o ip do cluster com o comando ``kubectl get services``
```
./test.sh
```
2 changes: 1 addition & 1 deletion client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
import json

api_url = 'http://10.96.150.194:32196/api/recommend'
api_url = 'http://10.111.233.250:32196/api/recommend'

if len(sys.argv) < 2:
print("Usage: python client.py <song1> ...")
Expand Down
5 changes: 5 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
wget --server-response \
--output-document response.out \
--header='Content-Type: application/json' \
--post-data '{"songs": ["Yesterday", "Bohemian Rhapsody"]}' \
http://10.111.233.250:32171/api/recommend

0 comments on commit 8ece831

Please sign in to comment.