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:
parent
efd6621129
commit
f29b24290f
|
@ -971,22 +971,6 @@ class MagnetoDBPutItemTest(MagnetoDBTestCase):
|
||||||
self.assertIn("u'type': u'ConditionalCheckFailedException'",
|
self.assertIn("u'type': u'ConditionalCheckFailedException'",
|
||||||
exception_str)
|
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'])
|
@attr(type=['PI-undef', 'negative'])
|
||||||
def test_put_item_if_not_exists_negative(self):
|
def test_put_item_if_not_exists_negative(self):
|
||||||
self.table_name = rand_name(self.table_prefix).replace('-', '')
|
self.table_name = rand_name(self.table_prefix).replace('-', '')
|
||||||
|
|
|
@ -765,7 +765,7 @@ class Parser():
|
||||||
Props.BACKUP_NAME: backup.name,
|
Props.BACKUP_NAME: backup.name,
|
||||||
Props.TABLE_NAME: backup.table_name,
|
Props.TABLE_NAME: backup.table_name,
|
||||||
Props.STATUS: backup.status,
|
Props.STATUS: backup.status,
|
||||||
Props.STRATEGY: backup.strategy,
|
Props.STRATEGY: dict(backup.strategy),
|
||||||
Props.START_DATE_TIME: backup.start_date_time,
|
Props.START_DATE_TIME: backup.start_date_time,
|
||||||
Props.LOCATION: backup.location
|
Props.LOCATION: backup.location
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
blist
|
blist
|
||||||
cassandra-driver==2.1.3
|
cassandra-driver==2.1.4
|
||||||
eventlet>=0.15.2
|
eventlet>=0.15.2
|
||||||
gunicorn>=18.0
|
gunicorn>=18.0
|
||||||
iso8601>=0.1.9
|
iso8601>=0.1.9
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
name = magnetodb
|
name = magnetodb
|
||||||
version = 2014.2
|
|
||||||
summary = MagnetoDB is key-value database service for OpenStack cloud
|
summary = MagnetoDB is key-value database service for OpenStack cloud
|
||||||
description-file =
|
description-file =
|
||||||
README.rst
|
README.rst
|
||||||
|
|
Loading…
Reference in New Issue