Skip to content
Snippets Groups Projects
Commit 793a645c authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-780: test correct remote path

parent 38150e13
No related branches found
No related tags found
1 merge request!393Resolve L2SS-780 "Prometheus exporter test"
......@@ -14,7 +14,7 @@ import sys
#tpc = importlib.import_module('tango-prometheus-client')
import importlib.util
module_name = 'ArchiverPolicy'
file_path = '/opt/lofar/tango/docker-compose/tango-prometheus-exporter/code/tango-prometheus-client.py'
file_path = '/tango/docker-compose/tango-prometheus-exporter/code/tango-prometheus-client.py'
spec = importlib.util.spec_from_file_location(module_name, file_path)
tpc = importlib.util.module_from_spec(spec)
sys.modules[module_name] = tpc
......@@ -22,7 +22,7 @@ spec.loader.exec_module(tpc)
class TestArchiverPolicy(base.TestCase):
CONFIG = tpc.ArchiverPolicy.load_config('/opt/lofar/tango/docker-compose/tango-prometheus-exporter/lofar2-policy.json')
CONFIG = tpc.ArchiverPolicy.load_config('/tango/docker-compose/tango-prometheus-exporter/lofar2-policy.json')
def test_config_file(self):
""" Test if policy config file is correctly retrieved """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment