Data-Test-Executer Framework speziell zum Test von Datenverarbeitungen mit Datengenerierung, Systemvorbereitungen, Einspielungen, ganzheitlicher diversifizierender Vergleich
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.8 KiB

3 years ago
#
# --------------------------------------------------------
"""
When the test system is installed - especially in a continous pipeline - you dont know which versions are
installed and if each instance is running. In order to know these fundamental points it should be checked.
The result could be inserted into a database so you can get an overview over all test environments.
"""
3 years ago
from datetime import datetime
3 years ago
import basic.message
import basic.program
3 years ago
import inspect
3 years ago
#from components.component import CompData
3 years ago
3 years ago
3 years ago
class SystemMonitor():
3 years ago
def check_Instance(self):
"""
checks system-instances and writes it into the parameter-file
"""
job = None #basic.program.Job.getInstance()
3 years ago
verify = -1 + job.getDebugLevel(self.name)
self.m.logInfo("--- " + str(inspect.currentframe().f_code.co_name) + "() started at " + datetime.now().strftime(
"%Y%m%d_%H%M%S") + " for " + str(self.name).upper())
for c in self.confs["components"].keys():
if self.confs["components"][c] == "none":
pass
elif self.confs["components"][c]["relationtyp"] == "call":
self.m.logInfo("check connection from " + self.name + " to " + c)
elif self.confs["components"][c]["relationtyp"] == "called":
self.m.logInfo("check connection from " + c + " to " + self.name)
elif self.confs["components"][c]["relationtyp"] == "queue":
self.m.logInfo("check queue from " + self.name + " to " + c)
self.m.setMsg("checkInstance for " + self.name + " is OK")
self.m.logInfo("--- " + str(inspect.currentframe().f_code.co_name) + "() finished at " + datetime.now().strftime(
"%Y%m%d_%H%M%S") + " for " + str(self.name).upper())
def restart_Instance(self):
pass