3 from opnfv_testapi.common import config
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'