Skip to content

Commit 775a35f

Browse files
committed
Small fix to test to reflect new changes
1 parent 2b6f252 commit 775a35f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/unit_tests/common/test_utils.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,12 @@ def test_set_cluster_context(self, mock_set_context_func, mock_update_config, mo
389389

390390
set_cluster_context("my-cluster", "us-west-2", "test-namespace")
391391

392-
mock_client.describe_cluster.assert_called_once_with(ClusterName="my-cluster")
392+
# Expect 2 calls: one for is_eks_orchestrator validation, one for getting cluster details
393+
self.assertEqual(mock_client.describe_cluster.call_count, 2)
394+
mock_client.describe_cluster.assert_has_calls([
395+
call(ClusterName="my-cluster"),
396+
call(ClusterName="my-cluster")
397+
])
393398
mock_get_name.assert_called_once()
394399
mock_update_config.assert_called_once()
395400
mock_set_context_func.assert_called_once()

0 commit comments

Comments
 (0)