Skip to content

Commit

Permalink
smoke_test: add debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
rlxdev committed Nov 15, 2024
1 parent 2647b45 commit ea86297
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scubagoggles/Testing/Functional/SmokeTests/smoke_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,15 @@ def test_scubagoggles_output(subjectemail):
subjectemail: The email address of a user for the service account
"""
try:
# (Roy 8/28/24): The command is going to have to be fixed because
# the policy API doesn't support service accounts.
command: str = f"scubagoggles gws --subjectemail {subjectemail} --quiet"
subprocess.run(command, shell=True, check=True)
cp = subprocess.run(command,
shell=True,
capture_output = True,
encoding = 'utf-8')
if cp.returncode:
print(cp.stdout)
print(cp.stderr)
return
output_path = get_output_path()
output: list = verify_output_type(output_path, [])
report_dir = sample_report_dir()
Expand Down

0 comments on commit ea86297

Please sign in to comment.