mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
parent
b44b1d6a8f
commit
e4e93ba8ff
1 changed files with 11 additions and 0 deletions
|
|
@ -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)
|
||||
])
|
||||
|
|
|
|||
Loading…
Reference in a new issue