summaryrefslogtreecommitdiffstats
path: root/utils/test/result_collection_api/common
diff options
context:
space:
mode:
Diffstat (limited to 'utils/test/result_collection_api/common')
-rw-r--r--utils/test/result_collection_api/common/config.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/test/result_collection_api/common/config.py b/utils/test/result_collection_api/common/config.py
index a0d0757a5..a62e80593 100644
--- a/utils/test/result_collection_api/common/config.py
+++ b/utils/test/result_collection_api/common/config.py
@@ -47,6 +47,7 @@ class APIConfig:
def __init__(self):
self._default_config_location = "config.ini"
self.mongo_url = None
+ self.mongo_dbname = None
self.api_port = None
self.api_debug_on = None
self._parser = None
@@ -87,13 +88,18 @@ class APIConfig:
# Linking attributes to keys from file with their sections
obj.mongo_url = obj._get_parameter("mongo", "url")
+ obj.mongo_dbname = obj._get_parameter("mongo", "dbname")
+
obj.api_port = obj._get_int_parameter("api", "port")
obj.api_debug_on = obj._get_bool_parameter("api", "debug")
+
return obj
def __str__(self):
return "mongo_url = %s \n" \
+ "mongo_dbname = %s \n" \
"api_port = %s \n" \
"api_debug_on = %s \n" % (self.mongo_url,
+ self.mongo_dbname,
self.api_port,
self.api_debug_on)