aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/test_framework
AgeCommit message (Collapse)Author
2016-07-14Merge #8311: Rename CTxinWitness -> CTxInWitnessWladimir J. van der Laan
36ae37a Rename CTxinWitness -> CTxInWitness (Bob McElrath)
2016-07-08Merge #7540: Rename OP_NOP3 to OP_CHECKSEQUENCEVERIFYWladimir J. van der Laan
18c975c Rename NOP3 to CHECSEQUENCEVERIFY in rpc tests (BtcDrak) 14d0130 Rename OP_NOP3 to OP_CHECKSEQUENCEVERIFY (BtcDrak)
2016-07-07[qa] test_framework: Add wrapper for stop_nodeMarcoFalke
2016-07-06Rename CTxinWitness -> CTxInWitnessBob McElrath
2016-06-28Rename OP_NOP3 to OP_CHECKSEQUENCEVERIFYBtcDrak
2016-06-22[qa] p2p segwit testsSuhas Daftuar
mininode now supports witness transactions/blocks, blocktools has a helper for adding witness commitments to blocks, and script has a function to calculate hashes for signature under sigversion 1, used by segwit. Py3 conversion by Marco Falke Test to make sure upgraded nodes don't ask for non-wit blocks by Gregory Sanders.
2016-06-20Merge #8066: [qa] test_framework: Use different rpc_auth_pair for each nodeWladimir J. van der Laan
fad1845 [qa] test_framework: Use different rpc_auth_pair for each node (MarcoFalke)
2016-06-17[qa] mininode: fail on send_message instead of silent returnMarcoFalke
2016-06-16Merge #7892: Add full UTF-8 support to RPCWladimir J. van der Laan
7982fce doc: Mention full UTF-8 support in release notes (Wladimir J. van der Laan) 6bbb4ef test: test utf-8 for labels in wallet (Wladimir J. van der Laan) a406fcb test: add ensure_ascii setting to AuthServiceProxy (Wladimir J. van der Laan) 60ab9b2 Squashed 'src/univalue/' changes from 2740c4f..f32df99 (Wladimir J. van der Laan)
2016-06-13[qa] util: Move check_fee_amount out of wallet.pyMarcoFalke
2016-06-13Merge #8141: Continuing port of java comparison toolWladimir J. van der Laan
ff2dcf2 Tests: Edit bloated varint test and add option for 'barely expensive' tests (mrbandrews) 12c5a16 Catch exceptions from non-canonical encoding and print only to log (mrbandrews) 291f8aa Continuing port of java comptool (mrbandrews) 8c9e681 Tests: Rework blockstore to avoid re-serialization. (mrbandrews)
2016-06-10test: add ensure_ascii setting to AuthServiceProxyWladimir J. van der Laan
Add a setting ensure_ascii to AuthServiceProxy. This setting, defaulting to True (backwards compatible), is passed through to json.dumps. If set to False, non-ASCII characters >0x80 are not escaped. This is useful for testing server input processing, as well as slightly more bandwidth friendly in case of heavy unicode usage.
2016-06-02Continuing port of java comptoolmrbandrews
2016-06-02Fix interrupted HTTP RPC connection workaround for Python 3.5+Pieter Wuille
2016-05-31Tests: Rework blockstore to avoid re-serialization.mrbandrews
2016-05-29Merge #8104: Tests: add timeout to sync_blocks() and sync_mempools()MarcoFalke
e871f83 Tests: add timeout to sync_blocks() and sync_mempools() (Suhas Daftuar)
2016-05-27Merge #8098: [qa] test_framework: Append portseed to tmpdirMarcoFalke
fa57b0c [qa] test_framework: Append portseed to tmpdir (MarcoFalke)
2016-05-26Tests: add timeout to sync_blocks() and sync_mempools()Suhas Daftuar
Previously these functions would infinitely loop if sync failed; now they have a default timeout of 60 seconds, after which an AssertionError is raised. sync_blocks() has also been improved and now compares the tip hash of each node, rather than just using block count.
2016-05-25Test framework: only cleanup on successful test runsSuhas Daftuar
2016-05-20Merge #8047: [qa] test_framework: Set wait-timeout for bitcoind procsMarcoFalke
fab5233 [qa] test_framework: Set wait-timeout for bitcoind procs (MarcoFalke)
2016-05-20[qa] test_framework: Append portseed to tmpdirMarcoFalke
This makes it possible to specify a tmpdir while running tests in parallel
2016-05-17[qa] test_framework: Use different rpc_auth_pair for each nodeMarcoFalke
2016-05-15[qa] Remove hardcoded "4 nodes" from test_frameworkMarcoFalke
2016-05-12[qa] test_framework: Set wait-timeout for bitcoind procsMarcoFalke
2016-05-09[qa] Add option --portseed to test_frameworkMarcoFalke
2016-05-09Merge #7971: [qa] Refactor test_framework and pull testerMarcoFalke
fad3366 [qa] pull-tester: Adjust comment (MarcoFalke) fafb33c [qa] Stop other nodes, even when one fails to stop (MarcoFalke) 2222dae [qa] Update README.md (MarcoFalke) fabbf6b [qa] Refactor test_framework and pull tester (MarcoFalke)
2016-05-09Autofind rpc tests --srcdirJonas Schnelli
2016-05-06[qa] Stop other nodes, even when one fails to stopMarcoFalke
2016-05-06[qa] Refactor test_framework and pull testerMarcoFalke
* log to stdout * increase range for p2p and rpc ports * UPPERCASE_CONSTANTS * Stop nodes on CTRL+C
2016-05-05[qa] Switch to py3MarcoFalke
2016-04-26[qa] test_framework: Properly print exceptions and assert empty dictMarcoFalke
2016-04-23[qa] mininode: Unfiddle strings into bytesMarcoFalke
2016-04-20Tests: Fix deserialization of reject messagesSuhas Daftuar
Assume that reject messages for blocks or transactions due to reason REJECT_MALFORMED will not include the hash of the block or tx being rejected.
2016-04-19Move method to check matches within arrays on util.pyJoao Fonseca
2016-04-18Merge #7833: tests: Check Content-Type header returned from RPC serverWladimir J. van der Laan
5078ca4 tests: Check Content-Type header returned from RPC server (Wladimir J. van der Laan)
2016-04-14Merge #7853: [qa] py2: Unfiddle strings into bytes explicitlyWladimir J. van der Laan
faa41ee [qa] py2: Unfiddle strings into bytes explicitly (MarcoFalke)
2016-04-13rpc-tests: handle KeyError nicely in test_framework.pyRusty Russell
btcdrak wrote this for me. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2016-04-13getblockchaininfo: make bip9_softforks an object, not an array.Rusty Russell
We can't change "softforks", but it seems far more logical to use tags in an object rather than using an "id" field in an array. For example, to get the csv status before, you need to iterate the array to find the entry with 'id' field equal to "csv": jq '.bip9_softforks | map(select(.id == "csv"))[] | .status' Now: jq '.bip9_softforks.csv.status' There is no issue with fork names being incompatible with JSON tags, since we're selecting them ourselves. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2016-04-10[qa] py2: Unfiddle strings into bytes explicitlyMarcoFalke
2016-04-07Tests: move get_bip9_status to util.pySuhas Daftuar
2016-04-07tests: Check Content-Type header returned from RPC serverWladimir J. van der Laan
Check the Content-Type header that is returned from the RPC server. Only if it is `application/json` the data is supposed to be parsed as JSON. This gives better reporting if the HTTP server happens to return an error that is not JSON-formatted, which is the case if it happens at a lower level before JSON-RPC kicks in. Before: `Unexpected exception caught during testing: No JSON object could be decoded` After: `JSONRPC error: non-JSON HTTP response with '403 Forbidden' from server`
2016-04-03Merge #7778: [qa] Bug fixes and refactorWladimir J. van der Laan
4444806 [qa] mininode: Combine struct.pack format strings (MarcoFalke) faaa3c9 [qa] mininode: Catch exceptions in got_data (MarcoFalke) fa2cea1 [qa] rpc-tests: Properly use integers, floats (MarcoFalke) fa524d9 [qa] Use python2/3 syntax (MarcoFalke)
2016-04-02[qa] mininode: Combine struct.pack format stringsMarcoFalke
2016-04-01[qa] mininode: Catch exceptions in got_dataMarcoFalke
2016-04-01[qa] rpc-tests: Properly use integers, floatsMarcoFalke
2016-04-01Merge #7489: tests: Make proxy_test work on travis servers without IPv6Wladimir J. van der Laan
7539f1a tests: Make proxy_test work on travis servers without IPv6 (Wladimir J. van der Laan)
2016-03-31[qa] Use python2/3 syntaxMarcoFalke
2016-03-30Merge #7648: BIP9 versionbits softfork for BIP68, BIP112 and BIP113Wladimir J. van der Laan
71527a0 Test of BIP9 fork activation of mtp, csv, sequence_lock (NicolasDorier) 19d73d5 Add RPC test for BIP 68/112/113 soft fork. (Alex Morcos) 12c89c9 Policy: allow transaction version 2 relay policy. (BtcDrak) 02c2435 Soft fork logic for BIP68 (BtcDrak) 478fba6 Soft fork logic for BIP113 (BtcDrak) 65751a3 Add CHECKSEQUENCEVERIFY softfork through BIP9 (Pieter Wuille)
2016-03-29Merge #7744: test_framework: detect failure of bitcoind startupWladimir J. van der Laan
018b60c test_framework: detect failure of bitcoind startup (Wladimir J. van der Laan)
2016-03-28test_framework: Py3.4 compat: Specify timeout parameter by nameLuke Dashjr
Changed in version 3.4: The strict parameter was removed. HTTP 0.9-style “Simple Responses” are not longer supported. (https://docs.python.org/3/library/http.client.html) Source: https://github.com/jgarzik/python-bitcoinrpc/commit/7ebeebb4f61917fe590d980cb4f9aefdce2c8f25