Revert "rip out bad test?"

This reverts commit a29605901a.
This commit is contained in:
Brad Warren 2022-10-06 19:14:53 -07:00
parent b44b1d6a8f
commit e4e93ba8ff

View file

@ -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)
])