Merge "[qtip]refactor validate-deploy.sh"
[releng.git] / utils / test / testapi / opnfv_testapi / tests / unit / common / test_config.py
1 import os
2
3 from opnfv_testapi.common import config
4
5
6 def test_config_success():
7     config_file = os.path.join(os.path.dirname(__file__),
8                                '../../../../etc/config.ini')
9     config.Config.CONFIG = config_file
10     conf = config.Config()
11     assert conf.mongo_url == 'mongodb://127.0.0.1:27017/'
12     assert conf.mongo_dbname == 'test_results_collection'
13     assert conf.api_port == 8000
14     assert conf.api_debug is True
15     assert conf.api_authenticate is False
16     assert conf.swagger_base_url == 'http://localhost:8000'