Exemple #1
0
 def test_cloud_instance_info(self):
     # find an instance to get info for
     res = cloud.cloud_instances()
     instances_list = [(x, y) for (x, y) in res.items() if len(y) > 0]
     if len(instances_list) > 0:
         # just take the first valid one
         _type, instance_data = instances_list[0]
         args = {'type': _type, 'instance_id': instance_data[0]['id']}
         res = cloud.cloud_instance_info(**args)
         assert_equal(res['id'], instance_data[0]['id'])
     else:
         raise SkipTest
Exemple #2
0
 def test_cloud_instance_info(self):
     # find an instance to get info for
     res = cloud.cloud_instances()
     instances_list = [(x, y) for (x, y) in res.items() if len(y) > 0]
     if len(instances_list) > 0:
         # just take the first valid one
         _type, instance_data = instances_list[0]
         args = {'type': _type,
                 'instance_id': instance_data[0]['id']}
         res = cloud.cloud_instance_info(**args)
         assert_equal(res['id'], instance_data[0]['id'])
     else:
         raise SkipTest
Exemple #3
0
 def test_cloud_instances(self):
     res = cloud.cloud_instances()
     assert isinstance(res, dict)
Exemple #4
0
 def test_cloud_instances(self):
     res = cloud.cloud_instances()
     assert isinstance(res, dict)