diff --git a/src/test_workflow/integ_test/distribution_zip.py b/src/test_workflow/integ_test/distribution_zip.py index 9dcb80b355..2e56184934 100644 --- a/src/test_workflow/integ_test/distribution_zip.py +++ b/src/test_workflow/integ_test/distribution_zip.py @@ -33,7 +33,7 @@ def install(self, bundle_name: str) -> None: @property def start_cmd(self) -> str: start_cmd_map = { - "opensearch": "set OPENSEARCH_INITIAL_ADMIN_PASSWORD=myStrongPassword123! .\\opensearch-windows-install.bat", + "opensearch": "env OPENSEARCH_INITIAL_ADMIN_PASSWORD=myStrongPassword123! .\\opensearch-windows-install.bat", "opensearch-dashboards": ".\\opensearch-dashboards.bat", } return start_cmd_map[self.filename] diff --git a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_distribution_zip.py b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_distribution_zip.py index b4113939e5..f05edb9458 100644 --- a/tests/tests_test_workflow/test_integ_workflow/integ_test/test_distribution_zip.py +++ b/tests/tests_test_workflow/test_integ_workflow/integ_test/test_distribution_zip.py @@ -47,7 +47,7 @@ def test_install(self) -> None: mock_zipfile_extractall.assert_called_with(self.work_dir) def test_start_cmd(self) -> None: - self.assertEqual(self.distribution_zip.start_cmd, "set OPENSEARCH_INITIAL_ADMIN_PASSWORD=myStrongPassword123! .\\opensearch-windows-install.bat") + self.assertEqual(self.distribution_zip.start_cmd, "env OPENSEARCH_INITIAL_ADMIN_PASSWORD=myStrongPassword123! .\\opensearch-windows-install.bat") @patch("subprocess.check_call") def test_uninstall(self, check_call_mock: Mock) -> None: