From d8d08295fc912acc0c00b4b41a41ae5a5ec96893 Mon Sep 17 00:00:00 2001 From: mibe Date: Mon, 10 Jun 2024 14:20:55 +0100 Subject: [PATCH] #18 Fixed unit tests [run-saas-tests] --- .../test_language_container_deployer.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/test/unit/deployment/test_language_container_deployer.py b/test/unit/deployment/test_language_container_deployer.py index 099dd69..4973ad8 100644 --- a/test/unit/deployment/test_language_container_deployer.py +++ b/test/unit/deployment/test_language_container_deployer.py @@ -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, @@ -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,