示例#1
0
 def test_0003(self):
     """Get MSSQL Service Info"""
     sql_air = SQLAir(token=self.vca.token, version='5.7', verify=True, log=True)
     service_code = 'mssql'
     service_mssql = sql_air.get_service(service_code)
     assert service_mssql
     assert service_mssql['serviceCode'] == service_code
示例#2
0
 def test_0003(self):
     """Get DB Instances"""
     sql_air = SQLAir(token=self.vca.token, version='5.7', verify=True, log=True)
     service_code = 'mssql'
     instances = sql_air.get_instances(service_code)
     assert instances
     assert instances['total'] >= 0
示例#3
0
 def test_0002(self):
     """Check SQLAir access"""
     # vdc_name = config['vcloud']['vdc']
     # the_vdc = self.vca.get_vdc(vdc_name)
     # assert the_vdc
     # assert the_vdc.get_name() == vdc_name
     sql_air = SQLAir(token=self.vca.token, version='5.7', verify=True, log=True)
     response_code = sql_air.ping()
     assert response_code == 200