Beispiel #1
0
 def test_aggregate_delete_with_metadata(self):
     result = _create_aggregate(self.context,
                         metadata={'availability_zone': 'fake_avail_zone'})
     aggregate_obj._aggregate_delete_from_db(self.context, result['id'])
     self.assertRaises(exception.AggregateNotFound,
                       aggregate_obj._aggregate_get_from_db,
                       self.context, result['id'])
Beispiel #2
0
 def test_aggregate_delete_with_metadata(self):
     result = _create_aggregate(self.context,
                         metadata={'availability_zone': 'fake_avail_zone'})
     aggregate_obj._aggregate_delete_from_db(self.context, result['id'])
     self.assertRaises(exception.AggregateNotFound,
                       aggregate_obj._aggregate_get_from_db,
                       self.context, result['id'])
Beispiel #3
0
 def test_aggregate_delete(self):
     result = _create_aggregate(self.context, metadata=None)
     aggregate_obj._aggregate_delete_from_db(self.context, result['id'])
     self.assertRaises(exception.AggregateNotFound,
                       aggregate_obj._aggregate_get_from_db,
                       self.context, result['id'])
Beispiel #4
0
 def test_aggregate_delete(self):
     result = _create_aggregate(self.context, metadata=None)
     aggregate_obj._aggregate_delete_from_db(self.context, result['id'])
     self.assertRaises(exception.AggregateNotFound,
                       aggregate_obj._aggregate_get_from_db,
                       self.context, result['id'])