mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 01:41:05 -05:00
add test
This commit is contained in:
@@ -150,6 +150,15 @@ def test_notify_config():
|
|||||||
assert os.environ['PERFORMANCE_PLATFORM_TOKEN'] == 'performance platform token'
|
assert os.environ['PERFORMANCE_PLATFORM_TOKEN'] == 'performance platform token'
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.usefixtures('os_environ', 'cloudfoundry_environ')
|
||||||
|
def test_notify_config_if_perf_platform_not_set(cloudfoundry_config):
|
||||||
|
del cloudfoundry_config['user-provided'][0]['credentials']['performance_platform_token']
|
||||||
|
|
||||||
|
set_config_env_vars(cloudfoundry_config)
|
||||||
|
|
||||||
|
assert os.environ['PERFORMANCE_PLATFORM_TOKEN'] == ''
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.usefixtures('os_environ', 'cloudfoundry_environ')
|
@pytest.mark.usefixtures('os_environ', 'cloudfoundry_environ')
|
||||||
def test_aws_config():
|
def test_aws_config():
|
||||||
extract_cloudfoundry_config()
|
extract_cloudfoundry_config()
|
||||||
|
|||||||
Reference in New Issue
Block a user