Skip to content

Commit

Permalink
#18 Fixed unit tests [run-saas-tests]
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsimb committed Jun 10, 2024
1 parent 39a1e00 commit d8d0829
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions test/unit/deployment/test_language_container_deployer.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def test_slc_deployer_deploy(container_deployer, container_file_name, container_
container_deployer.run(container_file=container_file_path,
bucket_file_path=container_file_name,
alter_system=True,
allow_override=True)
allow_override=True,
wait_for_completion=False)
container_deployer.upload_container.assert_called_once_with(container_file_path,
container_file_name)
container_deployer.activate_container.assert_called_once_with(container_file_name,
Expand All @@ -58,14 +59,21 @@ def test_slc_deployer_deploy(container_deployer, container_file_name, container_


def test_slc_deployer_upload(container_deployer, container_file_name, container_file_path):
container_deployer.run(container_file=container_file_path, alter_system=False)
container_deployer.run(container_file=container_file_path,
alter_system=False,
wait_for_completion=False)
container_deployer.upload_container.assert_called_once_with(container_file_path,
container_file_name)
container_deployer.activate_container.assert_not_called()
container_deployer.activate_container.assert_called_once_with(container_file_name,
LanguageActivationLevel.Session,
False)


def test_slc_deployer_activate(container_deployer, container_file_name):
container_deployer.run(bucket_file_path=container_file_name, alter_system=True, allow_override=True)
container_deployer.run(bucket_file_path=container_file_name,
alter_system=True,
allow_override=True,
wait_for_completion=False)
container_deployer.upload_container.assert_not_called()
container_deployer.activate_container.assert_called_once_with(container_file_name,
LanguageActivationLevel.System,
Expand Down

0 comments on commit d8d0829

Please sign in to comment.