add test_api_config

This commit is contained in:
Dmitry Belyaev 2021-09-22 15:02:45 +03:00
parent 27ab87a7a2
commit 3d3d3df19f
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -87,3 +87,14 @@ def test_api_config_test(client):
'is_module_valid': True, 'is_module_valid': True,
} }
def test_api_config(client):
response = client.get('/api/v1/config')
data = response.get_json()
expected = ['apache_config', 'apache_restart_flagfile', 'infobases', 'dir_path', 'platform_path',
'url_base', 'url_prefix', 'vrd_params', 'vrd_path', 'ws_module']
expected.sort()
actual = list(data.keys())
actual.sort()
assert actual == expected