Ejemplo n.º 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'])
Ejemplo n.º 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'])
Ejemplo n.º 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'])
Ejemplo n.º 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'])