Skip to content

Commit

Permalink
test(test-local.py): test_deploy_nuvlaedgees: show installer logs if …
Browse files Browse the repository at this point in the history
…it fails
  • Loading branch information
schaubl authored Aug 5, 2024
1 parent fbdfa30 commit a3e1141
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/integration_tests/test-local.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,13 @@ def test_deploy_nuvlaedgees(request):
logging.error(f'Cannot install local NuvlaEdge. Reason: {str(e)}')

installer_container = docker_client.containers.get("nuvlaedge-installer")
exit_code = installer_container.attrs['State']['ExitCode']

assert installer_container.attrs['State']['ExitCode'] == 0, 'NBE installer failed'
if exit_code != 0:
logging.error(f'nuvlaedge-installer container failed with exit code {exit_code} and the following logs: \n{installer_container.logs()}')

assert exit_code == 0, 'NBE installer failed'

logging.info(f'NuvlaEdge ({nuvlaedge_id}) successfully installed with project name {local_project_name}')


Expand Down

0 comments on commit a3e1141

Please sign in to comment.