diff options
author | 2017-10-20 16:13:29 +0800 | |
---|---|---|
committer | 2017-10-20 16:33:11 +0800 | |
commit | 410025769a5f59469722704cdb1d53bfe1d20ba0 (patch) | |
tree | 75e0f7ea185254aeba0314a53b8b59da033fecc4 /utils/test/testapi/opnfv_testapi/tests/unit | |
parent | dfe4f90bdcd765d3045ee1a9c6f00ea0b394e665 (diff) |
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 <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/testapi/opnfv_testapi/tests/unit')
-rw-r--r-- | utils/test/testapi/opnfv_testapi/tests/unit/common/test_config.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/test/testapi/opnfv_testapi/tests/unit/common/test_config.py b/utils/test/testapi/opnfv_testapi/tests/unit/common/test_config.py index ea2297275..6d160ce1d 100644 --- a/utils/test/testapi/opnfv_testapi/tests/unit/common/test_config.py +++ b/utils/test/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' |