Commit 8bdd6b25 authored by vipwzw's avatar vipwzw

auto ci

parent ea4ebe89
...@@ -120,7 +120,7 @@ function paracross_Transfer_Withdraw() { ...@@ -120,7 +120,7 @@ function paracross_Transfer_Withdraw() {
fi fi
else else
#echo "para_cross_transfer_withdraw success" #echo "para_cross_transfer_withdraw success"
count=`expr $count + 1`; count=$(expr $count + 1)
break break
fi fi
done done
...@@ -148,7 +148,7 @@ function paracross_Transfer_Withdraw() { ...@@ -148,7 +148,7 @@ function paracross_Transfer_Withdraw() {
fi fi
else else
#echo "para_cross_transfer_withdraw success" #echo "para_cross_transfer_withdraw success"
count=`expr $count + 1`; count=$(expr $count + 1)
break break
fi fi
done done
...@@ -173,7 +173,7 @@ function paracross_ListTitles() { ...@@ -173,7 +173,7 @@ function paracross_ListTitles() {
local resp local resp
local ok local ok
resp=$(curl -ksd '{"method":"paracross.ListTitles","params":[]}' ${UNIT_HTTP}) resp=$(curl -ksd '{"method":"paracross.ListTitles","params":[]}' ${UNIT_HTTP})
#echo $resp #echo $resp
ok=$(jq '(.error|not) and (.result| [has("titles"),true])' <<<"$resp") ok=$(jq '(.error|not) and (.result| [has("titles"),true])' <<<"$resp")
[ "$ok" == true ] [ "$ok" == true ]
...@@ -185,7 +185,7 @@ function paracross_GetHeight() { ...@@ -185,7 +185,7 @@ function paracross_GetHeight() {
local resp local resp
local ok local ok
resp=$(curl -ksd '{"method":"paracross.GetHeight","params":[]}' ${UNIT_HTTP}) resp=$(curl -ksd '{"method":"paracross.GetHeight","params":[]}' ${UNIT_HTTP})
#echo $resp #echo $resp
ok=$(jq '(.error|not) and (.result| [has("consensHeight"),true])' <<<"$resp") ok=$(jq '(.error|not) and (.result| [has("consensHeight"),true])' <<<"$resp")
[ "$ok" == true ] [ "$ok" == true ]
...@@ -197,7 +197,7 @@ function paracross_GetNodeGroupAddrs() { ...@@ -197,7 +197,7 @@ function paracross_GetNodeGroupAddrs() {
local resp local resp
local ok local ok
resp=$(curl -ksd '{"method":"paracross.GetNodeGroupAddrs","params":[{"title":"user.p.para."}]}' ${UNIT_HTTP}) resp=$(curl -ksd '{"method":"paracross.GetNodeGroupAddrs","params":[{"title":"user.p.para."}]}' ${UNIT_HTTP})
#echo $resp #echo $resp
ok=$(jq '(.error|not) and (.result| [has("key","value"),true])' <<<"$resp") ok=$(jq '(.error|not) and (.result| [has("key","value"),true])' <<<"$resp")
[ "$ok" == true ] [ "$ok" == true ]
...@@ -209,7 +209,7 @@ function paracross_GetNodeGroupStatus() { ...@@ -209,7 +209,7 @@ function paracross_GetNodeGroupStatus() {
local resp local resp
local ok local ok
resp=$(curl -ksd '{"method":"paracross.GetNodeGroupStatus","params":[{"title":"user.p.para."}]}' ${UNIT_HTTP}) resp=$(curl -ksd '{"method":"paracross.GetNodeGroupStatus","params":[{"title":"user.p.para."}]}' ${UNIT_HTTP})
#echo $resp #echo $resp
ok=$(jq '(.error|not) and (.result| [has("status"),true])' <<<"$resp") ok=$(jq '(.error|not) and (.result| [has("status"),true])' <<<"$resp")
[ "$ok" == true ] [ "$ok" == true ]
...@@ -221,7 +221,7 @@ function paracross_ListNodeGroupStatus() { ...@@ -221,7 +221,7 @@ function paracross_ListNodeGroupStatus() {
local resp local resp
local ok local ok
resp=$(curl -ksd '{"method":"paracross.ListNodeGroupStatus","params":[{"title":"user.p.para.","status":2}]}' ${UNIT_HTTP}) resp=$(curl -ksd '{"method":"paracross.ListNodeGroupStatus","params":[{"title":"user.p.para.","status":2}]}' ${UNIT_HTTP})
#echo $resp #echo $resp
ok=$(jq '(.error|not) and (.result| [has("status"),true])' <<<"$resp") ok=$(jq '(.error|not) and (.result| [has("status"),true])' <<<"$resp")
[ "$ok" == true ] [ "$ok" == true ]
...@@ -233,7 +233,7 @@ function paracross_ListNodeStatus() { ...@@ -233,7 +233,7 @@ function paracross_ListNodeStatus() {
local resp local resp
local ok local ok
resp=$(curl -ksd '{"method":"paracross.ListNodeStatus","params":[{"title":"user.p.para.","status":4}]}' ${UNIT_HTTP}) resp=$(curl -ksd '{"method":"paracross.ListNodeStatus","params":[{"title":"user.p.para.","status":4}]}' ${UNIT_HTTP})
#echo $resp #echo $resp
ok=$(jq '(.error|not) and (.result| [has("status"),true])' <<<"$resp") ok=$(jq '(.error|not) and (.result| [has("status"),true])' <<<"$resp")
[ "$ok" == true ] [ "$ok" == true ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment