def __init__(self, args): self.cp = getTestConfig(args) self.args = " ".join(args) # these are the test lists by category self.reports = [] self.critical_tests = [] self.glite_tests = [] # output files self.output_files = [] # command line values self.output_dir = cp_get( self.cp, "gip_tests", "results_dir", os.path.expandvars("$GIP_LOCATION/reporting/results")) self.source_cmd = "source %s/setup.sh" % os.path.expandvars( "$VDT_LOCATION") self.extList = [".xsl"] # set up the critical test list default_critical_tests = "Interop_Reporting_Check,Missing_Sites,Validate_GIP_BDII,Validate_GIP_URL" crit_conf = cp_get(self.cp, "gip_tests", "critical_tests", default_critical_tests) self.crit = [i.strip() for i in crit_conf.split(',')]
def __init__(self, args): self.cp = getTestConfig(args) self.oim_tests = "Interop_Reporting_Check,Missing_Sites,Validate_GIP_BDII" self.oim_xml_dir = "" self.oim_summary_xml_file = "" self.oim_detail_file_template = "" self.results_dir = "" self.log = logging.getLogger("GIP.Reporting.OIM.Plugin") self.setConfigValues()
def main(): cp = getTestConfig("xml") results_dir = os.path.expandvars(cp_get(cp, "gip_tests", "results_dir", "$VDT_LOCATION/apache/htdocs/")) # check for the existence of the css, images, and includes directories in the results dir # if they do not exist, copy the dirs and their contents to the results dir source_dir = os.path.expandvars('$GIP_LOCATION/reporting/http') css_dir = "%s/css" % results_dir images_dir = "%s/images" % results_dir includes_dir = "%s/includes" % results_dir if not os.path.isdir(css_dir): runCommand("cp -r %s/css %s" % (source_dir, css_dir)) if not os.path.isdir(images_dir): runCommand("cp -r %s/images %s" % (source_dir, images_dir)) if not os.path.isdir(includes_dir): runCommand("cp -r %s/includes %s" % (source_dir, includes_dir))
def main(): cp = getTestConfig("xml") results_dir = os.path.expandvars( cp_get(cp, "gip_tests", "results_dir", "$VDT_LOCATION/apache/htdocs/")) # check for the existence of the css, images, and includes directories in the results dir # if they do not exist, copy the dirs and their contents to the results dir source_dir = os.path.expandvars('$GIP_LOCATION/reporting/http') css_dir = "%s/css" % results_dir images_dir = "%s/images" % results_dir includes_dir = "%s/includes" % results_dir if not os.path.isdir(css_dir): runCommand("cp -r %s/css %s" % (source_dir, css_dir)) if not os.path.isdir(images_dir): runCommand("cp -r %s/images %s" % (source_dir, images_dir)) if not os.path.isdir(includes_dir): runCommand("cp -r %s/includes %s" % (source_dir, includes_dir))
def main(args): """ The main entry point for when gip_validate is run in standalone mode. """ cp = getTestConfig(args) try: type = args[1] if type == "url": args.pop(1) cp.set("gip_tests", "validate_type", "url") elif type == "gipinfo": args.pop(1) cp.set("gip_tests", "validate_type", "gipinfo") else: cp.set("gip_tests", "validate_type", "bdii") except: cp.set("gip_tests", "validate_type", "bdii") runTest(cp, GipValidate)
def __init__(self, args): self.cp = getTestConfig(args) self.args = " ".join(args) # these are the test lists by category self.reports = [] self.critical_tests = [] self.glite_tests = [] # output files self.output_files = [] # command line values self.output_dir = cp_get(self.cp, "gip_tests", "results_dir", os.path.expandvars("$GIP_LOCATION/reporting/results")) self.source_cmd = "source %s/setup.sh" % os.path.expandvars("$VDT_LOCATION") self.extList = [".xsl"] # set up the critical test list default_critical_tests = "Interop_Reporting_Check,Missing_Sites,Validate_GIP_BDII,Validate_GIP_URL" crit_conf = cp_get(self.cp, "gip_tests", "critical_tests", default_critical_tests) self.crit = [i.strip() for i in crit_conf.split(',')]