mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipatests: Clean up existing ACME registration and certs
The same base class is used for ACME setup and configuration. Be sure to clean up any existing registraton prior to continuing otherwise ACME register will complain. https://pagure.io/freeipa/issue/8581 Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com> Reviewed-By: Mohammad Rizwan <myusuf@redhat.com> Reviewed-By: Armando Neto <abiagion@redhat.com>
This commit is contained in:
committed by
Armando Neto
parent
de5baf8516
commit
5d286e7951
@@ -197,6 +197,19 @@ class TestACME(CALessBase):
|
||||
|
||||
@pytest.mark.skipif(skip_certbot_tests, reason='certbot not available')
|
||||
def test_certbot_register(self):
|
||||
# clean up any existing registration and certificates
|
||||
self.clients[0].run_command(
|
||||
[
|
||||
'rm', '-rf',
|
||||
'/etc/letsencrypt/accounts',
|
||||
'/etc/letsencrypt/archive',
|
||||
'/etc/letsencrypt/csr',
|
||||
'/etc/letsencrypt/keys',
|
||||
'/etc/letsencrypt/live',
|
||||
'/etc/letsencrypt/renewal',
|
||||
'/etc/letsencrypt/renewal-hooks'
|
||||
]
|
||||
)
|
||||
# service is enabled; registration should succeed
|
||||
self.clients[0].run_command(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user