Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/openstack/tests/unit/__pycache__/base.cpython-39.pyc
Ðазад
a u�h�� � @ s. d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d dl mZ d dl mZ d dlmZ d dlmZ d dlZd dlZd dlmZ d dlmZ d dlmZ e �d d �Ze �dd�Ze �d d�Z e �dd�Z!e �dd�Z"e �dd�Z#e �dd�Z$e �dd�Z%G dd� dej&�Z&G dd� de&�Z'dS )� N)�loading)�cfg)� structures)�fixture)�fakes)� connection)�baseZProjectDatazVproject_id, project_name, enabled, domain_id, description, json_response, json_requestZUserDataz\user_id, password, name, email, description, domain_id, enabled, json_response, json_requestZ GroupDatazIgroup_id, group_name, domain_id, description, json_response, json_requestZ DomainDataz@domain_id, domain_name, description, json_response, json_requestZServicedataznservice_id, service_name, service_type, description, enabled, json_response_v3, json_response_v2, json_requestZEndpointDatazUendpoint_id, service_id, interface, region, url, enabled, json_response, json_requestzsendpoint_id, service_id, region, public_url, internal_url, admin_url, v3_endpoint_list, json_response, json_requestZRoleDataz/role_id, role_name, json_response, json_requestc s| e Zd ZdZd]� fdd� Zdd� Zd^d d �Zd_dd �Zd`dd�Zdadd�Z dbdd�Z dcdd�Zdddd�Zdedd�Z dfdd�Zdgdd�Zdd� Zd d!� Zdhd#d$�Zd%d&� Zd'd(� Zd)d*� Zdid,d-�Zdjd0d1�Zdkd4d5�Zdld8d9�Zdmd;d<�Zd=d>� Zd?d@� ZdAdB� ZdndCdD�ZdEdF� ZdodGdH�Z dIdJ� Z!dKdL� Z"dMdN� Z#dOdP� Z$dQdR� Z%dSdT� Z&dpdUdV�Z'dqdWdX�Z(dYdZ� Z)drd[d\�Z*� Z+S )s�TestCaseF�clouds.yamlc s2 t t| ��� tj� � fdd�}| �t�d|��| _d| _ | �t jtj d��| _ tjdd�}d| j |f }t|d ��"}|�� }|�|� W d � n1 s�0 Y |�� tjdd�}|�d� |�� tj|jg|jgdgd �| _i i dddd�ddid�| _t�� | _tj�| j d�| _| � � d| _!d S )z;Run before each test method to initialize test environment.c s � | d �S )Ng-C��6?� )�seconds�Z realsleepr ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/openstack/tests/unit/base.py�_nosleepc s z TestCase.setUp.<locals>._nosleepz time.sleepzopenstack/tests/unit/fixtures)� project_idF)�deletez%s/clouds/%s�rbNs {}znon-existant)�config_filesZvendor_filesZsecure_filesZ SpecialRegion�internalz https://example.org:8888/heat/v2)Zregion_name� interface�endpoint_overrider zhttps://example.org:5050)Znovazmonasca-apiZheatZironic_inspectorzdiscovery.json)"�superr �setUp�time�sleep� useFixture�fixturesZMonkeyPatchZ sleep_fixture�fixtures_directory� os_fixtureZConnectionFixturer Z PROJECT_ID�tempfile�NamedTemporaryFile�open�read�write�close�occZOpenStackConfig�name�config�oslo_config_dict�collections�OrderedDict� _uri_registry�os�path�join�discovery_json�use_keystone_v3�_TestCase__register_uris_called)�selfZcloud_config_fixturer r'