예제 #1
0
 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"])
예제 #2
0
 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"])
예제 #3
0
 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'])
예제 #4
0
 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'])
예제 #5
0
 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'])
예제 #6
0
 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'])