test: lisa runner: fix awaitable messages.

With new implementation, the awaitable resource has a different error
message with normal no available capability.
This commit is contained in:
Chi Song 2022-09-27 11:30:11 -07:00 коммит произвёл Chi Song
Родитель fa007d383a
Коммит 95b82fe598
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -395,21 +395,22 @@ class RunnerTestCase(TestCase):
self.verify_env_results( self.verify_env_results(
expected_prepared=["customized_0"], expected_prepared=["customized_0"],
expected_deployed_envs=[], expected_deployed_envs=[],
expected_deleted_envs=[], expected_deleted_envs=["customized_0"],
runner=runner, runner=runner,
) )
no_more_resource_message = "no more resource to deploy" no_awaitable_resource_message = "deployment skipped: awaitable resource"
no_more_resource_message = "no available environment"
self.verify_test_results( self.verify_test_results(
expected_test_order=["mock_ut1", "mock_ut2", "mock_ut3"], expected_test_order=["mock_ut1", "mock_ut2", "mock_ut3"],
expected_envs=["", "", ""], expected_envs=["", "customized_0", ""],
expected_status=[ expected_status=[
TestStatus.SKIPPED, TestStatus.SKIPPED,
TestStatus.SKIPPED, TestStatus.SKIPPED,
TestStatus.SKIPPED, TestStatus.SKIPPED,
], ],
expected_message=[ expected_message=[
self.__skipped_no_env,
no_more_resource_message, no_more_resource_message,
no_awaitable_resource_message,
no_more_resource_message, no_more_resource_message,
], ],
test_results=test_results, test_results=test_results,