Get properly env vars or their default values 21/52221/4
authorCédric Ollivier <cedric.ollivier@orange.com>
Wed, 14 Feb 2018 15:02:53 +0000 (16:02 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Fri, 16 Feb 2018 09:24:22 +0000 (10:24 +0100)
commitd589e4e5345ed82c68d9a011ac89f8cdbefe2ca3
tree1ec221f1f95e6abaec9b1465e9e46b76f8777a27
parent98e2806cb674d206dea65647c0644dc5b2871b4b
Get properly env vars or their default values

It defines env.get() as an unique way to get Functest env vars or
their default values. It can be considered as a wrapper above os.environ.

It enforces backward compatibility via CONST which mustn't be used
for that purpose. It should be noted that it also stops using CONST
for getting OpenStack env vars.

Change-Id: I333dc1afbc0123166a7eaff8b551370098efa341
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
22 files changed:
docs/testing/user/configguide/configguide.rst
functest/api/resources/v1/testcases.py
functest/ci/run_tests.py
functest/cli/commands/cli_env.py
functest/cli/commands/cli_tier.py
functest/core/testcase.py
functest/energy/energy.py
functest/opnfv_tests/openstack/rally/rally.py
functest/opnfv_tests/openstack/snaps/snaps_test_runner.py
functest/opnfv_tests/openstack/snaps/snaps_utils.py
functest/opnfv_tests/openstack/tempest/conf_utils.py
functest/opnfv_tests/openstack/tempest/tempest.py
functest/opnfv_tests/openstack/vping/vping_base.py
functest/opnfv_tests/sdn/odl/odl.py
functest/tests/unit/openstack/tempest/test_tempest.py
functest/tests/unit/utils/test_env.py [new file with mode: 0644]
functest/tests/unit/utils/test_functest_utils.py
functest/utils/config.py
functest/utils/constants.py
functest/utils/env.py
functest/utils/functest_utils.py
functest/utils/openstack_utils.py