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>
This commit is contained in:
Piotr Sarna
2019-07-05 13:21:30 +02:00
committed by Nadav Har'El
parent eb7ada8387
commit 466f25b1e8

View File

@@ -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'):