403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.48
Web Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12
System : Windows NT DESKTOP-3H4FHQJ 10.0 build 19045 (Windows 10) AMD64
User : win 10 ( 0)
PHP Version : 8.2.12
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  D:/Desktop/setup/rfc2136_tests/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : D:/Desktop/setup/rfc2136_tests/test_main.py
"""Module executing integration tests against Certbot with the RFC2136 DNS authenticator."""
from typing import Generator

import pytest

from certbot_integration_tests.rfc2136_tests.context import IntegrationTestsContext


@pytest.fixture(name="context")
def test_context(request: pytest.FixtureRequest) -> Generator[IntegrationTestsContext, None, None]:
    # pylint: disable=missing-function-docstring
    # Fixture request is a built-in pytest fixture describing current test request.
    integration_test_context = IntegrationTestsContext(request)
    try:
        yield integration_test_context
    finally:
        integration_test_context.cleanup()


@pytest.mark.parametrize('domain', [('example.com'), ('sub.example.com')])
def test_get_certificate(domain: str, context: IntegrationTestsContext) -> None:
    context.skip_if_no_bind9_server()

    with context.rfc2136_credentials() as creds:
        context.certbot_test_rfc2136([
            'certonly', '--dns-rfc2136-credentials', creds,
            '-d', domain, '-d', '*.{}'.format(domain)
        ])

Youez - 2016 - github.com/yon3zu
LinuXploit