diff --git a/CHANGELOG.md b/CHANGELOG.md index 287d7e19d..e0da3cf8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -168,3 +168,7 @@ Please add a _short_ line describing the PR you make, if the PR implements a spe - Change token check message for Windows to more user friendly ([#500](https://github.com/ScilifelabDataCentre/dds_cli/pull/500)) - New command: List all users as Super Admin and find existing users ([#504](https://github.com/ScilifelabDataCentre/dds_cli/pull/504)) - Add possibility of allowing group access to authenticated session ([#502](https://github.com/ScilifelabDataCentre/dds_cli/pull/502)) + +## Summer 2022 + +- Check for DDS_CLI_ENV = "test-instance" in order to allow testing of features before production ([#506](https://github.com/ScilifelabDataCentre/dds_cli/pull/506)) diff --git a/dds_cli/__init__.py b/dds_cli/__init__.py index bdff08630..56a14dda7 100644 --- a/dds_cli/__init__.py +++ b/dds_cli/__init__.py @@ -59,10 +59,13 @@ class DDSEndpoint: BASE_ENDPOINT_LOCAL = "http://127.0.0.1:5000/api/v1" BASE_ENDPOINT_DOCKER = "http://dds_backend:5000/api/v1" BASE_ENDPOINT_REMOTE = "https://delivery.scilifelab.se/api/v1" + BASE_ENDPOINT_REMOTE_TEST = "https://dds-dev.dckube.scilifelab.se/api/v1" if os.getenv("DDS_CLI_ENV") == "development": BASE_ENDPOINT = BASE_ENDPOINT_LOCAL elif os.getenv("DDS_CLI_ENV") == "docker-dev": BASE_ENDPOINT = BASE_ENDPOINT_DOCKER + elif os.getenv("DDS_CLI_ENV") == "test-instance": + BASE_ENDPOINT = BASE_ENDPOINT_REMOTE_TEST else: BASE_ENDPOINT = BASE_ENDPOINT_REMOTE diff --git a/dds_cli/utils.py b/dds_cli/utils.py index 1b2390d4b..f0beffa0e 100644 --- a/dds_cli/utils.py +++ b/dds_cli/utils.py @@ -186,7 +186,7 @@ def perform_request( + ( ": The database seems to be down." if isinstance(err, requests.exceptions.ConnectionError) - else ": Unknown request error." + else f": Unknown request error -- \n {err}" ) ) ) diff --git a/dds_cli/version.py b/dds_cli/version.py index 382021f30..328354dbf 100644 --- a/dds_cli/version.py +++ b/dds_cli/version.py @@ -1 +1 @@ -__version__ = "1.0.6" +__version__ = "1.0.61"