Example #1
0
 def test_get_all_with_all_api_flavors(self):
     db_flavors = db_api.flavor_get_all(self.context)
     for flavor in db_flavors:
         db_api.flavor_destroy(self.context, flavor['name'])
     flavor = ForcedFlavor(context=self.context, **fake_api_flavor)
     flavor.create()
     self._test_get_all(1)
Example #2
0
 def test_upgrade_with_deleted_flavors(self):
     flavor = db_api.flavor_create(self.context, self.flavor_values)
     db_api.flavor_destroy(self.context, flavor['flavorid'])
     self.migration.upgrade(self.engine)
Example #3
0
 def _delete_main_flavors(self):
     flavors = db_api.flavor_get_all(self.context)
     for flavor in flavors:
         db_api.flavor_destroy(self.context, flavor['name'])
 def test_upgrade_with_deleted_flavors(self):
     flavor = db_api.flavor_create(self.context, self.flavor_values)
     db_api.flavor_destroy(self.context, flavor['flavorid'])
     self.migration.upgrade(self.engine)