2021-06-30 19:49:04 +03:00
|
|
|
from starlette.config import Config
|
|
|
|
|
|
|
|
|
2024-03-05 20:55:52 +03:00
|
|
|
try:
|
|
|
|
config = Config('.env')
|
|
|
|
# Workaround needed until FastAPI uses Starlette >= 3.7.1
|
|
|
|
except FileNotFoundError:
|
|
|
|
config = Config()
|
2021-06-30 19:49:04 +03:00
|
|
|
|
|
|
|
# Resource Info
|
|
|
|
RESOURCE_LOCATION: str = config("RESOURCE_LOCATION", default="")
|
|
|
|
TRE_ID: str = config("TRE_ID", default="")
|
2022-05-06 01:38:19 +03:00
|
|
|
TRE_URL: str = config("TRE_URL", default="")
|
2022-03-03 17:36:28 +03:00
|
|
|
API_CLIENT_ID: str = config("API_CLIENT_ID", default="")
|
2022-03-14 23:33:55 +03:00
|
|
|
TEST_USER_NAME: str = config("TEST_USER_NAME", default="")
|
|
|
|
TEST_USER_PASSWORD: str = config("TEST_USER_PASSWORD", default="")
|
|
|
|
TEST_APP_ID: str = config("TEST_APP_ID", default="")
|
2022-03-03 17:36:28 +03:00
|
|
|
AAD_TENANT_ID: str = config("AAD_TENANT_ID", default="")
|
2022-03-23 10:06:08 +03:00
|
|
|
TEST_ACCOUNT_CLIENT_ID: str = config("TEST_ACCOUNT_CLIENT_ID", default="")
|
|
|
|
TEST_ACCOUNT_CLIENT_SECRET: str = config("TEST_ACCOUNT_CLIENT_SECRET", default="")
|
2021-11-25 16:01:53 +03:00
|
|
|
TEST_WORKSPACE_APP_ID: str = config("TEST_WORKSPACE_APP_ID", default="")
|
2022-04-14 18:43:54 +03:00
|
|
|
TEST_WORKSPACE_APP_SECRET: str = config("TEST_WORKSPACE_APP_SECRET", default="")
|
2022-10-03 17:03:42 +03:00
|
|
|
TEST_WORKSPACE_APP_PLAN: str = config("WORKSPACE_APP_SERVICE_PLAN_SKU", default="")
|
2022-04-04 21:01:47 +03:00
|
|
|
|
2022-08-17 15:07:36 +03:00
|
|
|
# Set workspace id of an existing workspace to skip creation of a workspace during E2E tests
|
2022-11-10 21:52:21 +03:00
|
|
|
TEST_WORKSPACE_ID: str = config("TEST_WORKSPACE_ID", default="")
|
2022-12-08 19:28:01 +03:00
|
|
|
TEST_WORKSPACE_SERVICE_ID: str = config("TEST_WORKSPACE_SERVICE_ID", default="")
|
2022-11-10 21:52:21 +03:00
|
|
|
TEST_AAD_WORKSPACE_ID: str = config("TEST_AAD_WORKSPACE_ID", default="")
|
2022-12-08 19:28:01 +03:00
|
|
|
TEST_AIRLOCK_IMPORT_REVIEW_WORKSPACE_ID: str = config("TEST_AIRLOCK_IMPORT_REVIEW_WORKSPACE_ID", default="")
|
|
|
|
TEST_AIRLOCK_IMPORT_REVIEW_WORKSPACE_SERVICE_ID: str = config("TEST_AIRLOCK_IMPORT_REVIEW_WORKSPACE_SERVICE_ID", default="")
|