This repository aims to test go-seele. basically it includes the following three types of testing.
An independent reporisity for cli-api. it's name is e2e-blackbox.
virtualenv ~/testEnv
source ~/testEnv
pip install -r requirements.txt
Simply test me
py.test http/test_*
Generates a HTML report for the test results.
# for http only
py.test --html=report.html http/test_*
# for websocket only
gunicorn --bind 0.0.0.0:5000 ws2http:app # a middleware for access node by websocket.
py.test --html=report.html ws/test_*
Send the result to someone, who care about it by email. python main.py
to notice developer as soon as test finished. you should set your email.
export MAIL_ADDR=<your-email@xxx.com>
export MAIL_PASSWD=<your-email-password>
docker build -t my-test-server .
docker run -it --rm --name my-running-app my-test-server
# or run it in daemon mode
docker run -d --rm --name my-running-app my-test-server
To fire up your test case, there are three way to reach that.
- scheduler job
- monitor the commit of the reporisity by developer.
- manual trigger
HTTP | WS | TCP | CLI | Status |
---|---|---|---|---|
seele_getInfo | - | - | getinfo | ✔︎ |
seele_getAccountNonce | - | - | getnonce | |
seele_getBlockHeight | - | - | getblockheight | ✔︎ |
seele_getBlock | - | - | getblock | ✔︎ |
seele_call | - | - | call | ✔︎ |
seele_getBlockByHeight | - | - | - | ✔︎ |
seele_getBlockByHash | - | - | getdebtbyhash | ✔︎ |
monitor_nodeInfo | - | - | getinfo | ✔︎ |
monitor_nodeStats | - | - | - | ✔︎ |
seele_getBalance | - | - | getbalance | ✔︎ |
- debug_getTPS
- debug_dumpHeap
- network_getProtocolVersion
- network_getPeersInfo
- network_getPeerCount
- network_getNetVersion
- network_getNetworkID
- miner_start
- miner_stop
- miner_status
- miner.GetCoinbase
- miner_setThreads
- miner_setcoinbase
- miner_getEngineInfo
- debug_printBlock
- debug_getTxPoolContent
- debug_getTxPoolTxCount
- debug_getPendingTransactions
- debug_getPendingDebts
- debug_dumpHeap
- download_getStatus
- seele_addTx