Skip to content

Commit

Permalink
Fix quote_verification test case copy ca_cert fail randomly
Browse files Browse the repository at this point in the history
Signed-off-by: OuyangHang33 <[email protected]>
  • Loading branch information
OuyangHang33 committed Mar 7, 2024
1 parent b7299ee commit 67e1409
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions sh_script/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ def test_config_A_quote_verification():
LOG.debug(verify_ca_cmd)
runner = ctx.exec_ssh_command(verify_ca_cmd)
assert runner[1] == "", "Verify CA fail: {}".format(runner[1])
time.sleep(5)

cwd = os.getcwd()
copy_ca_to_host_cmd = f"virt-copy-out -a '{ctx.guest_img}' '/root/ca_cert.pem' '{ctx.quote_verification_sample_path}'\n"
ca_host_path = os.path.join(ctx.quote_verification_sample_path, "ca_cert.pem")
quote_verf_app_path = os.path.join(ctx.quote_verification_sample_path, "app")
time.sleep(5)

ca_host_path = os.path.join(ctx.quote_verification_sample_path, "ca_cert.pem")
quote_verf_app_path = os.path.join(ctx.quote_verification_sample_path, "app")
Expand Down Expand Up @@ -817,12 +817,12 @@ def test_config_B_no_sb_quote_verification():
LOG.debug(verify_ca_cmd)
runner = ctx.exec_ssh_command(verify_ca_cmd)
assert runner[1] == "", "Verify CA fail: {}".format(runner[1])

time.sleep(5)

cwd = os.getcwd()
copy_ca_to_host_cmd = f"virt-copy-out -a '{ctx.guest_img}' '/root/ca_cert.pem' '{ctx.quote_verification_sample_path}'\n"
ca_host_path = os.path.join(ctx.quote_verification_sample_path, "ca_cert.pem")
quote_verf_app_path = os.path.join(ctx.quote_verification_sample_path, "app")

time.sleep(5)

ca_host_path = os.path.join(ctx.quote_verification_sample_path, "ca_cert.pem")
quote_verf_app_path = os.path.join(ctx.quote_verification_sample_path, "app")
quote_path = os.path.join(ctx.quote_verification_sample_path, "quote.data")
Expand Down Expand Up @@ -1351,12 +1351,12 @@ def test_config_B_sb_quote_verification():
LOG.debug(verify_ca_cmd)
runner = ctx.exec_ssh_command(verify_ca_cmd)
assert runner[1] == "", "Verify CA fail: {}".format(runner[1])

time.sleep(5)

cwd = os.getcwd()
copy_ca_to_host_cmd = f"virt-copy-out -a '{ctx.guest_img}' '/root/ca_cert.pem' '{ctx.quote_verification_sample_path}'\n"
ca_host_path = os.path.join(ctx.quote_verification_sample_path, "ca_cert.pem")
quote_verf_app_path = os.path.join(ctx.quote_verification_sample_path, "app")

time.sleep(5)

ca_host_path = os.path.join(ctx.quote_verification_sample_path, "ca_cert.pem")
quote_verf_app_path = os.path.join(ctx.quote_verification_sample_path, "app")
quote_path = os.path.join(ctx.quote_verification_sample_path, "quote.data")
Expand Down

0 comments on commit 67e1409

Please sign in to comment.