aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/test_framework
Commit message (Collapse)AuthorAgeFilesLines
...
* | Make test framework produce lowS signaturesJohnson Lau2016-10-161-2/+23
| |
* | [qa] Add support for compactblocks v2 to mininodeSuhas Daftuar2016-10-041-4/+31
| |
* | [qa] Fix bug in mininode witness deserializationSuhas Daftuar2016-10-041-3/+3
| | | | | | | | Also improve tx printing
* | Merge #8860: [qa] util: Move wait_bitcoinds() into stop_nodes()MarcoFalke2016-10-032-5/+1
|\ \ | | | | | | | | | fa7c35c [qa] util: Move wait_bitcoinds() into stop_nodes() (MarcoFalke)
| * | [qa] util: Move wait_bitcoinds() into stop_nodes()MarcoFalke2016-10-022-5/+1
| | |
* | | [qa] mininode: Only allow named args in wait_untilMarcoFalke2016-10-021-1/+1
|/ /
* | Merge #8854: [qa] Fix race condition in p2p-compactblocks testMarcoFalke2016-10-011-1/+1
|\ \ | | | | | | | | | b5fd666 [qa] Fix race condition in p2p-compactblocks test (Suhas Daftuar)
| * | [qa] Fix race condition in p2p-compactblocks testSuhas Daftuar2016-09-301-1/+1
| | | | | | | | | | | | Also fix a bug in the sync_with_ping() helper function
* | | Merge #8839: test: Avoid ConnectionResetErrors during RPC testsWladimir J. van der Laan2016-09-301-2/+3
|\ \ \ | | | | | | | | | | | | 1d28faf test: Avoid ConnectionResetErrors during RPC tests (Wladimir J. van der Laan)
| * | | test: Avoid ConnectionResetErrors during RPC testsWladimir J. van der Laan2016-09-291-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | This is necessary on FreeBSD and MacOSX, at least. See https://github.com/bitcoin/bitcoin/pull/8834#issuecomment-250450213
* | | | test: Explicitly set encoding to utf8 when opening text filesWladimir J. van der Laan2016-09-293-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are text files but their encoding does not depend on the locale. Not all of them require utf8 but it is better to fix it at something to remove potential unpredictability. This is necessary on FreeBSD where no locale is set by default, and apparently Python defaults not only the terminal encoding to the locale but that of every text file. So without LOCALE environment it defaults text file encoding to ASCII. This causes problems with e.g. `bitcoin.conf`. Luckily the locale doesn't affect the default encoding for str.encode() and bytes.decode() on Python 3, so this is the only change necessary.
* | | | [qa] blockstore: Switch to dumb dbmMarcoFalke2016-09-291-3/+3
|/ / /
* / / tests: Add exception error message for JSONRPCExceptionWladimir J. van der Laan2016-09-251-1/+5
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This improves error reporting if `JSONRPCException` is not specifically caught and ends up in Python's default backtrace handler. Before: ``` Traceback (most recent call last): File "/.../projects/bitcoin/bitcoin/qa/rpc-tests/test_framework/authproxy.py", line 153, in __call__ raise JSONRPCException(response['error']) test_framework.authproxy.JSONRPCException ``` After: ``` Traceback (most recent call last): File "/.../projects/bitcoin/bitcoin/qa/rpc-tests/test_framework/authproxy.py", line 152, in __call__ raise JSONRPCException(response['error']) test_framework.authproxy.JSONRPCException: Unknown named parameter random (-8) ```
* | Merge #8676: Add missing copyright headersWladimir J. van der Laan2016-09-191-0/+3
|\ \ | | | | | | | | | 783e930 [copyright] Add missing copyright headers (isle2983)
| * | [copyright] Add missing copyright headersisle29832016-09-111-0/+3
| |/
* | Merge #8652: [qa]: remove root test directory for RPC testsMarcoFalke2016-09-131-1/+4
|\ \ | | | | | | | | | | | | c62cc4e fix path for bak file (whythat) 438e94d remove root test directory for RPC tests (whythat)
| * | remove root test directory for RPC testswhythat2016-09-051-1/+4
| |/
* | Merge #8667: Fix SIGHASH_SINGLE bug in test_framework SignatureHashMarcoFalke2016-09-091-1/+1
|\ \ | | | | | | | | | 2f2548d Fix SIGHASH_SINGLE bug in test_framework SignatureHash (Johnson Lau)
| * | Fix SIGHASH_SINGLE bug in test_framework SignatureHashJohnson Lau2016-09-061-1/+1
| |/ | | | | The value for "other" inputs should be -1 (0xffffffffffffffff) instead of 0
* / add waitfornewblock/waitforblock/waitforblockheight rpcs and use them for testsCory Fields2016-09-071-2/+6
|/ | | | | | | | | | | | | | waitfornewblock waits until a new block is received, or the timeout expires, then returns the current block height/hash. waitforblock waits for a specific blockhash, or until the timeout expires, then returns the current block height/hash. If the target blockhash is the current tip, it will return immediately. waitforblockheight waits until the tip has reached a certain height or higher, then returns the current height and hash. waitforblockheight is used to avoid polling in the rpc tests.
* Revert "[qa] Adjust timeouts for micro-optimization of run time"Wladimir J. van der Laan2016-08-181-2/+2
| | | | | | This reverts commit fa2d68f79c459b505652728c3d8da60679f98ae3. Temporary revert - see discussion in #8532.
* Merge #8482: [qa] Use single cache dir for chainsWladimir J. van der Laan2016-08-172-13/+15
|\ | | | | | | | | | | fad8cf6 [qa] Use single cache dir for chains (MarcoFalke) fa2d68f [qa] Adjust timeouts for micro-optimization of run time (MarcoFalke) fae596f [qa] Sort scripts by time for pull_tester and don't overwrite setup_chain (MarcoFalke)
| * [qa] Use single cache dir for chainsMarcoFalke2016-08-072-11/+13
| |
| * [qa] Adjust timeouts for micro-optimization of run timeMarcoFalke2016-08-071-2/+2
| |
* | Merge #8418: Add tests for compact blocksWladimir J. van der Laan2016-08-022-76/+361
|\ \ | | | | | | | | | | | | | | | | | | | | | 45c7ddd Add p2p test for BIP 152 (compact blocks) (Suhas Daftuar) 9a22a6c Add support for compactblocks to mininode (Suhas Daftuar) a8689fd Tests: refactor compact size serialization in mininode (Suhas Daftuar) 9c8593d Implement SipHash in Python (Pieter Wuille) 56c87e9 Allow changing BIP9 parameters on regtest (Suhas Daftuar)
| * | Add support for compactblocks to mininodeSuhas Daftuar2016-07-291-4/+272
| | |
| * | Tests: refactor compact size serialization in mininodeSuhas Daftuar2016-07-291-72/+25
| | |
| * | Implement SipHash in PythonPieter Wuille2016-07-291-0/+64
| | |
* | | [qa]: add parsing for '<host>:<port>' argument form to rpc_url()whythat2016-07-251-1/+9
|/ /
* | Merge #8311: Rename CTxinWitness -> CTxInWitnessWladimir J. van der Laan2016-07-142-4/+4
|\ \ | | | | | | | | | 36ae37a Rename CTxinWitness -> CTxInWitness (Bob McElrath)
| * | Rename CTxinWitness -> CTxInWitnessBob McElrath2016-07-062-4/+4
| |/
* | Merge #7540: Rename OP_NOP3 to OP_CHECKSEQUENCEVERIFYWladimir J. van der Laan2016-07-081-4/+4
|\ \ | | | | | | | | | | | | 18c975c Rename NOP3 to CHECSEQUENCEVERIFY in rpc tests (BtcDrak) 14d0130 Rename OP_NOP3 to OP_CHECKSEQUENCEVERIFY (BtcDrak)
| * | Rename OP_NOP3 to OP_CHECKSEQUENCEVERIFYBtcDrak2016-06-281-4/+4
| |/
* / [qa] test_framework: Add wrapper for stop_nodeMarcoFalke2016-07-071-0/+4
|/
* [qa] p2p segwit testsSuhas Daftuar2016-06-223-27/+262
| | | | | | | | | | | | 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.
* Merge #8066: [qa] test_framework: Use different rpc_auth_pair for each nodeWladimir J. van der Laan2016-06-201-3/+8
|\ | | | | | | fad1845 [qa] test_framework: Use different rpc_auth_pair for each node (MarcoFalke)
| * [qa] test_framework: Use different rpc_auth_pair for each nodeMarcoFalke2016-05-171-3/+8
| |
* | [qa] mininode: fail on send_message instead of silent returnMarcoFalke2016-06-171-1/+1
| |
* | Merge #7892: Add full UTF-8 support to RPCWladimir J. van der Laan2016-06-161-7/+9
|\ \ | | | | | | | | | | | | | | | | | | 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)
| * | test: add ensure_ascii setting to AuthServiceProxyWladimir J. van der Laan2016-06-101-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | [qa] util: Move check_fee_amount out of wallet.pyMarcoFalke2016-06-131-0/+9
| | |
* | | Merge #8141: Continuing port of java comparison toolWladimir J. van der Laan2016-06-133-23/+71
|\ \ \ | |/ / |/| | | | | | | | | | | | | | 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)
| * | Continuing port of java comptoolmrbandrews2016-06-022-5/+19
| | |
| * | Tests: Rework blockstore to avoid re-serialization.mrbandrews2016-05-312-19/+53
| | |
* | | Fix interrupted HTTP RPC connection workaround for Python 3.5+Pieter Wuille2016-06-021-0/+5
| | |
* | | Merge #8104: Tests: add timeout to sync_blocks() and sync_mempools()MarcoFalke2016-05-291-9/+13
|\ \ \ | | | | | | | | | | | | e871f83 Tests: add timeout to sync_blocks() and sync_mempools() (Suhas Daftuar)
| * | | Tests: add timeout to sync_blocks() and sync_mempools()Suhas Daftuar2016-05-261-9/+13
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge #8098: [qa] test_framework: Append portseed to tmpdirMarcoFalke2016-05-271-0/+2
|\ \ \ | |/ / |/| | | | | fa57b0c [qa] test_framework: Append portseed to tmpdir (MarcoFalke)
| * | [qa] test_framework: Append portseed to tmpdirMarcoFalke2016-05-201-0/+2
| |/ | | | | | | | | This makes it possible to specify a tmpdir while running tests in parallel
* | Test framework: only cleanup on successful test runsSuhas Daftuar2016-05-251-1/+3
| |