From 3d3d3df19f5072e65bfccedb91738927ffd1641b Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 22 Sep 2021 15:02:45 +0300 Subject: [PATCH] add test_api_config --- tests/test_pub1c-rest.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/test_pub1c-rest.py b/tests/test_pub1c-rest.py index 7516271..f0fed14 100644 --- a/tests/test_pub1c-rest.py +++ b/tests/test_pub1c-rest.py @@ -87,3 +87,14 @@ def test_api_config_test(client): '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 +