def testParsingProductionDefault(self): """ Make sure gratia picks up the itb defaults """ # need to be on a CE to get CE defaults if not gratia.requirements_are_installed(): return config_file = get_test_config("gratia/prod_default.ini") configuration = configparser.SafeConfigParser() configuration.read(config_file) settings = gratia.GratiaConfiguration(logger=global_logger) try: settings.parse_configuration(configuration) except Exception as e: self.fail("Received exception while parsing configuration: %s" % e) options = settings.options variables = { 'probes': 'jobmanager:gratia-osg-prod.opensciencegrid.org:80' } for var in variables: self.assertTrue(var in options, "Attribute %s missing" % var) self.assertEqual(options[var].value, variables[var], "Wrong value obtained for %s, got %s but " \ "expected %s" % (var, options[var].value, variables[var]))
def testParsingProductionDefault(self): """ Make sure gratia picks up the itb defaults """ # need to be on a CE to get CE defaults if not gratia.requirements_are_installed(): return config_file = get_test_config("gratia/prod_default.ini") configuration = ConfigParser.SafeConfigParser() configuration.read(config_file) settings = gratia.GratiaConfiguration(logger=global_logger) try: settings.parse_configuration(configuration) except Exception, e: self.fail("Received exception while parsing configuration: %s" % e)
def testParsingProductionDefault(self): """ Make sure gratia picks up the itb defaults """ # need to be on a CE to get CE defaults if not gratia.requirements_are_installed(): return config_file = get_test_config("gratia/prod_default.ini") configuration = ConfigParser.SafeConfigParser() configuration.read(config_file) settings = gratia.GratiaConfiguration(logger=global_logger) try: settings.parse_configuration(configuration) except Exception, e: self.fail("Received exception while parsing configuration: %s" % e)