def __init__(self): ocm = clients.OfficialClientManager(CONF.identity.username, CONF.identity.password, CONF.identity.tenant_name) self.client = ocm.compute_client self.image_pattern = CONF.input_scenario.image_regex self.flavor_pattern = CONF.input_scenario.flavor_regex
def __init__(self): # Load configuration items self.ssh_users = json.loads(CONF.input_scenario.ssh_user_regex) self.non_ssh_image_pattern = \ CONF.input_scenario.non_ssh_image_regex # Setup clients ocm = clients.OfficialClientManager( auth.get_default_credentials('user')) self.client = ocm.compute_client
def __init__(self, credentials): self.manager = clients.OfficialClientManager(credentials) # Credentials from manager are filled with both names and IDs self.creds = self.manager.credentials self.network = None self.subnet = None self.router = None self.security_groups = {} self.servers = list()
def __init__(self): # Load configuration items self.ssh_users = json.loads(CONF.input_scenario.ssh_user_regex) self.non_ssh_image_pattern = \ CONF.input_scenario.non_ssh_image_regex # Setup clients ocm = clients.OfficialClientManager(CONF.identity.username, CONF.identity.password, CONF.identity.tenant_name) self.client = ocm.compute_client
def _get_admin_clients(self): """ Returns a tuple with instances of the following admin clients (in this order): identity network """ if self.tempest_client: os = clients.AdminManager(interface=self.interface) else: os = clients.OfficialClientManager( auth.get_default_credentials('identity_admin')) return os.identity_client, os.network_client
def __init__(self, tenant_id, tenant_user, tenant_pass, tenant_name): self.manager = clients.OfficialClientManager( tenant_user, tenant_pass, tenant_name) self.keypair = None self.tenant_id = tenant_id self.tenant_name = tenant_name self.tenant_user = tenant_user self.tenant_pass = tenant_pass self.network = None self.subnet = None self.router = None self.security_groups = {} self.servers = list()
def setUpClass(cls): super(BaremetalScenarioTest, cls).setUpClass() if (not CONF.service_available.ironic or not CONF.baremetal.driver_enabled): msg = 'Ironic not available or Ironic compute driver not enabled' raise cls.skipException(msg) # use an admin client manager for baremetal client username, password, tenant = cls.admin_credentials() manager = clients.OfficialClientManager(username, password, tenant) cls.baremetal_client = manager.baremetal_client # allow any issues obtaining the node list to raise early cls.baremetal_client.node.list()
def setUpClass(cls): super(TestSecurityGroupsBasicOps, cls).setUpClass() cls.alt_creds = cls.alt_credentials() cls.alt_manager = clients.OfficialClientManager(cls.alt_creds) # Credentials from the manager are filled with both IDs and Names cls.alt_creds = cls.alt_manager.credentials cls.check_preconditions() # TODO(mnewby) Consider looking up entities as needed instead # of storing them as collections on the class. cls.floating_ips = {} cls.tenants = {} creds = cls.credentials() cls.primary_tenant = cls.TenantProperties(creds) cls.alt_tenant = cls.TenantProperties(cls.alt_creds) for tenant in [cls.primary_tenant, cls.alt_tenant]: cls.tenants[tenant.creds.tenant_id] = tenant cls.floating_ip_access = not CONF.network.public_router_id
def setUpClass(cls): super(OfficialClientTest, cls).setUpClass() cls.isolated_creds = isolated_creds.IsolatedCreds( cls.__name__, tempest_client=False, network_resources=cls.network_resources) username, password, tenant_name = cls.credentials() cls.manager = clients.OfficialClientManager( username, password, tenant_name) cls.compute_client = cls.manager.compute_client cls.image_client = cls.manager.image_client cls.identity_client = cls.manager.identity_client cls.network_client = cls.manager.network_client cls.volume_client = cls.manager.volume_client cls.object_storage_client = cls.manager.object_storage_client cls.orchestration_client = cls.manager.orchestration_client cls.resource_keys = {} cls.os_resources = []
def setUpClass(cls): super(OfficialClientTest, cls).setUpClass() cls.isolated_creds = isolated_creds.IsolatedCreds( cls.__name__, tempest_client=False, network_resources=cls.network_resources) cls.manager = clients.OfficialClientManager( credentials=cls.credentials()) cls.compute_client = cls.manager.compute_client cls.image_client = cls.manager.image_client cls.baremetal_client = cls.manager.baremetal_client cls.identity_client = cls.manager.identity_client cls.network_client = cls.manager.network_client cls.volume_client = cls.manager.volume_client cls.object_storage_client = cls.manager.object_storage_client cls.orchestration_client = cls.manager.orchestration_client cls.data_processing_client = cls.manager.data_processing_client cls.resource_keys = {} cls.os_resources = []
def __init__(self): ocm = clients.OfficialClientManager( auth.get_default_credentials('user', fill_in=False)) self.client = ocm.compute_client self.image_pattern = CONF.input_scenario.image_regex self.flavor_pattern = CONF.input_scenario.flavor_regex