X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=functest%2Futils%2Fconstants.py;h=5e7c24422d6eaee1d19cb570ee20e88193260848;hb=5cb9051a0418815636a1d5df66940e168c4e0a56;hp=2e8eb3f44c07616888ecaef9a005667f1a26353d;hpb=2e9757725ef3bf6045eeb69191d96314c268f6ca;p=functest.git diff --git a/functest/utils/constants.py b/functest/utils/constants.py old mode 100755 new mode 100644 index 2e8eb3f44..5e7c24422 --- a/functest/utils/constants.py +++ b/functest/utils/constants.py @@ -1,20 +1,11 @@ -import config -import env +#!/usr/bin/env python +# pylint: disable=missing-docstring -class Constants(object): - def __init__(self): - for attr_n, attr_v in config.CONF.__dict__.iteritems(): - self.__setattr__(attr_n, attr_v) - for env_n, env_v in env.ENV.__dict__.iteritems(): - self.__setattr__(env_n, env_v) +import pkg_resources +from xtesting.utils import constants +CONFIG_FUNCTEST_YAML = pkg_resources.resource_filename( + 'functest', 'ci/config_functest.yaml') -CONST = Constants() - -if __name__ == '__main__': - print CONST.__dict__ - print CONST.NODE_NAME - print CONST.vIMS_clearwater_blueprint_url - print CONST.vIMS_clearwater_blueprint_file_name - print CONST.vIMS_clearwater_blueprint_name +ENV_FILE = constants.ENV_FILE