Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/cinderclient/tests/functional/__pycache__/base.cpython-39.pyc
Ðазад
a t�h � @ s^ d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ dZdd� Z G dd � d ej �Z dS ) � N)�base)� output_parser)� exceptionszfunctional_creds.confc C s� t j�d�} t j�d�}t j�d�p.t j�d�}t j�d�}tjj�� }|�t�r�| p`|�dd�} |pp|�dd�}|p�|�dd �}|p�|�d d�}| |||d�S ) a` Retrieves credentials to run functional tests Credentials are either read from the environment or from a config file ('functional_creds.conf'). Environment variables override those from the config file. The 'functional_creds.conf' file is the clean and new way to use (by default tox 2.0 does not pass environment variables). ZOS_USERNAMEZOS_PASSWORDZOS_TENANT_NAMEZOS_PROJECT_NAMEZOS_AUTH_URLZadmin�user�passZtenant�auth�uri)�username�password�tenant_namer ) �os�environ�get�six�moves�configparser�RawConfigParser�read�_CREDS_FILE)r r r Zauth_url�config� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/cinderclient/tests/functional/base.py�credentials s"