Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <dxho@amazon.com>
  • Loading branch information
derek-ho committed Jan 9, 2024
1 parent 42fccb2 commit d76d9b2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import unittest
from unittest.mock import MagicMock, Mock, patch

from requests.auth import HTTPBasicAuth

from manifests.bundle_manifest import BundleManifest
from test_workflow.perf_test.perf_test_cluster import PerfTestCluster
from test_workflow.perf_test.perf_test_cluster_config import PerfTestClusterConfig
Expand Down Expand Up @@ -42,7 +44,7 @@ def test_get_service_response(self, mock_requests_get: Mock) -> None:
self.perf_test_cluster.is_endpoint_public = True
self.perf_test_cluster.cluster_endpoint_with_port = ''
self.perf_test_cluster.wait_for_processing()
mock_requests_get.assert_called_with(url='/_cluster/health', verify=False, auth=HTTPBasicAuth('admin', 'admin')))
mock_requests_get.assert_called_with(url='/_cluster/health', verify=False, auth=HTTPBasicAuth('admin', 'admin'))

def test_endpoint(self) -> None:
self.assertEqual(self.perf_test_cluster.endpoint_with_port, None)
Expand Down

0 comments on commit d76d9b2

Please sign in to comment.