Beispiel #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'])
Beispiel #2
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"])
Beispiel #3
0
 def test_flavor_get_attrs(self):
     expected_attrs = ['id', 'name', 'ram', 'links', 'local_storage']
     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'])
Beispiel #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"])
Beispiel #5
0
 def test_flavor_list_attrs(self):
     expected_attrs = ['id', 'name', 'ram', 'links', 'local_storage']
     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'])
Beispiel #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'])