Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed Oct 23, 2024
1 parent 55118d7 commit 1369a5b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_ota_metadata/test_ca_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ def setup_ca_chain(tmp_path: Path) -> tuple[str, Path, Path]:
gen_certs_script = certs_dir / GEN_CERTS_SCRIPT.name

chain = "test_chain"

certs_dir.mkdir()
subprocess.run(
[
"bash",
Expand All @@ -67,10 +65,10 @@ def test_ca_store(setup_ca_chain: tuple[str, Path, Path]):
crypto.X509StoreContext(
store=ca_store[ca_chain],
certificate=load_cert_in_pem(TEST_BASE_SIGN_PEM.read_bytes()),
)
).verify_certificate()

# verification should succeed with proper chain and corresponding sign cert.
crypto.X509StoreContext(
store=ca_store[ca_chain],
certificate=load_cert_in_pem(sign_pem.read_bytes()),
)
).verify_certificate()

0 comments on commit 1369a5b

Please sign in to comment.