From 60eb9ed60feb5a0463ac5b1e89ad031cbb4eb472 Mon Sep 17 00:00:00 2001 From: Andrea Frittoli Date: Mon, 17 Jul 2017 12:34:42 +0100 Subject: [PATCH] Init the orchestration client from config Tempest will not be initialising the orchestration client by default anymore since Heat is not a service hosted in Tempest (for a long time now). The client is still available in Tempest (as long as it's not made available by heat somewhere else), so to use it it's enough to pass it's configuration to it. Change-Id: Ic6fef4b4f260d13efd7b035bc012369f0da55602 --- .../tests/scenario/application_catalog/base.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/murano_tempest_tests/tests/scenario/application_catalog/base.py b/murano_tempest_tests/tests/scenario/application_catalog/base.py index d158204a0..25d28a145 100644 --- a/murano_tempest_tests/tests/scenario/application_catalog/base.py +++ b/murano_tempest_tests/tests/scenario/application_catalog/base.py @@ -22,6 +22,7 @@ from tempest.common import credentials_factory as common_creds from tempest.common import waiters from tempest import config from tempest.lib import exceptions +from tempest.services import orchestration from tempest import test from murano_tempest_tests import clients @@ -52,7 +53,11 @@ class BaseApplicationCatalogScenarioTest(test.BaseTestCase): cls.os_primary.application_catalog_client cls.artifacts_client = cls.os_primary.artifacts_client cls.servers_client = cls.services_manager.servers_client - cls.orchestration_client = cls.services_manager.orchestration_client + # NOTE(andreaf) The orchestration client is not initialised in Tempest + # by default anymore. + params = config.service_client_config('orchestration') + cls.orchestration_client = orchestration.OrchestrationClient( + cls.services_manager.auth_provider, **params) cls.snapshots_client = cls.services_manager.snapshots_v2_client cls.volumes_client = cls.services_manager.volumes_v2_client cls.backups_client = cls.services_manager.backups_v2_client