def validateGet(self): from walib.utils import validatedb test = validatedb(self.serviceconf.connection["user"], self.serviceconf.connection["password"], self.serviceconf.connection["dbname"], self.serviceconf.connection["host"], self.serviceconf.connection["port"], self.service)
def executePost(self): from walib.utils import validatedb res={} try: test_conn = validatedb(self.json["user"],self.json["password"],self.json["dbname"], self.json["host"],self.json["port"]) res["database"] = "active" except: res["database"] = "inactive" self.setData(res) self.setMessage("Database validation request successfully executed")
def executePost(self): from walib.utils import validatedb res = {} try: test_conn = validatedb(self.json["user"], self.json["password"], self.json["dbname"], self.json["host"], self.json["port"]) res["database"] = "active" except: res["database"] = "inactive" self.setData(res) self.setMessage("Database validation request successfully executed")
def executePut(self): from walib.utils import validatedb test = validatedb(self.json["user"],self.json["password"],self.json["dbname"], self.json["host"],self.json["port"],self.service) waResourceConfigurator.executePut(self)
def executePut(self): from walib.utils import validatedb test = validatedb(self.json["user"], self.json["password"], self.json["dbname"], self.json["host"], self.json["port"], self.service) waResourceConfigurator.executePut(self)