Skip to content

Commit

Permalink
Add test cases
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon committed May 17, 2023
1 parent ddb4838 commit 747f359
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def test_start_without_security(self, mock_tarfile_open: Mock, mock_dump: Mock,
cwd_path = os.path.join("test_work_dir", "opensearch-dashboards-1.1.0", "bin")
plugin_script = "opensearch-dashboards-plugin.bat" if current_platform() == "windows" else "opensearch-dashboards-plugin"
plugin_script = os.path.join(cwd_path, plugin_script)
plugin_script = "sudo " + plugin_script if service.dist.require_sudo is True else plugin_script
mock_check_call.assert_called_once_with(
f"{plugin_script} remove --allow-root securityDashboards",
cwd=cwd_path,
Expand Down

0 comments on commit 747f359

Please sign in to comment.