def get_client_manager(cls, credential_type=None, roles=None, force_new=None): manager = super(BaseNetworkTest, cls).get_client_manager( credential_type=credential_type, roles=roles, force_new=force_new) # Neutron uses a different clients manager than the one in the Tempest # save the original in case mixed tests need it if credential_type == 'primary': cls.os_tempest = manager return clients.Manager(manager.credentials)
def get_client_manager(cls, credential_type=None, roles=None, force_new=None): manager = super(BaseNetworkPluginRbacTest, cls).get_client_manager( credential_type=credential_type, roles=roles, force_new=force_new) # Import neutron-tempest-plugin clients if cls.is_neutron_tempest_plugin_avaliable(): from neutron_tempest_plugin.api import clients neutron_tempest_manager = clients.Manager(manager.credentials) cls.ntp_client = neutron_tempest_manager.network_client return manager