mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-03 21:47:10 +00:00
We already have a test, test_streams.py::test_streams_updateitem_old_image, for issue #6935: It tests that the OLD_IMAGE in Alternator Streams should contain the item's key. However this test was missing one corner case, which is the first solution for this issue did incorrectly. So in this patch we add a test for this corner case, test_streams_updateitem_old_image_empty_item: This corner case about the item existing, but *empty*, i.e., having just the key but no other attribute. In this case, OLD_IMAGE should return that empty item - including its key. Not nothing. As usual, this test passes on DynamoDB and xfails on Alternator, and the "xfail" mark will be removed when issue #6935 is fixed. Refs #6935. Signed-off-by: Nadav Har'El <nyh@scylladb.com> Message-Id: <20200819155229.34475-1-nyh@scylladb.com>