From 466f25b1e85167ea061dce6fe4eef8c31624e567 Mon Sep 17 00:00:00 2001 From: Piotr Sarna Date: Fri, 5 Jul 2019 13:21:30 +0200 Subject: [PATCH] alternator-test: enable batch duplication cases With duplication checks implemented, batch write and delete tests no longer need to be marked @xfail. Message-Id: <6c5864607e06e8249101bd711dac665743f78d9f.1562325663.git.sarna@scylladb.com> --- alternator-test/test_batch.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/alternator-test/test_batch.py b/alternator-test/test_batch.py index d42d6f59b6..3178294e04 100644 --- a/alternator-test/test_batch.py +++ b/alternator-test/test_batch.py @@ -67,7 +67,6 @@ def test_batch_write_and_delete(test_table_s): # It is forbidden to update the same key twice in the same batch. # DynamoDB says "Provided list of item keys contains duplicates". -@pytest.mark.xfail(reason="BatchWriteItem does not yet check for duplicates") def test_batch_write_duplicate_write(test_table_s): p = random_string() with pytest.raises(ClientError, match='ValidationException.*duplicates'): @@ -75,7 +74,6 @@ def test_batch_write_duplicate_write(test_table_s): batch.put_item({'p': p}) batch.put_item({'p': p}) -@pytest.mark.xfail(reason="BatchWriteItem does not yet check for duplicates") def test_batch_write_duplicate_delete(test_table_s): p = random_string() with pytest.raises(ClientError, match='ValidationException.*duplicates'): @@ -83,7 +81,6 @@ def test_batch_write_duplicate_delete(test_table_s): batch.delete_item(Key={'p': p}) batch.delete_item(Key={'p': p}) -@pytest.mark.xfail(reason="BatchWriteItem does not yet check for duplicates") def test_batch_write_duplicate_write_and_delete(test_table_s): p = random_string() with pytest.raises(ClientError, match='ValidationException.*duplicates'):