Skip to content

Commit

Permalink
[tools/shoestring] fix: address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Wayonb committed Nov 20, 2024
1 parent c0af6c1 commit d6ae426
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/shoestring/tests/internal/test_CertificateFactory.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import datetime
import os
import re
import shutil
import tempfile
import unittest
from pathlib import Path
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit d6ae426

Please sign in to comment.