From 839c1468cbe2025e759458bbe82c2f99a5ea347f Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Fri, 20 Oct 2017 16:13:29 +0800 Subject: allow authentication to be disabled in local deployment situation, authentication can be disabled by setting authenticate=False of ui section in config.ini JIRA: RELENG-324 Change-Id: I9157d1723851feb12435033dbdd59035e3eb5777 Signed-off-by: SerenaFeng --- testapi/opnfv_testapi/tests/unit/common/test_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'testapi/opnfv_testapi/tests/unit') diff --git a/testapi/opnfv_testapi/tests/unit/common/test_config.py b/testapi/opnfv_testapi/tests/unit/common/test_config.py index ea22972..6d160ce 100644 --- a/testapi/opnfv_testapi/tests/unit/common/test_config.py +++ b/testapi/opnfv_testapi/tests/unit/common/test_config.py @@ -12,7 +12,8 @@ def test_config_normal(mocker, config_normal): assert CONF.mongo_dbname == 'test_results_collection' assert CONF.api_port == 8000 assert CONF.api_debug is True - assert CONF.api_authenticate is False + assert CONF.api_token_check is False + assert CONF.api_authenticate is True assert CONF.ui_url == 'http://localhost:8000' -- cgit 1.2.3-korg