Fixes job failing

Removes explicit version declaration.
Removes duplicated test.
Changes requirement for cassandra-driver to ==2.1.4

Closes-bug: #1475006
Closes-bug: #1474903
Change-Id: Ica7f6368524f453938f42fa7be068c69f1282b77
This commit is contained in:
Andrei V. Ostapenko 2015-07-15 18:16:28 +03:00
parent efd6621129
commit f29b24290f
4 changed files with 2 additions and 19 deletions

View File

@ -971,22 +971,6 @@ class MagnetoDBPutItemTest(MagnetoDBTestCase):
self.assertIn("u'type': u'ConditionalCheckFailedException'",
exception_str)
@attr(type=['PI-123', 'negative'])
def test_put_item_resource_not_found_exception(self):
item = {
"message": {"S": 'message_text'},
"author": {"S": "Bob"}
}
with self.assertRaises(exceptions.NotFound) as raises_cm:
self.client.put_item("nonexistent_table", item)
exception_str = str(raises_cm.exception)
self.assertIn('"title":"Not Found"', exception_str)
self.assertIn('"explanation":"The resource could not be found."',
exception_str)
self.assertIn('"message":"Table \'nonexistent_table\' does not exist"',
exception_str)
@attr(type=['PI-undef', 'negative'])
def test_put_item_if_not_exists_negative(self):
self.table_name = rand_name(self.table_prefix).replace('-', '')

View File

@ -765,7 +765,7 @@ class Parser():
Props.BACKUP_NAME: backup.name,
Props.TABLE_NAME: backup.table_name,
Props.STATUS: backup.status,
Props.STRATEGY: backup.strategy,
Props.STRATEGY: dict(backup.strategy),
Props.START_DATE_TIME: backup.start_date_time,
Props.LOCATION: backup.location
}

View File

@ -1,5 +1,5 @@
blist
cassandra-driver==2.1.3
cassandra-driver==2.1.4
eventlet>=0.15.2
gunicorn>=18.0
iso8601>=0.1.9

View File

@ -1,6 +1,5 @@
[metadata]
name = magnetodb
version = 2014.2
summary = MagnetoDB is key-value database service for OpenStack cloud
description-file =
README.rst