aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRaul Benencia <raul@thousandeyes.com>2021-01-12 16:57:26 -0800
committerRaul Benencia <46945030+raul-te@users.noreply.github.com>2021-01-13 10:50:35 -0800
commitcfa915142c2bbff8d1572488b6343e56dfef9b64 (patch)
tree66961e8009fb10e84ddec3b55633d8cd4769cff8 /test
parentfa13436d4ceba235081c9eedb8d6f586ea21e7aa (diff)
Segregate BindAddr and BaseURL
Diffstat (limited to 'test')
-rwxr-xr-xtest/integ-test/integ_test.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/integ-test/integ_test.py b/test/integ-test/integ_test.py
index 4f02fe3..8cc1761 100755
--- a/test/integ-test/integ_test.py
+++ b/test/integ-test/integ_test.py
@@ -29,9 +29,8 @@ import datetime
import dateutil.parser
from requests.exceptions import RequestException
-API_HOST = 'localhost'
-API_PORT = '18888'
-API_URL = "http://{}:{}".format(API_HOST, API_PORT)
+API_ADDR = 'localhost:18888'
+API_URL = "http://{}".format(API_ADDR)
TEST_DIR = os.path.dirname(os.path.abspath(__file__))
BASE_DIR = os.path.dirname(os.path.dirname(TEST_DIR))
FIXTURE_DIR = os.path.join(TEST_DIR, 'expected-results')
@@ -49,15 +48,13 @@ def shoelaces_binary():
@pytest.fixture(scope="session", autouse=True)
def config_file(shoelaces_binary):
""" Create a temporary config file """
- temp_config_tpl = string.Template("domain=$host\n"
- "port=$port\n"
+ temp_config_tpl = string.Template("bind-addr=$bind_addr\n"
"data-dir=integ-test-configs\n"
"static-dir=$static_dir\n"
"template-extension=.slc\n"
"mappings-file=mappings.yaml\n"
"debug=true\n")
- temp_config = temp_config_tpl.substitute(host=API_HOST,
- port=API_PORT,
+ temp_config = temp_config_tpl.substitute(bind_addr=API_ADDR,
static_dir=STATIC_DIR)
sys.stderr.write("Using:\n{}".format(temp_config))
nihil fit ex nihilo