Skip to content

Commit

Permalink
Merge pull request #1379 from uktrade/develop
Browse files Browse the repository at this point in the history
Release PR
  • Loading branch information
davidu1975 authored Dec 19, 2024
2 parents 290a4a3 + 0bced7c commit 8085144
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions conf/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class DBTPlatformEnvironment(BaseSettings):
e.g. DBTPlatformEnvironment.app_environment loads and validates the APP_ENVIRONMENT environment variable.
"""

celery_broker_url: str = ''
redis_endpoint: str = ''
opensearch_url: str

@computed_field(return_type=list[str])
Expand All @@ -270,7 +270,7 @@ def database_url(self):
@computed_field(return_type=str)
@property
def redis_url(self):
return self.celery_broker_url
return self.redis_endpoint

@computed_field(return_type=dict)
@property
Expand Down
2 changes: 1 addition & 1 deletion conf/tests/test_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def test_dbt_platform_environment(database_credentials, environment):
os.environ['APP_ENVIRONMENT'] = 'local'
os.environ['COPILOT_ENVIRONMENT_NAME'] = 'test'
os.environ['DATABASE_CREDENTIALS'] = database_credentials
os.environ['CELERY_BROKER_URL'] = 'rediss://examplepassword@example.com:6379'
os.environ['REDIS_ENDPOINT'] = 'rediss://examplepassword@example.com:6379'
os.environ['OPENSEARCH_URL'] = 'https://exampleuser:examplepassword@example.com:19676'

reload(environment_reader)
Expand Down

0 comments on commit 8085144

Please sign in to comment.