def test_instance_type_extra_specs_create(self): net_attrs = {"net_arch": "ethernet", "net_mbps": "10000"} self.specs.update(net_attrs) db.flavor_extra_specs_update_or_create(self.context, self.flavorid, net_attrs) actual_specs = db.flavor_extra_specs_get(self.context, self.flavorid) self.assertEqual(self.specs, actual_specs)
def test_flavor_extra_specs_delete(self): del self.specs["xpu_model"] db.flavor_extra_specs_delete(self.context, self.flavorid, "xpu_model") actual_specs = db.flavor_extra_specs_get( self.context, self.flavorid) self.assertEqual(self.specs, actual_specs)
def test_instance_type_extra_specs_update(self): self.specs["cpu_model"] = "Sandy Bridge" db.flavor_extra_specs_update_or_create( self.context, self.flavorid, dict(cpu_model="Sandy Bridge")) actual_specs = db.flavor_extra_specs_get( self.context, self.flavorid) self.assertEqual(self.specs, actual_specs)
def test_instance_type_extra_specs_create(self): net_attrs = { "net_arch": "ethernet", "net_mbps": "10000" } self.specs.update(net_attrs) db.flavor_extra_specs_update_or_create( self.context, self.flavorid, net_attrs) actual_specs = db.flavor_extra_specs_get( self.context, self.flavorid) self.assertEqual(self.specs, actual_specs)
def test_instance_type_extra_specs_update(self): self.specs["cpu_model"] = "Sandy Bridge" db.flavor_extra_specs_update_or_create(self.context, self.flavorid, dict(cpu_model="Sandy Bridge")) actual_specs = db.flavor_extra_specs_get(self.context, self.flavorid) self.assertEqual(self.specs, actual_specs)
def test_flavor_extra_specs_delete(self): del self.specs["xpu_model"] db.flavor_extra_specs_delete(self.context, self.flavorid, "xpu_model") actual_specs = db.flavor_extra_specs_get(self.context, self.flavorid) self.assertEqual(self.specs, actual_specs)
def test_instance_type_specs_get(self): actual_specs = db.flavor_extra_specs_get(self.context, self.flavorid) self.assertEqual(self.specs, actual_specs)
def test_instance_type_specs_get(self): actual_specs = db.flavor_extra_specs_get( self.context, self.flavorid) self.assertEqual(self.specs, actual_specs)