Jonas Schnelli
5ea450834e
Autofind rpc tests --srcdir
9 years ago
MarcoFalke
fa389d4edc
[qa] Switch to py3
9 years ago
MarcoFalke
fada064f67
[qa] test_framework: Properly print exceptions and assert empty dict
9 years ago
MarcoFalke
5555528b47
[qa] mininode: Unfiddle strings into bytes
9 years ago
Suhas Daftuar
807fa47a1e
Tests: Fix deserialization of reject messages
...
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.
9 years ago
Joao Fonseca
fa942c755a
Move method to check matches within arrays on util.py
9 years ago
Wladimir J. van der Laan
b1bf511af6
Merge #7833 : tests: Check Content-Type header returned from RPC server
...
5078ca4
tests: Check Content-Type header returned from RPC server (Wladimir J. van der Laan)
9 years ago
Wladimir J. van der Laan
6ef5e000a2
Merge #7853 : [qa] py2: Unfiddle strings into bytes explicitly
...
faa41ee
[qa] py2: Unfiddle strings into bytes explicitly (MarcoFalke)
9 years ago
Rusty Russell
d12760b16a
rpc-tests: handle KeyError nicely in test_framework.py
...
btcdrak wrote this for me.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
9 years ago
Rusty Russell
85c807c9ea
getblockchaininfo: make bip9_softforks an object, not an array.
...
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>
9 years ago
MarcoFalke
faa41ee204
[qa] py2: Unfiddle strings into bytes explicitly
9 years ago
Suhas Daftuar
5cb1d8a207
Tests: move get_bip9_status to util.py
9 years ago
Wladimir J. van der Laan
5078ca4543
tests: Check Content-Type header returned from RPC server
...
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`
9 years ago
Wladimir J. van der Laan
ff5874bcf7
Merge #7778 : [qa] Bug fixes and refactor
...
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)
9 years ago
MarcoFalke
444480649f
[qa] mininode: Combine struct.pack format strings
9 years ago
MarcoFalke
faaa3c9b65
[qa] mininode: Catch exceptions in got_data
9 years ago
MarcoFalke
fa2cea163b
[qa] rpc-tests: Properly use integers, floats
9 years ago
Wladimir J. van der Laan
e9723cb273
Merge #7489 : tests: Make proxy_test work on travis servers without IPv6
...
7539f1a
tests: Make proxy_test work on travis servers without IPv6 (Wladimir J. van der Laan)
9 years ago
MarcoFalke
fa524d9ddb
[qa] Use python2/3 syntax
9 years ago
Wladimir J. van der Laan
e8a8f3d4b2
Merge #7648 : BIP9 versionbits softfork for BIP68, BIP112 and BIP113
...
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)
9 years ago
Wladimir J. van der Laan
d8e862a5a7
Merge #7744 : test_framework: detect failure of bitcoind startup
...
018b60c
test_framework: detect failure of bitcoind startup (Wladimir J. van der Laan)
9 years ago
Luke Dashjr
e7e48ba66c
test_framework: Py3.4 compat: Specify timeout parameter by name
...
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: 7ebeebb4f6
9 years ago
Wladimir J. van der Laan
d7b80b54fb
test_framework: Avoid infinite loop in encoding Decimal
...
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.
9 years ago
Wladimir J. van der Laan
018b60c5ea
test_framework: detect failure of bitcoind startup
...
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 ).
9 years ago
Alex Morcos
b536a6fc83
Add p2p test for feefilter
9 years ago
Alex Morcos
5fa66e4682
Create SingleNodeConnCB class for RPC tests
9 years ago
NicolasDorier
71527a0f31
Test of BIP9 fork activation of mtp, csv, sequence_lock
9 years ago
Suhas Daftuar
ec143391ef
Tests: make prioritise_transaction.py more robust
9 years ago
MarcoFalke
fad8cfb893
[qa] mininode: Add and use CONSTs
9 years ago
MarcoFalke
fa8cd46f39
[qa] Move create_tx() to util.py
9 years ago
Wladimir J. van der Laan
80d1f2e483
Merge #7184 : Implement SequenceLocks functions for BIP 68
...
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)
9 years ago
Suhas Daftuar
da6ad5f684
Add RPC test exercising BIP68 (mempool only)
9 years ago
Wladimir J. van der Laan
7539f1aae3
tests: Make proxy_test work on travis servers without IPv6
9 years ago
mrbandrews
7689041c03
[rpc-tests] Change solve() to use rehash
9 years ago
Wladimir J. van der Laan
9189e30b12
Merge #7300 : [trivial] Add missing copyright headers
...
fabcee1
Remove copyright header from autogenerated chainparamsseeds.h (MarcoFalke)
fa60d05
Add missing copyright headers (MarcoFalke)
fa7e4c0
Bump copyright headers to 2014 (MarcoFalke)
9 years ago
MarcoFalke
fa8e2a6925
[qa] Change default block priority size to 0
9 years ago
Wladimir J. van der Laan
3b43cad9d0
Merge pull request #7164 : Do not download transactions during initial blockchain sync
...
39a525c
Do not download transactions during inital sync (ptschip)
9 years ago
Wladimir J. van der Laan
e4e77ee55d
Merge pull request #7194
...
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)
9 years ago
MarcoFalke
7777994846
[qa] Fix pyton syntax in rpc tests
9 years ago
Suhas Daftuar
82a0ce09b4
Add race-condition debugging tool to mininode
9 years ago
MarcoFalke
fa60d05a4e
Add missing copyright headers
9 years ago
Wladimir J. van der Laan
605c17844e
Merge pull request #7205
...
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)
9 years ago
Wladimir J. van der Laan
49a735cba4
Merge pull request #7250
...
fa0a974
[qa] Move gen_return_txouts() to util.py (MarcoFalke)
9 years ago
MarcoFalke
fa0a9749eb
[qa] Move gen_return_txouts() to util.py
9 years ago
Wladimir J. van der Laan
97d83739db
Merge pull request #7153
...
7632cf6
[Tests] Refactor some shared functions (Jonas Schnelli)
110ff11
[Tests] Add mempool_limit.py test (Jonas Schnelli)
9 years ago
Wladimir J. van der Laan
595f93977c
Merge pull request #7213
...
37d271d
Rename OP_NOP2 to OP_CHECKLOCKTIMEVERIFY. (mb300sd)
9 years ago
Suhas Daftuar
9b41a5fba2
Add more tests to p2p-fullblocktest
9 years ago
ptschip
39a525c21f
Do not download transactions during inital sync
9 years ago
mb300sd
37d271d7cc
Rename OP_NOP2 to OP_CHECKLOCKTIMEVERIFY.
9 years ago
James O'Beirne
16d4fce0b2
Add assert_is_hex_string and assert_is_hash_string to RPC test utils.
9 years ago