-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest
executable file
·34 lines (32 loc) · 1.69 KB
/
test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
API_VERSION=v1
echo "---------------------------------------------------------------------------------------"
echo "Testing Order Microservice"
echo "---------------------------------------------------------------------------------------"
mvn test
echo "---------------------------------------------------------------------------------------"
echo "curl localhost:9080/api/$API_VERSION/order/service/home"
curl localhost:9080/api/$API_VERSION/order/service/home
echo ""
echo "---------------------------------------------------------------------------------------"
echo "curl localhost:9080/api/$API_VERSION/order/service/health"
curl localhost:9080/api/$API_VERSION/order/service/health
echo ""
echo "---------------------------------------------------------------------------------------"
echo "curl localhost:9080/api/$API_VERSION/order/service/ready"
curl localhost:9080/api/$API_VERSION/order/service/ready
echo ""
echo "---------------------------------------------------------------------------------------"
echo "curl -X POST localhost:9080/api/$API_VERSION/order/service/restart"
curl -X POST localhost:9080/api/$API_VERSION/order/service/restart
echo ""
echo "---------------------------------------------------------------------------------------"
sleep 3
echo "curl localhost:9080/api/$API_VERSION/order/service/home"
curl localhost:9080/api/$API_VERSION/order/service/home
echo ""
echo "---------------------------------------------------------------------------------------"
echo "curl localhost:9080/api/$API_VERSION/order/service/ready"
curl localhost:9080/api/$API_VERSION/order/service/ready
echo ""
echo "---------------------------------------------------------------------------------------"