def _get_clients(self): return base.CLIClient( username=creds['username'], password=creds['password'], tenant_name=creds['tenant_name'], uri=creds['auth_url'], cli_dir=CLI_DIR)
def _get_clients(self): cli_dir = os.environ.get( 'OS_MURANOCLIENT_EXEC_DIR', os.path.join(os.path.abspath('.'), '.tox/functional/bin')) self.username = os.environ.get('OS_USERNAME') self.password = os.environ.get('OS_PASSWORD') self.tenant_name = os.environ.get('OS_TENANT_NAME') self.uri = os.environ.get('OS_AUTH_URL') config = configparser.RawConfigParser() if config.read('functional_creds.conf'): # the OR pattern means the environment is preferred for # override self.username = self.username or config.get('admin', 'user') self.password = self.password or config.get('admin', 'pass') self.tenant_name = self.tenant_name or config.get( 'admin', 'tenant') self.uri = self.uri or config.get('auth', 'uri') clients = base.CLIClient(username=self.username, password=self.password, tenant_name=self.tenant_name, uri=self.uri, cli_dir=cli_dir) return clients
def _get_alt_clients(self): clients = base.CLIClient(username=CONF.identity.alt_username, password=CONF.identity.alt_password, tenant_name=CONF.identity.alt_tenant_name, uri=CONF.identity.uri, cli_dir='/usr/local/bin') return clients
def _get_clients(self): path = os.path.join(os.path.abspath('.'), '.tox/functional/bin') cli_dir = os.environ.get('OS_KEYSTONECLIENT_EXEC_DIR', path) return base.CLIClient(username=os.environ.get('OS_USERNAME'), password=os.environ.get('OS_PASSWORD'), tenant_name=os.environ.get('OS_TENANT_NAME'), uri=os.environ.get('OS_AUTH_URL'), cli_dir=cli_dir)
def _get_clients(self): clients = base.CLIClient( CONF.identity.admin_username, CONF.identity.admin_password, CONF.identity.admin_tenant_name, CONF.identity.uri, CONF.cli.cli_dir ) return clients
def _get_clients(self): cli_dir = os.environ.get( 'OS_GLANCECLIENT_EXEC_DIR', os.path.join(os.path.abspath('.'), '.tox/functional/bin')) return base.CLIClient(username=self.username, password=self.password, tenant_name=self.tenant_name, uri=self.uri, cli_dir=cli_dir)
def _get_clients(self): creds = credentials() cli_dir = os.environ.get( 'OS_NEUTRONCLIENT_EXEC_DIR', os.path.join(os.path.abspath('.'), '.tox/functional/bin')) return base.CLIClient(username=creds['username'], password=creds['password'], tenant_name=creds['tenant_name'], uri=creds['auth_url'], cli_dir=cli_dir)
def _get_clients(self): # NOTE(aarefiev): {toxinidir} is a current working directory, so # the tox env path is {toxinidir}/.tox cli_dir = os.path.join(os.path.abspath('.'), '.tox/functional/bin') config = self._get_config() if config.get('os_auth_url'): client = base.CLIClient(cli_dir=cli_dir, username=config['os_username'], password=config['os_password'], tenant_name=config['os_tenant_name'], uri=config['os_auth_url']) else: self.ironic_url = config['ironic_url'] self.os_auth_token = config['os_auth_token'] client = base.CLIClient(cli_dir=cli_dir, ironic_url=self.ironic_url, os_auth_token=self.os_auth_token) return client
def _get_admin_clients(self): creds = credentials() clients = base.CLIClient(username=creds['username'], password=creds['password'], tenant_name=creds['tenant_name'], uri=creds['auth_url'], cli_dir=CLI_DIR) return clients
def _get_clients(self): cli_dir = os.environ.get( 'OS_CINDERCLIENT_EXEC_DIR', os.path.join(os.path.abspath('.'), '.tox/functional/bin')) return base.CLIClient(cli_dir=cli_dir, **credentials())
def _get_clients(self): clients = base.CLIClient(self.creds.username, self.creds.password, self.creds.tenant_name, CONF.identity.uri, CONF.cli.cli_dir) return clients