AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/certbot/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/certbot/plugins/__pycache__/dns_test_common.cpython-310.pyc
o

6��a�	�@s�dZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZddl
mZddl
mZejr<dd	lmZneZzddlZWneySdd
lmZYnwdZej�e�d��ZGd
d�de�ZGdd�d�Zdd�ZdS)z'Base test class for DNS authenticators.�N)�
challenges)�achallenges)�
filesystem)�DNSAuthenticator)�	acme_util)�util)�Protocol)�mockzexample.comzrsa512_key.pemc@s.eZdZUdZeed<d	dd�Zd	dd�ZdS)
�_AuthenticatorCallableTestCasezMProtocol describing a TestCase able to call a real DNSAuthenticator instance.�auth�returnNcG�dS)zj
        See
        https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertTrue
        N���self�unused_argsrr�A/usr/lib/python3/dist-packages/certbot/plugins/dns_test_common.py�
assertTrue#�z)_AuthenticatorCallableTestCase.assertTruecGr
)zk
        See
        https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertEqual
        Nrrrrr�assertEqual*rz*_AuthenticatorCallableTestCase.assertEqual)rN)�__name__�
__module__�__qualname__�__doc__r�__annotations__rrrrrrr
s


r
c@sLeZdZdZejejee	d�Z
defdd�Zdefdd�Z
defdd	�Zd
S)�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
    )�challb�domain�account_keyrcCs|�t|j��t��dS�N)r�
isinstancer�	more_info�str�rrrr�test_more_info>sz$BaseAuthenticatorTest.test_more_infocCs|�|j�d�tjg�dSr)rr�get_chall_prefr�DNS01r#rrr�test_get_chall_prefAsz)BaseAuthenticatorTest.test_get_chall_prefcCs.t��}|j�|�|jdttjtjd�dS)Nzpropagation-seconds)�type�default�help)r	�	MagicMockr�add_parser_arguments�assert_any_call�int�ANY)r�mrrr�test_parser_argumentsDsz+BaseAuthenticatorTest.test_parser_argumentsN)rrrrr�"KeyAuthorizationAnnotatedChallengerr&�DOMAIN�KEY�achallr
r$r'r1rrrrr2s�rcCsdt��}|D]}||||<qt|d��}|j|d�Wd�n1s%wYt�|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)�outfileNi�)�	configobj�	ConfigObj�open�writer�chmod)�values�path�config�key�frrrr;Ks�r;) r�typingr8�josepy�jose�acmer�certbotr�certbot.compatr�certbot.plugins.dns_commonr�
certbot.testsrr�	test_util�
TYPE_CHECKING�typing_extensionsr�objectr	�ImportError�unittestr3�JWKRSA�load�load_vectorr4r
rr;rrrr�<module>s.�

Anon7 - 2022
AnonSec Team