diff options
author | 2017-07-06 15:37:03 +0200 | |
---|---|---|
committer | 2017-07-06 15:37:03 +0200 | |
commit | 5cc39c4b3a2de6d670f357ed3329a4d6587c7fc7 (patch) | |
tree | 76f4220f458f073f24e3d3a2fc11d66d397f697e /moonv4/moon_interface/tests/apitests/utils/models.py | |
parent | 19dd4e461d1239754bd1a82e30f2a770c99a7f90 (diff) |
Update test and visualization scripts
Change-Id: I62d50d8d3e839a1d6c8ff948cc84ecc45bb0e92f
Diffstat (limited to 'moonv4/moon_interface/tests/apitests/utils/models.py')
-rw-r--r-- | moonv4/moon_interface/tests/apitests/utils/models.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/moonv4/moon_interface/tests/apitests/utils/models.py b/moonv4/moon_interface/tests/apitests/utils/models.py index 8343f77e..5039d185 100644 --- a/moonv4/moon_interface/tests/apitests/utils/models.py +++ b/moonv4/moon_interface/tests/apitests/utils/models.py @@ -1,7 +1,13 @@ import requests import copy +import configparser -URL = "http://172.18.0.11:38001{}" +config = configparser.ConfigParser() +if not config.read("moon.conf"): + config.read("/etc/moon/moon.conf") + +URL = "http://{}:{}".format(config['interface']['host'], config['interface']['port']) +URL = URL + "{}" HEADERS = {"content-type": "application/json"} model_template = { |