diff --git a/doc/source/devops_underlay.conf.example.rst b/doc/source/devops_underlay.conf.example.rst new file mode 100644 index 0000000..5916756 --- /dev/null +++ b/doc/source/devops_underlay.conf.example.rst @@ -0,0 +1,18 @@ +.. _devops_underlay.conf.example: + +.. code-block:: ini + + #this config can be used to provide access to underlay layer of the lab that is managed with fuel-devops + [hardware] + manager='devops' + conf_path='fuel_ccp_tests/tests/fixtures/templates/default.yaml' + + [underlay] + ssh='[{'node_name': node1, + 'host': hostname, + 'login': login, + 'password': password, + 'address_pool': (optional), + 'port': (optional), + 'keys': [(optional)], + }]' \ No newline at end of file diff --git a/fuel_ccp_tests/fixtures/config_fixtures.py b/fuel_ccp_tests/fixtures/config_fixtures.py index 2dea6b7..835de60 100644 --- a/fuel_ccp_tests/fixtures/config_fixtures.py +++ b/fuel_ccp_tests/fixtures/config_fixtures.py @@ -11,6 +11,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. +import os import pytest from fuel_ccp_tests import settings_oslo @@ -19,6 +20,12 @@ from fuel_ccp_tests import settings_oslo def config(request): config_files = [] + + tests_configs = os.environ.get('TESTS_CONFIGS', None) + if tests_configs: + for test_config in tests_configs.split(','): + config_files.append(test_config) + config_opts = settings_oslo.load_config(config_files) return config_opts