207 Commits

Author SHA1 Message Date
Chris Keogh
84bd16d2a2 get_item update_item return capacity consumed correctly 2017-09-25 11:39:09 +13:00
Chris Keogh
d0f38407a1 update expression attribute test 2017-09-22 15:52:32 +12:00
Chris Keogh
87d7cacda6 Merge branch 'master' of https://github.com/spulec/moto 2017-09-22 15:44:44 +12:00
Chris Keogh
8840495f77 add AttributeValueNames for basic ProjectionExpressions on query 2017-09-22 15:40:30 +12:00
Chris Keogh
037b357029 add basic projection expressions 2017-09-22 13:12:24 +12:00
Chris Keogh
51c3fec6dd fix scan return CapacityUnits 2017-09-20 13:57:26 +12:00
Terry Cain
16e0326fe7
Fixed #1162 2017-09-19 21:43:55 +01:00
Brian Rower
c1c592609a Fix python 2.7 issue 2017-09-12 23:30:15 -07:00
Brian Rower
6affc7a4ec Add basic support for the add operation in an update operation
Add basic delete functionality


Improve testing coverage and make behave more like actual dynamo on errors


Lint fix
2017-09-12 21:42:29 -07:00
Chris Keogh
6ee204e458 fix server mode test 2017-09-12 14:55:43 +12:00
Chris Keogh
2a66ae2bfd fix linting errors 2017-09-12 11:18:48 +12:00
Chris Keogh
722859748e Merge branch 'master' of https://github.com/spulec/moto into add-empty-string-validation-exception 2017-09-12 10:52:46 +12:00
Chris Keogh
ed820cc80e return validation error for empty attribute 2017-09-12 09:28:36 +12:00
Jack Danger
d7e64fc927 Merge pull request #1127 from brianrower/feature/add-string-set
Dynamodb2 - Allow doing an ADD update_item of a string set
2017-09-11 12:33:41 -07:00
Jack Danger
550562cbd4 Merge pull request #1092 from ssolari/issue#1091
fix uppercase only issue in update_expression #1091
2017-09-11 12:33:09 -07:00
Brian Rower
386ac94abe Allow doing an ADD update of a string set
Fix test
2017-09-11 12:07:34 -07:00
Mike Grima
76b7101bc3 Fixed a bug where Dynamo registers STS and sts calls go to dynamo (#1097)
Fixes #1095
2017-09-07 11:25:14 -07:00
sorensolari
9070b1bf66 fix uppercase only issue in update_expression #1091 2017-08-27 13:57:16 -06:00
Jack Danger
5e9c51d839 Merge pull request #790 from tideline/master
Fixes for dynamodb2 mocking
2017-07-06 22:06:08 -07:00
Peter Gorniak
a0471b0407 add comment about splitting update expression by operator keywords 2017-06-15 15:34:58 -07:00
Greg Sterin
be07fbda52 Support Expected in dynamoDB updateItem 2017-06-09 17:34:29 -07:00
Peter Gorniak
b713eef491 cleanup after merge 2017-06-02 13:41:33 -07:00
Peter Gorniak
91657a537b Merge remote-tracking branch 'spulec/master' 2017-06-02 13:38:36 -07:00
Peter Gorniak
5eb866146a add assert to catch odd numbers in operator/value parsing 2017-06-02 13:19:45 -07:00
Steve Pulec
15b811901b Merge pull request #925 from JackDanger/idempotent-dynamodb2-deletes
Idempotent Dynamodb2 deletes
2017-05-10 22:07:12 -04:00
Steve Pulec
0adebeed24 Merge #913. 2017-05-10 21:58:42 -04:00
Jack Danger Canty
8e3d46fb05 Deleting from an unknown table raises error
If the table exists then we deletes are idempotent
2017-05-08 17:25:59 -10:00
Jack Danger Canty
02edc6fa00 Idempotent Dynamodb2 deletes
Fixes #873
2017-05-01 12:31:31 -07:00
Ian Auld
748eb138b2 Started passing QueryFilters to query method in responses.py 2017-04-21 14:54:27 -07:00
Steve Pulec
6d422d1f37 Add BaseModel to all models. 2017-03-11 23:41:12 -05:00
Steve Pulec
f37bad0e00 Lints. 2017-02-23 21:37:43 -05:00
Steve Pulec
81836b6981 Get standalone server mode working for all tests. 2017-02-23 19:43:48 -05:00
Steve Pulec
cad185c74d Cleanup headers and encoding. 2017-02-16 22:51:04 -05:00
Steve Pulec
fde721bed7 Testing new version of decorator. 2017-02-15 22:35:45 -05:00
Steve Pulec
ba7223f046 Fix issue for returning dynamodb floats. Closes #812. 2017-02-08 21:06:05 -05:00
Peter Gorniak
d4a31e5e50 unit tests did not catch this, but this will not work under python 2.6 2016-12-08 14:34:21 -08:00
Peter Gorniak
114de9ba0b more fixes for 2.6 and 3 2016-12-07 13:55:26 -08:00
Peter Gorniak
0c875fd268 fixes for python 2.6 and 3 2016-12-07 13:31:15 -08:00
Peter Gorniak
3c128fdb51 correct looping through update actions, value stripping, hash key regex 2016-12-07 11:47:48 -08:00
Peter Gorniak
390bef7752 fake change to force push because github was broken 2016-12-06 16:57:36 -08:00
Peter Gorniak
98a39cf4b5 account for keys potentially being substrings of other keys (e.g. #c1 and #c10) 2016-12-06 12:14:57 -08:00
Peter Gorniak
2c50561563 fix decoding keys in query condition 2016-11-29 14:04:23 -08:00
Peter Gorniak
5a7c711a74 bring dynamodb2 update expression handling closer to spec 2016-11-25 21:07:24 -08:00
Nuno Santos
71c1fbadbe Add DynamoDB tests for update_item() with UpdateExpression, support spaces in the UpdateExpression. (#758)
Fixes #745.
2016-11-11 17:04:14 -05:00
Nuno Santos
74b56faafd Attempt to parse simple ConditionExpressions in DynamoDB put_item().
Internally these get converted into simpler Expected={} parameters, so
for now only `attribute_exists` and `attribute_not_exists` are supported;
OR is also not suported since `expected` does not support it.
2016-11-04 12:37:10 +01:00
Steve Pulec
ef42676496 Merge pull request #712 from skygeo/fix_dynamodb_batch_write
fix: change dynamodb2 batch write response
2016-10-09 18:56:29 -04:00
Georges Chaudy
bd3dd23c6b fix: change dynamodb2 batch write response 2016-09-23 17:07:49 +01:00
Georges Chaudy
6b74487b31 fix: dynamodb2 conditions 2016-09-23 16:14:17 +01:00
Collin RM Stocks
1b65c45b56 ALWAYS use utcnow(), never now() 2016-09-07 14:40:52 -04:00
Victor Blaga
69888c3baa update_item takes into account ExpressionAttributeNames and ExpressionAttributeValues
ExpressionAttributeNames and ExpressionAttributeValues
are no longer ignored during update_item.
2016-06-21 17:45:22 +02:00