def test_flavor_get_attrs(self): expected_attrs = ["id", "name", "ram", "links"] flavor = self.rd_client.flavors.get(1) attrcheck = AttrCheck() flavor_dict = flavor._info attrcheck.attrs_exist(flavor_dict, expected_attrs, msg="Flavor Get 1") attrcheck.links(flavor_dict["links"])
def test_flavor_list_attrs(self): expected_attrs = ["id", "name", "ram", "links"] flavors = self.rd_client.flavors.list() attrcheck = AttrCheck() for flavor in flavors: flavor_dict = flavor._info attrcheck.attrs_exist(flavor_dict, expected_attrs, msg="Flavors list") attrcheck.links(flavor_dict["links"])
def test_flavor_get_attrs(self): expected_attrs =['id', 'name', 'ram', 'links'] flavor = self.rd_client.flavors.get(1) attrcheck = AttrCheck() flavor_dict = flavor._info attrcheck.attrs_exist(flavor_dict, expected_attrs, msg="Flavor Get 1") attrcheck.links(flavor_dict['links'])
def test_flavor_list_attrs(self): expected_attrs =['id', 'name', 'ram', 'links'] flavors = self.rd_client.flavors.list() attrcheck = AttrCheck() for flavor in flavors: flavor_dict = flavor._info attrcheck.attrs_exist(flavor_dict, expected_attrs, msg="Flavors list") attrcheck.links(flavor_dict['links'])
def test_flavor_get_attrs(self): expected_attrs = ['id', 'name', 'ram', 'links'] flavor = self.rd_client.flavors.get(1) attrcheck = AttrCheck() flavor_dict = flavor._info attrcheck.attrs_exist(flavor_dict, expected_attrs, msg="Flavor Get 1") attrcheck.links(flavor_dict['links'])
def test_flavor_list_attrs(self): expected_attrs = ['id', 'name', 'ram', 'links'] flavors = self.rd_client.flavors.list() attrcheck = AttrCheck() for flavor in flavors: flavor_dict = flavor._info attrcheck.attrs_exist(flavor_dict, expected_attrs, msg="Flavors list") attrcheck.links(flavor_dict['links'])