From e4e93ba8ff309c16952bf69bd22ff64958c24a2d Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Thu, 6 Oct 2022 19:14:53 -0700 Subject: [PATCH] Revert "rip out bad test?" This reverts commit a29605901aa2f36405d8750fe7aa90b36888b37a. --- .../rfc2136_tests/test_main.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/certbot-ci/certbot_integration_tests/rfc2136_tests/test_main.py b/certbot-ci/certbot_integration_tests/rfc2136_tests/test_main.py index 6fa530187..9466934a8 100644 --- a/certbot-ci/certbot_integration_tests/rfc2136_tests/test_main.py +++ b/certbot-ci/certbot_integration_tests/rfc2136_tests/test_main.py @@ -15,3 +15,14 @@ def test_context(request: pytest.FixtureRequest) -> Generator[IntegrationTestsCo 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) + ])