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
0012b7b3
Commit
0012b7b3
authored
Oct 19, 2020
by
QM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add supervision test
parent
f38f684c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
3 deletions
+42
-3
docker-compose.sh
build/docker-compose.sh
+6
-0
docker-compose.yml
build/docker-compose.yml
+12
-0
system-fork-test.sh
build/system-fork-test.sh
+9
-2
docker-compose-paracross.yml
plugin/dapp/paracross/cmd/build/docker-compose-paracross.yml
+15
-0
testcase.sh
plugin/dapp/paracross/cmd/build/testcase.sh
+0
-0
test-rpc.sh
plugin/dapp/paracross/cmd/test/test-rpc.sh
+0
-1
No files found.
build/docker-compose.sh
View file @
0012b7b3
...
...
@@ -33,6 +33,12 @@ CLI5="docker exec ${NODE5} /root/chain33-cli"
# shellcheck disable=SC2034
NODE6
=
"
${
1
}
_chain28_1"
# shellcheck disable=SC2034
NODE7
=
"
${
1
}
_chain27_1"
# shellcheck disable=SC2034
NODE8
=
"
${
1
}
_chain26_1"
# shellcheck disable=SC2034
NODE9
=
"
${
1
}
_chain25_1"
containers
=(
"
${
NODE1
}
"
"
${
NODE2
}
"
"
${
NODE3
}
"
"
${
NODE4
}
"
)
export
COMPOSE_PROJECT_NAME
=
"
$1
"
...
...
build/docker-compose.yml
View file @
0012b7b3
...
...
@@ -24,3 +24,15 @@ services:
chain28
:
build
:
context
:
.
chain27
:
build
:
context
:
.
chain26
:
build
:
context
:
.
chain25
:
build
:
context
:
.
build/system-fork-test.sh
View file @
0012b7b3
...
...
@@ -23,8 +23,15 @@ CLI5="docker exec ${NODE5} /root/chain33-cli"
NODE6
=
"
${
1
}
_chain28_1"
CLI6
=
"docker exec
${
NODE6
}
/root/chain33-cli"
containers
=(
"
${
NODE1
}
"
"
${
NODE2
}
"
"
${
NODE3
}
"
"
${
NODE4
}
"
"
${
NODE5
}
"
"
${
NODE6
}
"
)
forkContainers
=(
"
${
CLI3
}
"
"
${
CLI2
}
"
"
${
CLI
}
"
"
${
CLI4
}
"
"
${
CLI5
}
"
"
${
CLI6
}
"
)
NODE7
=
"
${
1
}
_chain27_1"
CLI7
=
"docker exec
${
NODE7
}
/root/chain33-cli"
NODE8
=
"
${
1
}
_chain26_1"
CLI8
=
"docker exec
${
NODE8
}
/root/chain33-cli"
NODE9
=
"
${
1
}
_chain25_1"
CLI9
=
"docker exec
${
NODE9
}
/root/chain33-cli"
containers
=(
"
${
NODE1
}
"
"
${
NODE2
}
"
"
${
NODE3
}
"
"
${
NODE4
}
"
"
${
NODE5
}
"
"
${
NODE6
}
"
"
${
NODE7
}
"
"
${
NODE8
}
"
"
${
NODE9
}
"
)
forkContainers
=(
"
${
CLI3
}
"
"
${
CLI2
}
"
"
${
CLI
}
"
"
${
CLI4
}
"
"
${
CLI5
}
"
"
${
CLI6
}
"
"
${
CLI7
}
"
"
${
CLI8
}
"
"
${
CLI9
}
"
)
export
COMPOSE_PROJECT_NAME
=
"
$1
"
...
...
plugin/dapp/paracross/cmd/build/docker-compose-paracross.yml
View file @
0012b7b3
...
...
@@ -35,6 +35,21 @@ services:
environment
:
PARAFILE
:
"
/root/chain33.para28.toml"
chain27
:
entrypoint
:
/root/entrypoint.sh
environment
:
PARAFILE
:
"
/root/chain33.para27.toml"
chain26
:
entrypoint
:
/root/entrypoint.sh
environment
:
PARAFILE
:
"
/root/chain33.para26.toml"
chain25
:
entrypoint
:
/root/entrypoint.sh
environment
:
PARAFILE
:
"
/root/chain33.para25.toml"
nginx
:
image
:
nginx:latest
depends_on
:
...
...
plugin/dapp/paracross/cmd/build/testcase.sh
View file @
0012b7b3
This diff is collapsed.
Click to expand it.
plugin/dapp/paracross/cmd/test/test-rpc.sh
View file @
0012b7b3
...
...
@@ -237,7 +237,6 @@ function paracross_GetSupervisionInfo() {
chain33_Http
'{"method":"Chain33.Query","params":[{ "execer":"paracross", "funcName":"GetSupervisionNodeGroupAddrs","payload":{"title":"user.p.para."}}]}'
${
UNIT_HTTP
}
'(.error|not) and (.result| [has("key","value"),true])'
"GetSupervisionNodeGroupAddrs"
chain33_Http
'{"method":"Chain33.Query","params":[{ "execer":"paracross", "funcName":"GetSupervisionNodeGroupStatus","payload":{"title":"user.p.para."}}]}'
${
UNIT_HTTP
}
'(.error|not) and (.result| [has("status"),true])'
"GetSupervisionNodeGroupStatus"
chain33_Http
'{"method":"Chain33.Query","params":[{ "execer":"paracross", "funcName":"ListSupervisionNodeGroupStatus","payload":{"title":"user.p.para.","status":2}}]}'
${
UNIT_HTTP
}
'(.error|not) and (.result| [has("status"),true])'
"ListSupervisionNodeGroupStatus status:2"
chain33_Http
'{"method":"Chain33.Query","params":[{ "execer":"paracross", "funcName":"ListSupervisionNodeGroupStatus","payload":{"title":"user.p.para.","status":3}}]}'
${
UNIT_HTTP
}
'(.error|not) and (.result| [has("status"),true])'
"ListSupervisionNodeGroupStatus status:3"
chain33_Http
'{"method":"Chain33.Query","params":[{ "execer":"paracross", "funcName":"ListSupervisionNodeGroupStatus","payload":{"title":"user.p.para.","status":4}}]}'
${
UNIT_HTTP
}
'(.error|not) and (.result| [has("status"),true])'
"ListSupervisionNodeGroupStatus status:4"
}
...
...
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