aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/test_framework
AgeCommit message (Collapse)Author
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-07Tests: move get_bip9_status to util.pySuhas Daftuar
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
2016-03-28test_framework: Avoid infinite loop in encoding DecimalWladimir J. van der Laan
Avoid an infinite loop in encoding, by ensuring EncodeDecimal returns a string. round(Decimal) used to convert it to float, but it no longer does in python 3.x. Strings are supported since #6380, so just use that.
2016-03-26test_framework: detect failure of bitcoind startupWladimir J. van der Laan
Replace the `bitcoin-cli -rpcwait` after spawning bitcoind with our own loop that detects when bitcoind exits prematurely. And if one node fails to start, stop the others. This prevents a hang in such a case (see #7463).
2016-03-21Add p2p test for feefilterAlex Morcos
2016-03-21Create SingleNodeConnCB class for RPC testsAlex Morcos
2016-03-21Test of BIP9 fork activation of mtp, csv, sequence_lockNicolasDorier
2016-03-16Tests: make prioritise_transaction.py more robustSuhas Daftuar
2016-03-14[qa] mininode: Add and use CONSTsMarcoFalke
2016-03-14[qa] Move create_tx() to util.pyMarcoFalke
2016-02-12Merge #7184: Implement SequenceLocks functions for BIP 68Wladimir J. van der Laan
b043c4b fix sdaftuar's nits again (Alex Morcos) a51c79b Bug fix to RPC test (Alex Morcos) da6ad5f Add RPC test exercising BIP68 (mempool only) (Suhas Daftuar) c6c2f0f Implement SequenceLocks functions (Alex Morcos)
2016-02-10Add RPC test exercising BIP68 (mempool only)Suhas Daftuar
2016-02-09tests: Make proxy_test work on travis servers without IPv6Wladimir J. van der Laan
2016-02-04[rpc-tests] Change solve() to use rehashmrbandrews
2016-01-27Merge #7300: [trivial] Add missing copyright headersWladimir J. van der Laan
fabcee1 Remove copyright header from autogenerated chainparamsseeds.h (MarcoFalke) fa60d05 Add missing copyright headers (MarcoFalke) fa7e4c0 Bump copyright headers to 2014 (MarcoFalke)
2016-01-20[qa] Change default block priority size to 0MarcoFalke
2016-01-19Merge pull request #7164: Do not download transactions during initial ↵Wladimir J. van der Laan
blockchain sync 39a525c Do not download transactions during inital sync (ptschip)
2016-01-18Merge pull request #7194Wladimir J. van der Laan
135d6ec Add RPC tests for getblockheader. (James O'Beirne) 4745636 Add RPC documentation for getblockheader[chainwork]. (James O'Beirne) 16d4fce Add assert_is_hex_string and assert_is_hash_string to RPC test utils. (James O'Beirne)
2016-01-13[qa] Fix pyton syntax in rpc testsMarcoFalke
2016-01-07Add race-condition debugging tool to mininodeSuhas Daftuar
2016-01-05Add missing copyright headersMarcoFalke
2016-01-05Merge pull request #7205Wladimir J. van der Laan
fa71669 [devtools] Use git pretty-format for year parsing (MarcoFalke) fa24439 Bump copyright headers to 2015 (MarcoFalke) fa6ad85 [devtools] Rewrite fix-copyright-headers.py (MarcoFalke)
2016-01-04Merge pull request #7250Wladimir J. van der Laan
fa0a974 [qa] Move gen_return_txouts() to util.py (MarcoFalke)
2015-12-24[qa] Move gen_return_txouts() to util.pyMarcoFalke
2015-12-22Merge pull request #7153Wladimir J. van der Laan
7632cf6 [Tests] Refactor some shared functions (Jonas Schnelli) 110ff11 [Tests] Add mempool_limit.py test (Jonas Schnelli)
2015-12-22Merge pull request #7213Wladimir J. van der Laan
37d271d Rename OP_NOP2 to OP_CHECKLOCKTIMEVERIFY. (mb300sd)
2015-12-18Add more tests to p2p-fullblocktestSuhas Daftuar
2015-12-15Do not download transactions during inital syncptschip
2015-12-15Rename OP_NOP2 to OP_CHECKLOCKTIMEVERIFY.mb300sd
2015-12-14Add assert_is_hex_string and assert_is_hash_string to RPC test utils.James O'Beirne
2015-12-14[RPC-Tests] add option to run rpc test over QT clientsJonas Schnelli
2015-12-13Bump copyright headers to 2015MarcoFalke
2015-12-09test: Add basic test for `reject` codeWladimir J. van der Laan
Extend P2P test framework to make it possible to expect reject codes for transactions and blocks.
2015-12-07Merge pull request #7171Wladimir J. van der Laan
2f601d2 test: remove necessity to call create_callback_map (Wladimir J. van der Laan)
2015-12-04tests: Disable Tor interactionWladimir J. van der Laan
This is unnecessary during the current tests (any test for Tor interaction can explicitly enable it) and interferes with the proxy test.
2015-12-04test: remove necessity to call create_callback_mapWladimir J. van der Laan
Remove necessity to call create_callback_map (as well as the function itself) from the Python P2P test framework. Invoke the appropriate methods directly. - Easy to forget to call it and wonder why it doesn't work - Simplifies the code - This makes it easier to handle new messages in subclasses
2015-12-03[Tests] Refactor some shared functionsJonas Schnelli
2015-12-01Merge pull request #7022Wladimir J. van der Laan
50947ef Change default block priority size to 0 (Alex Morcos)
2015-12-01Add rounding helper function to util.pySuhas Daftuar
2015-11-30Change default block priority size to 0Alex Morcos
Make RPC tests have a default block priority size of 50000 (the old default) so we can still use free transactions in RPC tests. When priority is eliminated, we will have to make a different change if we want to continue allowing free txs.