관리-도구
편집 파일: validation.cpython-311.pyc
� 9�1g2 � �* � d Z ddlmZmZmZmZmZ ddlmZ e ed� � ee d� d�� � ed � � ee d � d�� � ed� � e ed � � � d� d�� � ed� � ee d� d�� � ed� � ee d� d�� � ed� � ee d�� � ed� � e ed� � � d� d�� � ed� � ed� � � ed� � ee d�� � i � � Zefd ed!ed"efd#�Z d$S )%zF This module contains validation schema for config file loaded values � )�Schema�And�Optional�Use�SchemaError� )�SSAError�domains_numberc � � | dk S �Nr � ��ns �S/opt/cloudlinux/venv/lib64/python3.11/site-packages/ssa/configuration/validation.py�<lambda>r s � �1��6� � z.number of domains should be a positive integer)�error�urls_numberc � � | dk S r r r s r r r s � ��A�� r z+number of URLs should be a positive integer�requests_durationc � � t | � � S �N��floatr s r r r s � �U�1�X�X� r c � � | dk S )N� r r s r r r s � ��S�� r z#request duration should be positive�request_numberc � � | dk S r r r s r r r s � �1�q�5� r z/number of requests should be a positive integer�timec �"