You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vb...@apache.org on 2014/02/17 12:03:41 UTC
git commit: AMBARI-4692. Add mock for check_selinux.(vbrodetskyi)
Repository: ambari
Updated Branches:
refs/heads/trunk 58dc91852 -> a440fea7f
AMBARI-4692. Add mock for check_selinux.(vbrodetskyi)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/a440fea7
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/a440fea7
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/a440fea7
Branch: refs/heads/trunk
Commit: a440fea7fb617971ba7652e888e3d0e037729a81
Parents: 58dc918
Author: Vitaly Brodetskyi <vb...@hortonworks.com>
Authored: Mon Feb 17 13:02:46 2014 +0200
Committer: Vitaly Brodetskyi <vb...@hortonworks.com>
Committed: Mon Feb 17 13:02:46 2014 +0200
----------------------------------------------------------------------
ambari-server/src/test/python/TestAmbariServer.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/a440fea7/ambari-server/src/test/python/TestAmbariServer.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/TestAmbariServer.py b/ambari-server/src/test/python/TestAmbariServer.py
index b473031..43494a7 100644
--- a/ambari-server/src/test/python/TestAmbariServer.py
+++ b/ambari-server/src/test/python/TestAmbariServer.py
@@ -3315,7 +3315,8 @@ MIIFHjCCAwYCCQDpHKOBI+Lt0zANBgkqhkiG9w0BAQUFADBRMQswCQYDVQQGEwJV
@patch.object(ambari_server, "download_jdk")
@patch.object(ambari_server, "configure_os_settings")
@patch('__builtin__.raw_input')
- def test_setup_remote_db_wo_client(self, raw_input, configure_os_settings_mock,
+ @patch.object(ambari_server, "check_selinux")
+ def test_setup_remote_db_wo_client(self, check_selinux_mock, raw_input, configure_os_settings_mock,
download_jdk_mock, check_ambari_user_mock, is_root_mock,
check_jdbc_drivers_mock, check_iptables_mock, is_local_db_mock,
store_remote_properties_mock, get_db_cli_tool_mock, get_YN_input,
@@ -3325,6 +3326,7 @@ MIIFHjCCAwYCCQDpHKOBI+Lt0zANBgkqhkiG9w0BAQUFADBRMQswCQYDVQQGEwJV
is_root_mock.return_value = True
is_local_db_mock.return_value = False
get_YN_input.return_value = False
+ check_selinux_mock.return_value = 0
check_iptables_mock.return_value = (0, "other")
store_remote_properties_mock.return_value = 0
get_db_cli_tool_mock.return_value = None