1008 Commits

Author SHA1 Message Date
Scott Sadler
18d018519f remove Condition.cid and Fulfillment.fid in favour of dereferencing conditions and fulfillments by their location in their respective arrays 2016-11-29 09:59:43 +01:00
Scott Sadler
a6eb52d76d disallow empty metadata dict in favour of null 2016-11-28 17:34:46 +01:00
Scott Sadler
71dcee019f Remove metadata uuid 2016-11-28 17:34:46 +01:00
vrde
024c8583b5
Merge remote-tracking branch 'origin/isolate-db-testcalls' 2016-11-28 16:29:23 +01:00
Rodolphe Marques
a824e275e0 decode signature to a str 2016-11-25 16:00:20 +01:00
libscott
957a548465 Merge pull request #846 from bigchaindb/fix-stale-pipeline-bug
Fix race condition in test_stale_monitor.py:test_full_pipeline
2016-11-24 09:53:26 +01:00
ryan
9ab0294bc9 partial removal of rethinkdb calls from tests 2016-11-22 14:47:11 +01:00
Scott Sadler
7dc9f52fe0 remove transaction timestamp 2016-11-22 13:03:30 +01:00
libscott
8343bab89f Schema definition (#798)
Commit messages for posterity:

* wip transaction schema definition
* test for SchemaObject
* test SchemaObject definions meta property
* schema documentation updates
* test for basic validation
* commit before change to .json file definiton + rst generation
* move to straight .json schema, test for additionalProperties on each object
* add asset to transaction definiton
* remove outdated tx validation
* make all tests pass
* create own exception for validation error and start validating transactions
* more tx validation fixes
* move to yaml file for schema
* automatic schema documentation generator
* remove redundant section
* use YAML safe loading
* change current_owners to owners_before in tx schema
* re-run tests and make correct yaml schema
* fix some broken tests
* update Release_Process.md
* move tx validation into it's own method
* add jsonschema dependency
* perform schema validation after ID validation on Transaction
* Release_Process.md, markdown auto numbering
* remove old transaction.json
* resolve remaining TODOs in schema docuementation
* add `id` and `$schema` to transaction.yaml
* add transaction.yaml to setup.py so it gets copied
* address some concernes in PR for transaction.yaml
* address more PR concerns in transaction.yaml
* refactor validtion exceptions and move transaction schema validation into it's own function in bigchaindb.common.schema.__init__
* add note to generated schema.rst indicating when and how it's generated
* move tx schema validation back above ID validation in Transaction.validate_structure, test that structurally invalid transaction gets caught and 400 returned in TX POST handler
* remove timestamp from transaction schema index
* Add README.md to bigchaindb.common.schema for introduction to JSON Schema and reasons for YAML
* Use constant for schema definitions' base prefix
* Move import of ValidationError exception into only the tests that require it
* Move validate transaction test helper to tests/common/util.py
* move ordered transaction schema load to generate_schema_documentation.py where it's needed
* use double backticks to render terms in schema docs
* change more backticks and change transaction version description in transaction schema
* make details a mandatory property of condition
* Many more documentation fixes
* rename schema.rst to schema/transaction.rst
* Fix documentation for Metadata
* Add more links to documentation
* Various other documentation fixes
* Rename section titles in rendered documentation
* use  to manage file handle
* fix extrenuous comma in test_tx_serialization_with_incorrect_hash args
* 'a' * 64
* remove schema validation until we can analyze properly impact on downstream consumers
* fix flake8 error
* use `with` always
2016-11-22 11:17:06 +01:00
Scott Sadler
d275890f60 fix race condition in test_stale_monitor test_full_pipeline 2016-11-21 17:13:34 +01:00
Brett Sun
8998625706 Remove duplicated documentation test code that's been moved to the driver (#844) 2016-11-21 13:16:16 +01:00
Rodolphe Marques
e03a547276 Merge remote-tracking branch 'origin/master' into feat/332/get-txs-by-asset-id-ignore-invalid-blocks 2016-11-18 14:50:36 +01:00
Rodolphe Marques
aef5dcdf1b fixed typo 2016-11-18 14:40:26 +01:00
Rodolphe Marques
547ad32966 Merge remote-tracking branch 'origin/master' into feat/792/get-txs-by-metadata-id-ignore-invalid-blocks 2016-11-18 10:17:01 +01:00
Rodolphe Marques
826db6c122 fixed test 2016-11-18 10:12:39 +01:00
Rodolphe Marques
bc7f27e39a Merge remote-tracking branch 'origin/master' into feat/792/get-txs-by-metadata-id-ignore-invalid-blocks 2016-11-17 12:45:20 +01:00
libscott
c303fa8b1d Merge pull request #816 from bigchaindb/fix-timestamp-indexes
Fix database timestamp indexes
2016-11-17 12:17:09 +01:00
Rodolphe Marques
9e1da05103 Fixed some tests 2016-11-17 11:41:54 +01:00
Rodolphe Marques
eead7dbdda Merge remote-tracking branch 'origin/master' into feat/746/new-naming-convention-for-keys 2016-11-17 11:41:23 +01:00
Brett Sun
eb362fd6e9 Fix equality check for AssetLinks (#825) 2016-11-16 11:21:25 +01:00
Brett Sun
786635df4a Explicitly pass settings for flask into flask app factory (#750) 2016-11-15 17:41:35 +01:00
troymc
29d783425d Remove or comment-out the api_endpoint setting everywhere 2016-11-15 17:05:09 +01:00
tim
85eccb48be Test file for info.py 2016-11-15 12:05:54 +01:00
tim
e99930c501 web/test_basic_views --> web/test_transactions 2016-11-15 11:54:20 +01:00
troymc
54f0d85cda Merged master branch and fixed some merge conflicts 2016-11-14 18:35:46 +01:00
Sylvain Bellemare
6724e64cca Update test to divisible asset change 2016-11-14 16:46:12 +01:00
Scott Sadler
445833f2b2 * remove database index on transaction.timestamp
* fix database index on assignee__transaction_timestamp to use correct timestamp
2016-11-14 16:41:00 +01:00
Sylvain Bellemare
9f471ef4b3 Merge branch 'master' into divisible-assets 2016-11-14 16:39:02 +01:00
Ryan Henderson
c8553abb41 add backlog count (#806) 2016-11-14 10:03:59 +01:00
Rodolphe Marques
98084f6f4a get_transaction_by_metadata_id now ignores invalid transactions 2016-11-11 17:36:27 +01:00
Rodolphe Marques
b7b9338f21 get_transactions_by_asset_id now ignores invalid transactions 2016-11-11 15:25:59 +01:00
Ryan Henderson
d31a268a51 add id query (#799) 2016-11-11 15:08:37 +01:00
Rodolphe Marques
6d7392d98d Handle the case where there are negative amounts.
Created tests
2016-11-11 11:34:20 +01:00
Rodolphe Marques
3909538c62 Replace all occurrences where vk is used as a shortcut
for public key and replaced it with `pk`
2016-11-10 17:20:27 +01:00
Rodolphe Marques
c068f04a82 Replaced VerifyingKey with PublicKey
Replaced SigningKey with PrivateKey
Replaced all occurences of signing key with private key
Replaced all occurences of verifying key with public key
2016-11-10 17:01:06 +01:00
Rodolphe Marques
bca7939f6c Added an AssetLink class to link to a Asset from a TRANSFER transaction 2016-11-10 13:18:20 +01:00
Rodolphe Marques
a2e28ae806 addressed comments 2016-11-09 17:48:39 +01:00
Rodolphe Marques
efb5439044 updated docstrings
addressed added todos
2016-11-09 14:56:14 +01:00
Rodolphe Marques
dccbc3c1fe pep8 fixes 2016-11-09 14:25:42 +01:00
Rodolphe Marques
7313cd9441 get_asset_by_id now uses the new db api 2016-11-09 14:03:34 +01:00
Rodolphe Marques
de23053ebc Merge remote-tracking branch 'origin/master' into divisible-assets 2016-11-09 13:36:56 +01:00
Rodolphe Marques
e35d2899b5 Removed support for custom threshold
Removed support for hashlocks
Unskipped tests that were skipped waiting for divisible assets
Fixed remaining tests
2016-11-09 13:32:18 +01:00
Rodolphe Marques
19cfe172ea Added support for multiple owners_before in CREATE transactions
Added some type checking
Remove code for hashlocks and timelocks. They were partially implemented
features that we need to revisit.
2016-11-08 17:41:53 +01:00
Rodolphe Marques
3ac530617c Fixed some tests 2016-11-06 22:35:39 +01:00
Rodolphe Marques
a212aba35b Added validation for amounts
Added a new db call to return an asset instance given the id

Created tests
2016-11-06 20:00:47 +01:00
Rodolphe Marques
db55aa8153 Support for multiple io in TRANSFER transactions
Create tests
2016-11-06 18:09:43 +01:00
troymc
6930f93d4c Added test for case when tx is in backlog and an invalid block 2016-11-06 10:13:29 +01:00
Rodolphe Marques
ee3b967184 Added support for divisible assets in TRANSFER transactions
Created tests
2016-11-06 01:55:47 +01:00
Rodolphe Marques
5b5c701e0a Finished implementing divisible assets for CREATE transactions
Simplified Transaction.create logic
Created tests
2016-11-06 00:04:27 +01:00
troymc
e81283fee9 test_read_transaction_invalid_block didn't need to write tx to backlog 2016-11-05 17:30:48 +01:00