Commit Graph

528 Commits

Author SHA1 Message Date
Rodolphe Marques
9d03aeb72a fixed tests 2017-01-26 15:02:48 +01:00
Rodolphe Marques
391da2cf60 Added tests 2017-01-25 12:36:08 +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
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
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
Rodolphe Marques
376172ec18 Update the README with instructions to run the tests against mongodb 2017-01-11 13:21:27 +01:00
Sylvain Bellemare
1cfd3de60e Fix flake8 errors in tests 2017-01-11 05:13:27 -05:00
Rodolphe Marques
c91eff70e5 Feat/960/test mongodb queries (#1030)
* Created tests to mongodb queries

Small fix to queries

* cleanup pytest markers
2017-01-10 16:49:30 +01:00
Rodolphe Marques
aa6d4fdcc8 small fix to test 2017-01-10 15:31:16 +01:00
diminator
5608a36616 implement /votes endpoint 2017-01-10 11:34:10 +01:00
libscott
0b0dadd6fa Update test_transaction.py 2017-01-09 17:44:02 +01:00
diminator
8fa231c040 include _links in transaction status payload 2017-01-09 17:14:22 +01:00
Rodolphe Marques
8926178e52 initialize replica set for tests 2017-01-09 13:32:17 +01:00
Rodolphe Marques
7f05974f0f Added a secondary index with uniqueness constraint in backlog.
Several test fixes
2017-01-09 13:25:42 +01:00
Rodolphe Marques
595f7dc701 several fixes to mongodb queries 2017-01-09 13:25:27 +01:00
diminator
7124adcd34 implement statuses endpoint 2017-01-06 15:55:07 +01:00
Scott Sadler
990d863dc7 tests for informational endpoints 2017-01-06 14:46:40 +01:00
Scott Sadler
80f3bb3809 /api/v1/ informational endpoint 2017-01-06 14:46:40 +01:00
Rodolphe Marques
8e99d18fd6 Merge pull request #994 from bigchaindb/feat/927/implement-mongodb-changefeed
[WIP] Implement mongodb changefeed
2017-01-04 17:10:46 +01:00
Rodolphe Marques
1b3c909d51 Fixed mongodb queries
Fixed some tests
2017-01-04 15:43:17 +01:00