mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-20 14:29:25 -04:00
Change MMG username to look at env variable
This commit is contained in:
@@ -19,6 +19,7 @@ def notify_config():
|
||||
'allow_ip_inbound_sms': ['111.111.111.111', '100.100.100.100'],
|
||||
'firetext_inbound_sms_auth': ['testkey'],
|
||||
'mmg_inbound_sms_auth': ['testkey'],
|
||||
'mmg_inbound_sms_username': ['username'],
|
||||
'route_secret_key_1': "key_1",
|
||||
'route_secret_key_2': ""
|
||||
}
|
||||
@@ -240,6 +241,13 @@ def test_mmg_inbound_sms_auth_config():
|
||||
assert os.environ['MMG_INBOUND_SMS_AUTH'] == json.dumps(['testkey'])
|
||||
|
||||
|
||||
@pytest.mark.usefixtures('os_environ', 'cloudfoundry_environ')
|
||||
def test_mmg_inbound_sms_username_config():
|
||||
extract_cloudfoundry_config()
|
||||
|
||||
assert os.environ['MMG_INBOUND_SMS_USERNAME'] == json.dumps(['username'])
|
||||
|
||||
|
||||
@pytest.mark.usefixtures('os_environ', 'cloudfoundry_environ')
|
||||
def test_performance_platform_config():
|
||||
extract_cloudfoundry_config()
|
||||
|
||||
Reference in New Issue
Block a user