Move flavor client in cls.setup_compute_client()

flavor client is compute service client so moving
this to other compute clients.

Implements: blueprint tempest-scenario-manager-stable
Change-Id: Icdbdbd388858c6accbd4f241c9ee404797c2f0e3
This commit is contained in:
Ghanshyam Mann 2021-03-24 19:15:22 -05:00 committed by Ghanshyam
parent 071d154be0
commit 1072f5043b

View File

@ -93,11 +93,12 @@ class ScenarioTest(tempest.test.BaseTestCase):
placement_microversion=self.placement_request_microversion)) placement_microversion=self.placement_request_microversion))
def setup_compute_client(cls): def setup_compute_client(cls):
"""Compute and Compute security groups client""" """Compute client"""
cls.compute_images_client = cls.os_primary.compute_images_client cls.compute_images_client = cls.os_primary.compute_images_client
cls.keypairs_client = cls.os_primary.keypairs_client cls.keypairs_client = cls.os_primary.keypairs_client
cls.servers_client = cls.os_primary.servers_client cls.servers_client = cls.os_primary.servers_client
cls.interface_client = cls.os_primary.interfaces_client cls.interface_client = cls.os_primary.interfaces_client
cls.flavors_client = cls.os_primary.flavors_client
def setup_network_client(cls): def setup_network_client(cls):
"""Neutron network client""" """Neutron network client"""
@ -114,7 +115,6 @@ class ScenarioTest(tempest.test.BaseTestCase):
def setup_clients(cls): def setup_clients(cls):
"""This setup the service clients for the tests""" """This setup the service clients for the tests"""
super(ScenarioTest, cls).setup_clients() super(ScenarioTest, cls).setup_clients()
cls.flavors_client = cls.os_primary.flavors_client
if CONF.service_available.glance: if CONF.service_available.glance:
# Check if glance v1 is available to determine which client to use. # Check if glance v1 is available to determine which client to use.
if CONF.image_feature_enabled.api_v1: if CONF.image_feature_enabled.api_v1: