843 Commits

Author SHA1 Message Date
libscott
4802f0fabe Merge pull request #1080 from bigchaindb/no-dev-in-tx-version
short form 0.9, 0.10 etc tx version with no '.dev' suffix
2017-01-24 14:34:37 +01:00
Scott Sadler
e3317b370b don't rename TransactionLink to TL 2017-01-24 12:11:21 +01:00
Scott Sadler
af23ff5b65 clean up use of double quotes, rename UNSPENTS_ENDPOINT, clarify test 2017-01-24 12:08:55 +01:00
libscott
a7a163fd3c Merge pull request #1083 from bigchaindb/single-quotes
Add flake8-quotes checker and cleanup double quotes
2017-01-24 12:07:29 +01:00
Sylvain Bellemare
fe5d966dca Put back some strings with wrapped single quotes
just to double check that flake8-quotes does indeed tolerate it
2017-01-24 10:22:32 +01:00
tymlez
78bd1ecd96 consensus plugin 2017-01-24 09:12:16 +00:00
Scott Sadler
bd048a3115 add flake8-quotes checker and cleanup double quotes 2017-01-23 17:30:37 +01:00
Rodolphe Marques
927e57beba Changed backend.connect to handle backend specific kwargs.
Fixed tests
2017-01-23 17:29:42 +01:00
Rodolphe Marques
f12264773c bigchaindb configure now requires a positional backend argument.
Created and fixed tests.
Updated `b` fixture
2017-01-23 16:49:59 +01:00
Scott Sadler
897ffe81bc outputs endpoint with unspent filter parameter 2017-01-23 16:10:21 +01:00
Scott Sadler
4bb64fa0b8 generalise get_owned_ids to get_outputs and get_owned_ids 2017-01-23 16:10:21 +01:00
libscott
ad2abcf723 Merge pull request #1065 from bigchaindb/1021/http_transactions_list
1021/http transactions list
2017-01-23 16:06:07 +01:00
Scott Sadler
ccdbb91c1c short form 0.9, 0.10 etc tx version with no '.dev' suffix 2017-01-23 15:16:15 +01:00
Scott Sadler
a5acd0c7b9 document patching technique in get_transactions_filtered web view test 2017-01-23 14:07:22 +01:00
Rodolphe Marques
e7ffcf5705 Added replicaset name to bigchaindb config (#1063)
* Added replicaset name to bigchaindb config

* changed travis replSet to match bigchaindb default

* Updated initialize_replica_set

It now initializes the replica set with the name provided by the
bigchaindb config file.


* initialize_replica_set is now called when creating a mongodb connection.

This way we are sure that a replica set exists when we return a
connection.

* Moved the initialize replica set logic to the connection.

* update the config documentation
2017-01-20 14:05:28 +01:00
Scott Sadler
2ec23be05d fix flake8 2017-01-18 17:13:38 +01:00
Scott Sadler
ae14d0e5c4 api method to get transactions by asset_id 2017-01-18 15:43:53 +01:00
Scott Sadler
1c918caf4c txlist / get_transactions_filtered 2017-01-18 15:42:47 +01:00
Scott Sadler
dbb3414fd0 generalise get_txids_by_asset_id into get_txids_filtered and remove get_transactions_by_asset_id 2017-01-18 15:42:47 +01:00
Scott Sadler
d899d4c8b6 query string parameters test 2017-01-18 15:42:17 +01:00
libscott
8e497347d5 Merge pull request #1043 from bigchaindb/duplicate-asset-id
duplicate tx.id into tx.asset.id in CREATE transactions
2017-01-17 15:00:33 +01:00
libscott
a706d88b30 Merge pull request #1051 from bigchaindb/fix/norandom-test_get_spent_multiple_owners
Remove use of random in test_bigchain_api
2017-01-17 14:54:07 +01:00
Brett Sun
b59ea00118 Merge pull request #1031 from bigchaindb/feat/api/blocks
Implement blocks endpoint
2017-01-17 14:42:24 +01:00
Brett Sun
0751b2bf0b Merge pull request #1029 from bigchaindb/feat/api/votes
Implement votes endpoint
2017-01-17 14:42:02 +01:00
Sylvain Bellemare
1dbc998b36 Only fetch needed element (public key) 2017-01-17 07:50:00 -05:00
Sylvain Bellemare
5759de6ae3 Remove unused fixture 2017-01-17 07:50:00 -05:00
Sylvain Bellemare
9766aa90a1 Addresses #663 partially 2017-01-17 07:50:00 -05:00
Scott Sadler
7c4c7e9be3 remove use of random in test_bigchain_api 2017-01-17 11:48:58 +01:00
libscott
da69aa11f1 Update test_digital_assets.py
On mobile!
2017-01-16 17:47:51 +01:00
Scott Sadler
d9cf4df5e6 duplicate asset id / fix test_get_transactions_by_asset_id 2017-01-16 16:08:15 +01:00
Scott Sadler
d7126169f4 duplicate asset id / fix flake8 errors 2017-01-16 15:41:26 +01:00
Scott Sadler
003519b0a8 duplicate tx.id into tx.asset.id in CREATE transactions 2017-01-16 15:03:54 +01:00
Sylvain Bellemare
4d6df06236 Resolves #948 2017-01-16 07:12:25 -05:00
Brett Sun
ded7f3e28f PR comments 2017-01-13 18:25:35 +01:00
diminator
3919cc3d5d return empty list if no blocks found 2017-01-13 18:08:28 +01:00
diminator
f018a4f6e7 replace status strings by Bigchain attributes 2017-01-13 18:08:28 +01:00
diminator
1cc46fb86e return list of block_id
implement status query param
test
2017-01-13 18:08:27 +01:00
diminator
1b57ace714 implement GET /blocks endpoint 2017-01-13 18:08:25 +01:00
Brett Sun
7071d471a5 Add test for empty block_id parameter for votes API 2017-01-13 18:07:12 +01:00
Sylvain Bellemare
b12ea854f7 Remove unused import 2017-01-13 09:17:13 -05:00
libscott
e08bf52fa7 Merge pull request #1018 from bigchaindb/change-tx-version
Change version in tx model to 0.9
2017-01-13 12:07:23 +01:00
Rodolphe Marques
e52cb40edb Some more tests for mongodb code (#1036)
* Some more tests for mongodb code

Cleanup connection code

* pep8 fixes
2017-01-13 10:25:45 +01:00
Rodolphe Marques
5abe6dd7ea Added tests to the mongodb changefeed (#1035)
* Added tests to the mongodb changefeed

* pep8 and typo fixes
2017-01-13 10:18:58 +01:00
libscott
ece5581eb3 Merge branch 'master' into 1021/http_api_root 2017-01-12 15:26:10 +01:00
diminator
5e3bd1d54c
rename test functions 2017-01-12 10:43:11 +01:00
Rodolphe Marques
fa8608b242 small fix write_vote 2017-01-12 10:41:55 +01:00
diminator
af2e8e14a5
Merge remote-tracking branch 'remotes/origin/master' into feat/api/votes 2017-01-12 09:59:39 +01:00
Dimitri De Jonghe
03d46b40f9 Merge pull request #1026 from bigchaindb/feat/api/statuses
implement statuses endpoint
2017-01-12 09:55:34 +01:00
diminator
8aa37277c2
remove blank line for travis 2017-01-11 17:17:20 +01:00
Sylvain Bellemare
4c8d1c6e8c Document how to run tests for mongodb with docker 2017-01-11 13:21:27 +01:00