blob: 91f70fa8a7f9bbc17078514404580e2050e146fb [file] [log] [blame]
Matteo Scandolo5a07a2c2018-06-05 18:04:00 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15import os
16from xosconfig import Config
Zack Williams6bb2cfe2019-03-27 15:01:45 -070017
Matteo Scandolo5a07a2c2018-06-05 18:04:00 -070018current_dir = os.path.dirname(os.path.realpath(__file__))
Zack Williams6bb2cfe2019-03-27 15:01:45 -070019config_file = os.path.join(current_dir, "test_config.yaml")
20config_schema = os.path.join(current_dir, "../src/xos-tosca-config-schema.yaml")
Matteo Scandolo5a07a2c2018-06-05 18:04:00 -070021Config.clear()
Zack Williams6bb2cfe2019-03-27 15:01:45 -070022Config.init(config_file, config_schema)