summaryrefslogtreecommitdiffstats
path: root/utils/test/result_collection_api/update/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/test/result_collection_api/update/utils.py')
-rw-r--r--utils/test/result_collection_api/update/utils.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/test/result_collection_api/update/utils.py b/utils/test/result_collection_api/update/utils.py
index ef93f33cf..a18ff0389 100644
--- a/utils/test/result_collection_api/update/utils.py
+++ b/utils/test/result_collection_api/update/utils.py
@@ -16,10 +16,14 @@ def get_abspath(path):
return os.path.abspath(path)
-def url_parse(url):
+def parse_mongodb_url(url):
url = urlparse.urlparse(url)
assert url.scheme == 'mongodb', 'URL must be a MongoDB URL'
+ return url
+
+def url_parse(url):
+ url = parse_mongodb_url(url)
return url.username, url.password, url.hostname, url.port