SMO-100
Signed-off-by: sahil-xoriant <sahil.koli@xoriant.com>
Change-Id: I5fd9df0bf5bfe7fe4cb543bbe0dae0675eb69334
@pytest.fixture
def schema_wrong():
- schema_path ="/home/ves-dev/ves/tests/collector/schema.json"
- schema=json.load(open(schema_path, 'r'))
+ project_path = get_path()
+ schema_path = os.path.join(
+ project_path, "tests/collector/schema.json")
+ schema = json.load(open(schema_path, 'r'))
return schema
def get_path():
project_path = os.getcwd()
- project_path = project_path[:project_path.rfind('/')]
return project_path
def get_config_path():
project_path=get_path()
config_path = os.path.join(
- project_path,"ves/dmaapadapter/adapter/config/adapter.conf")
+ project_path,"dmaapadapter/adapter/config/adapter.conf")
return config_path
#test __init__ of EventConsumer