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
Scott Sadler
48b90407bd
change version in tx model to 0.9. The idea is that we will go with the server version until we hit 1.0 where we should be stable, then re-evaluate.
2017-01-04 15:10:15 +01:00
Brett Sun
8fa3245309
Rename any *util.py to *utils.py ( #991 )
2016-12-22 17:39:39 +01:00
Brett Sun
438958fdea
Rename builtin-in input override in commands ( #988 )
...
* Rename commands.bigchain.input to input_on_stderr to avoid confusion
* Allow input_on_stderr to not take a prompt
* Fix tests broken by renaming of commands.bigchaindb.input
2016-12-22 17:03:53 +01:00
libscott
5190e0a682
Merge pull request #925 from bigchaindb/inputs-outputs
...
Inputs & Outputs
2016-12-22 13:52:19 +01:00
Scott Sadler
04a78aacec
Merge remote-tracking branch 'origin/master' into inputs-outputs
2016-12-22 13:45:02 +01:00
Brett Sun
2882bee48e
Small flake8 fixes for tests ( #987 )
2016-12-22 11:57:13 +01:00
Brett Sun
9319583ab4
Remove Asset and AssetLink ( #982 )
...
* Remove asset.validate_asset and move its validation checks to other areas
* Move Asset.get_asset_id to Transaction
* Remove Asset and AssetLink models
* Add test against creating TRANSFER transactions with bad asset
2016-12-22 10:19:21 +01:00
Sylvain Bellemare
44391da94a
Add genesis block fixture and marker
2016-12-21 17:45:14 +01:00
Rodolphe Marques
9c0d696b7e
Better unittests
...
Simplify code
2016-12-21 16:52:57 +01:00
Rodolphe Marques
5fedabe586
fix test
2016-12-21 15:55:29 +01:00
Rodolphe Marques
1dd6c748b9
Merge remote-tracking branch 'origin/master' into feat/980/initialise-replica-set-mongo
2016-12-21 15:54:02 +01:00
Rodolphe Marques
4a14c7c8f1
Initialize replica set for mongodb when running bigchaindb init
2016-12-21 15:53:25 +01:00
Sylvain Bellemare
3a7fe30a31
Add description for bdb marker
2016-12-20 20:37:28 +01:00
Sylvain Bellemare
57b14c3062
Rename db_name to dbname
2016-12-20 20:37:28 +01:00
Sylvain Bellemare
7db02fa024
Get config from bigchaindb not from fixture
...
the fixture no longer returns the config, and is meant only to set the
config
2016-12-20 20:37:28 +01:00
Sylvain Bellemare
a269375278
Use pytest custom marker "bdb"
...
note that the marker, although invoked for the entire module, will be
applied for each function
2016-12-20 20:37:28 +01:00
Sylvain Bellemare
f6a55c78af
Implement test utils function to flush mongo db
2016-12-20 20:37:28 +01:00
Sylvain Bellemare
11271738f3
Remove unnecessary fixture
...
it was needed when the root fixture was using autouse
2016-12-20 20:37:28 +01:00
Sylvain Bellemare
fa79fe6783
Add session scope test setup for config and db
...
resolves #966
2016-12-20 20:37:28 +01:00
libscott
7e33f2bd52
Tx ID as Asset ID ( #926 )
...
* Allow AssetLinks to be used in place of Assets in the Transaction Model and enforce `Transaction.transfer()` to only take an AssetLink
* Remove AssetLink's inheritance from Asset
* Remove id from the Asset model
* Fix get_txids_by_asset_id query for rethinkdb after removing asset's uuid
Because `CREATE` transactions don't have an asset that contains an id
anymore, one way to find all the transactions related to an asset is to
query the database twice: once for the `CREATE` transaction and another
for the `TRANSFER` transactions.
* Add TODO notice for vote test utils to be fixtures
* Update asset model documentation to reflect usage of transaction id
* Fix outdated asset description in transaction schema
2016-12-20 17:28:15 +01:00