mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 08:31:00 -04:00
bump utils to 13.10.0
pass in the base URL - if not set in the environment this is set to localhost, but on paas we can pull this out of vcap_services so that letters render properly on paas
This commit is contained in:
@@ -12,6 +12,7 @@ def notify_config():
|
||||
'name': 'notify-config',
|
||||
'credentials': {
|
||||
'api_host_name': 'api host name',
|
||||
'admin_base_url': 'admin base url',
|
||||
'admin_client_secret': 'admin client secret',
|
||||
'secret_key': 'secret key',
|
||||
'dangerous_salt': 'dangerous salt',
|
||||
@@ -100,6 +101,7 @@ def test_notify_config():
|
||||
extract_cloudfoundry_config()
|
||||
|
||||
assert os.environ['API_HOST_NAME'] == 'api host name'
|
||||
assert os.environ['ADMIN_BASE_URL'] == 'admin base url'
|
||||
assert os.environ['ADMIN_CLIENT_SECRET'] == 'admin client secret'
|
||||
assert os.environ['SECRET_KEY'] == 'secret key'
|
||||
assert os.environ['DANGEROUS_SALT'] == 'dangerous salt'
|
||||
|
||||
Reference in New Issue
Block a user