aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/test_framework
AgeCommit message (Collapse)Author
2016-12-02[qa] test_framework: Exit when tmpdir existsMarcoFalke
Github-Pull: #9098 Rebased-From: fae19aa1da0858678874815b344de83e1ee3a1bd
2016-11-19[qa] Add more helpful RPC timeout messageRussell Yanofsky
Replace previous timeout('timed out',) exception with more detailed error. Github-Pull: #9077 Rebased-From: e89614b6abf28d7fe201c3db44a0df6e4db6de03
2016-11-19[qa] Increase wallet-dump RPC timeoutRussell Yanofsky
Increase wallet-dump RPC timeout from 30 seconds to 1 minute. This avoids a timeout error that seemed to happen regularly (around 50% of builds) on a particular jenkins server during the first getnewaddress RPC call made by the test. The failing stack trace looked like: Unexpected exception caught during testing: timeout('timed out',) File ".../bitcoin/qa/rpc-tests/test_framework/test_framework.py", line 146, in main self.run_test() File ".../bitcoin/qa/rpc-tests/wallet-dump.py", line 73, in run_test addr = self.nodes[0].getnewaddress() File ".../bitcoin/qa/rpc-tests/test_framework/coverage.py", line 49, in __call__ return_val = self.auth_service_proxy_instance.__call__(*args, **kwargs) File ".../bitcoin/qa/rpc-tests/test_framework/authproxy.py", line 145, in __call__ response = self._request('POST', self.__url.path, postdata.encode('utf-8')) File ".../bitcoin/qa/rpc-tests/test_framework/authproxy.py", line 121, in _request return self._get_response() File ".../bitcoin/qa/rpc-tests/test_framework/authproxy.py", line 160, in _get_response http_response = self.__conn.getresponse() File "/usr/lib/python3.4/http/client.py", line 1171, in getresponse response.begin() File "/usr/lib/python3.4/http/client.py", line 351, in begin version, status, reason = self._read_status() File "/usr/lib/python3.4/http/client.py", line 313, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/lib/python3.4/socket.py", line 374, in readinto return self._sock.recv_into(b) Github-Pull: #9077 Rebased-From: 8463aaa63c5ac76421c4d2754ea9e17a31584c93
2016-11-19[qa] add assert_raises_message to check specific error messagemrbandrews
Github-Pull: #9168 Rebased-From: 307acdd3df03082295ac0f7fe9eba7dd35973bc4
2016-10-17test segwit uncompressed key fixesJohnson Lau
Github-Pull: #8499 Rebased-From: 9260085377e89e666d0cb95b462261d7e3a9c82f
2016-10-17Make test framework produce lowS signaturesJohnson Lau
Github-Pull: #8499 Rebased-From: 9f0397aff7afa2afa9328daea0a2053122e79d44
2016-10-13[qa] Fix bug in mininode witness deserializationSuhas Daftuar
Also improve tx printing Github-Pull: #8393 Rebased-From: f5b9b8f437c040205896ad0d7a6656efa08b5601
2016-10-13[qa] Add support for compactblocks v2 to mininodeSuhas Daftuar
Github-Pull: #8393 Rebased-From: 422fac649f75c907cad6ab7e2768b9032b9eae42
2016-10-03test: Explicitly set encoding to utf8 when opening text filesWladimir J. van der Laan
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. Github-Pull: #8840 Rebased-From: 30930e847e2483c7c8163cc581b392bc288250e9
2016-10-03[qa] util: Move wait_bitcoinds() into stop_nodes()MarcoFalke
Github-Pull: #8860 Rebased-From: fa7c35c4ec630838178b4674288da33561a66f08
2016-10-03[qa] mininode: Only allow named args in wait_untilMarcoFalke
Github-Pull: #8857 Rebased-From: fa666094cf5b9ac4a7c1732a7ffa001afffcd938
2016-10-03[qa] Fix race condition in p2p-compactblocks testSuhas Daftuar
Also fix a bug in the sync_with_ping() helper function Github-Pull: #8854 Rebased-From: b5fd666984fdb7125cb809c773b36034f32128cc
2016-10-03test: Avoid ConnectionResetErrors during RPC testsWladimir J. van der Laan
This is necessary on FreeBSD and MacOSX, at least. See https://github.com/bitcoin/bitcoin/pull/8834#issuecomment-250450213 Github-Pull: #8839 Rebased-From: 1d28faf9e94fcf240ece7336d61ec297b064bc37
2016-10-03[qa] blockstore: Switch to dumb dbmMarcoFalke
Github-Pull: #8834 Rebased-From: fa9cd25ed0587078e3218965606c79ebf8138d53
2016-09-26Add support for compactblocks to mininodeSuhas Daftuar
Github-Pull: #8418 Rebased-From: 9a22a6c0891256f02f4906c1c13fb22a9722ec7c
2016-09-26Tests: refactor compact size serialization in mininodeSuhas Daftuar
Github-Pull: #8418 Rebased-From: a8689fdf8e10300b73750161a73a23467ecd1efe
2016-09-26Implement SipHash in PythonPieter Wuille
Github-Pull: #8418 Rebased-From: 9c8593d2b4e25ef628172ceadbedf0ef078d01ef
2016-09-21[copyright] Add missing copyright headersisle2983
Github-Pull: #8676 Rebased-From: 783e930e68a312bc7654d833053cceead18dd688
2016-09-21[qa]: add parsing for '<host>:<port>' argument form to rpc_url()whythat
Github-Pull: #8400 Rebased-From: 0ff4375c93bd159233282de5a33ad2e6c1e79841
2016-09-21Fix SIGHASH_SINGLE bug in test_framework SignatureHashJohnson Lau
The value for "other" inputs should be -1 (0xffffffffffffffff) instead of 0 Github-Pull: #8667 Rebased-From: 2f2548d5e0ccea6879eb7b0b851d61ad2f544423
2016-09-16[qa] remove root test directory for RPC testswhythat
Github-Pull: #8652 Rebased-From: 438e94dc330a37600ec1d86f2ba8502385b5262d c62cc4ec759a8487373f158b3cbb888efcdd753a
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