Commit 0b33288b authored by Marian Babik's avatar Marian Babik
Browse files

added SAME_CODES to env

parent 2ece61c2
...@@ -6,6 +6,8 @@ from vofeed.api import VOFeed ...@@ -6,6 +6,8 @@ from vofeed.api import VOFeed
log = logging.getLogger('ncgx') log = logging.getLogger('ncgx')
SAME_CODES = {'OK': 10, 'INFO': 20, 'NOTICE': 30, 'WARNING': 40, 'ERROR': 50, 'CRITICAL': 60, 'MAINTENANCE': 100}
FLAVOR_MAP = {'CREAM-CE': 'cream', FLAVOR_MAP = {'CREAM-CE': 'cream',
'ARC-CE': 'arc', 'ARC-CE': 'arc',
'HTCONDOR-CE': 'condor', 'HTCONDOR-CE': 'condor',
...@@ -118,8 +120,8 @@ def run(url, ipv6=False): ...@@ -118,8 +120,8 @@ def run(url, ipv6=False):
','.join(['etf/probes/org.cms/testjob/tests/'+m for m in WN_METRICS.keys()]))) ','.join(['etf/probes/org.cms/testjob/tests/'+m for m in WN_METRICS.keys()])))
etf_env.write('ETF_LEGACY={}\n'.format( etf_env.write('ETF_LEGACY={}\n'.format(
','.join(['etf/probes/org.cms/testjob/tests/' + m for m in WN_METRICS_LEGACY]))) ','.join(['etf/probes/org.cms/testjob/tests/' + m for m in WN_METRICS_LEGACY])))
# for code, value in SAME_CODES.items(): for code, value in SAME_CODES.items():
# etf_env.write('SAME_{}={}\n'.format(code, value)) etf_env.write('SAME_{}={}\n'.format(code, value))
etf_env.write('SAME_VO=cms\n') etf_env.write('SAME_VO=cms\n')
etf_env.write('SAME_TEST_DIRNAME=$ETFROOT/probes/org.cms/testjob/tests\n') etf_env.write('SAME_TEST_DIRNAME=$ETFROOT/probes/org.cms/testjob/tests\n')
etf_env.write('SAME_SENSOR_HOME=$ETFROOT/probes/org.cms/testjob\n') etf_env.write('SAME_SENSOR_HOME=$ETFROOT/probes/org.cms/testjob\n')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment