]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix typo in test_check_ssh_injection_on error test
authorJay S. Bryant <jsbryant@us.ibm.com>
Thu, 31 Oct 2013 19:05:16 +0000 (14:05 -0500)
committerJay S. Bryant <jsbryant@us.ibm.com>
Thu, 31 Oct 2013 19:05:16 +0000 (14:05 -0500)
The test case currently has shh instead of ssh.
This commit fixes the typo.

Change-Id: I1e6f926b7d22f48ae56166077659ff3e3d9a1899

cinder/tests/test_utils.py

index cef8d8553ab2ca7ae2935d8bd0ddcec1865bff29..7d77538eeaacb8d30b0aebfb2a650241353b15b9 100644 (file)
@@ -462,7 +462,7 @@ class GenericUtilsTestCase(test.TestCase):
         self.assertIsNone(utils.check_ssh_injection(cmd_list))
 
     def test_check_ssh_injection_on_error(self):
-        with_unquoted_space = ['shh', 'my_name@      name_of_remote_computer']
+        with_unquoted_space = ['ssh', 'my_name@      name_of_remote_computer']
         self.assertRaises(exception.SSHInjectionThreat,
                           utils.check_ssh_injection,
                           with_unquoted_space)