From d6ae4262d817faf4705055d8a39d276cbd2cdbf9 Mon Sep 17 00:00:00 2001 From: wayonb Date: Tue, 19 Nov 2024 15:10:14 -0500 Subject: [PATCH] [tools/shoestring] fix: address feedback --- tools/shoestring/tests/internal/test_CertificateFactory.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/shoestring/tests/internal/test_CertificateFactory.py b/tools/shoestring/tests/internal/test_CertificateFactory.py index bc55f9413..f18b1bc79 100644 --- a/tools/shoestring/tests/internal/test_CertificateFactory.py +++ b/tools/shoestring/tests/internal/test_CertificateFactory.py @@ -1,6 +1,7 @@ import datetime import os import re +import shutil import tempfile import unittest from pathlib import Path @@ -288,6 +289,10 @@ def _load_binary_file_data(filename): factory.generate_ca_certificate(ca_common_name) factory.package(package_directory) + # Sanity: + shutil.rmtree(certificate_directory) + assert not ca_private_key_path.exists() + # Act: with CertificateFactory(self._create_executor(), ca_private_key_path) as renew_factory: renew_factory.reuse_ca_certificate(ca_common_name, Path(package_directory))