def setup_clients(cls): super(BaseApplicationCatalogScenarioTest, cls).setup_clients() if not hasattr(cls, "os_primary"): creds = cls.get_configured_isolated_creds(type_of_creds='primary') cls.os_primary = clients.Manager(credentials=creds) cls.services_manager = services_manager(creds) cls.application_catalog_client = \ cls.os_primary.application_catalog_client cls.artifacts_client = cls.os_primary.artifacts_client cls.servers_client = cls.services_manager.servers_client params = { 'disable_ssl_certificate_validation': CONF.identity.disable_ssl_certificate_validation, 'ca_certs': CONF.identity.ca_certificates_file, 'trace_requests': CONF.debug.trace_requests, 'http_timeout': CONF.service_clients.http_timeout, 'proxy_url': CONF.service_clients.proxy_url, 'build_timeout': CONF.orchestration.build_timeout, 'build_interval': CONF.orchestration.build_interval, 'endpoint_type': CONF.orchestration.endpoint_type, 'service': CONF.orchestration.catalog_type } options = getattr(CONF, 'orchestration') # Set region # If a service client does not define region or region is not set # default to the identity region if not hasattr(options, 'region') or not getattr(options, 'region'): params['region'] = CONF.identity.region else: params['region'] = getattr(options, 'region') cls.orchestration_client = orchestration.OrchestrationClient( cls.services_manager.auth_provider, **params) cls.images_client = cls.services_manager.image_client_v2
def resource_setup(cls): if not CONF.service_available.murano: skip_msg = "Murano is disabled" raise cls.skipException(skip_msg) if not hasattr(cls, "os"): creds = cls.get_configured_isolated_creds(type_of_creds='primary') cls.os = clients.Manager(credentials=creds) cls.services_manager = services_manager(creds) cls.linux_image = CONF.application_catalog.linux_image cls.application_catalog_client = cls.os.application_catalog_client cls.artifacts_client = cls.os.artifacts_client cls.servers_client = cls.services_manager.servers_client cls.orchestration_client = cls.services_manager.orchestration_client cls.snapshots_client = cls.services_manager.snapshots_client cls.volumes_client = cls.services_manager.volumes_client cls.backups_client = cls.services_manager.backups_client
def setup_clients(cls): super(BaseApplicationCatalogScenarioTest, cls).setup_clients() if not hasattr(cls, "os_primary"): creds = cls.get_configured_isolated_creds(type_of_creds='primary') cls.os_primary = clients.Manager(credentials=creds) cls.services_manager = services_manager(creds) cls.application_catalog_client = \ 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 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 cls.images_client = cls.services_manager.image_client_v2
def setup_clients(cls): super(BaseApplicationCatalogScenarioTest, cls).setup_clients() if not hasattr(cls, "os_primary"): creds = cls.get_configured_isolated_creds(type_of_creds='primary') cls.os_primary = clients.Manager(credentials=creds) cls.services_manager = services_manager(creds) cls.application_catalog_client = \ cls.os_primary.application_catalog_client cls.artifacts_client = cls.os_primary.artifacts_client cls.servers_client = cls.services_manager.servers_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.images_client = cls.services_manager.image_client_v2
def resource_setup(cls): creds = cls.get_configured_isolated_creds(type_of_creds='admin') cls.os = clients.Manager(credentials=creds) cls.services_manager = services_manager(creds) super(BaseApplicationCatalogScenarioIsolatedAdminTest, cls).\ resource_setup()