Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Fix unit tests. #38

Merged
merged 1 commit into from
Apr 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cloud_provider/aws/aws_minion_manager_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def test_cordon(self, mock_get_name_for_instance, mock_check_call):
mock_get_name_for_instance.return_value = "ip-of-fake-node-name"
awsmm.cordon_node("ip-of-fake-node")
mock_check_call.assert_called_with(['kubectl', 'drain', 'ip-of-fake-node-name',
'--ignore-daemonsets=true', '--delete-local-data=true'])
'--ignore-daemonsets=true', '--delete-local-data=true', '--force', '--grace-period=-1'])

mock_check_call.side_effect = [Exception("Test"), True]
awsmm.cordon_node("ip-of-fake-node")
Expand Down