Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
8bdd6b25
Commit
8bdd6b25
authored
Jun 22, 2019
by
vipwzw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto ci
parent
ea4ebe89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
test-rpc.sh
plugin/dapp/paracross/cmd/test/test-rpc.sh
+8
-8
No files found.
plugin/dapp/paracross/cmd/test/test-rpc.sh
View file @
8bdd6b25
...
@@ -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
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment