Skip to content

Commit

Permalink
Fix quote_verification test case
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Liu <[email protected]>
  • Loading branch information
liuw1 authored and jyao1 committed Jul 17, 2024
1 parent d2ec464 commit 33a003c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:
AS: nasm
RUST_TOOLCHAIN: nightly-2023-12-31
TOOLCHAIN_PROFILE: minimal
LIBGUESTFS_BACKEND: direct

permissions:
contents: read
Expand Down
6 changes: 3 additions & 3 deletions sh_script/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def test_config_A_quote_verification():
LOG.debug("Export quote form CA\n")
cert = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM, open(ca_host_path).read())

with open("quote.data", "wb") as fp:
with open(quote_path, "wb") as fp:
fp.write(cert.get_extension(quote_extension_index).get_data())
LOG.debug("quote data export successfully: quote.data")

Expand Down Expand Up @@ -846,7 +846,7 @@ def test_config_B_no_sb_quote_verification():
LOG.debug("Export quote form CA\n")
cert = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM, open(ca_host_path).read())

with open("quote.data", "wb") as fp:
with open(quote_path, "wb") as fp:
fp.write(cert.get_extension(quote_extension_index).get_data())
LOG.debug("quote data export successfully: quote.data")

Expand Down Expand Up @@ -1380,7 +1380,7 @@ def test_config_B_sb_quote_verification():
LOG.debug("Export quote form CA\n")
cert = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM, open(ca_host_path).read())

with open("quote.data", "wb") as fp:
with open(quote_path, "wb") as fp:
fp.write(cert.get_extension(quote_extension_index).get_data())
LOG.debug("quote data export successfully: quote.data")

Expand Down

0 comments on commit 33a003c

Please sign in to comment.