We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12227cb commit 34cd23aCopy full SHA for 34cd23a
tests/CLI/modules/server_tests.py
@@ -454,3 +454,11 @@ def test_rescue(self, confirm_mock):
454
self.assert_no_fail(result)
455
self.assertEqual(result.output, "")
456
self.assert_called_with('SoftLayer_Hardware_Server', 'bootToRescueLayer', identifier=1000)
457
+
458
+ @mock.patch('SoftLayer.CLI.formatting.confirm')
459
+ def test_server_rescue_negative(self, confirm_mock):
460
+ confirm_mock.return_value = False
461
+ result = self.run_command(['server', 'rescue', '1000'])
462
463
+ self.assertEqual(result.exit_code, 2)
464
+ self.assertIsInstance(result.exception, exceptions.CLIAbort)
0 commit comments