You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2015/03/19 23:12:18 UTC

ambari git commit: AMBARI-10135. Unit test TestAmbariServer.py test_check_postgre_up() fails on BAO (alejandro)

Repository: ambari
Updated Branches:
  refs/heads/trunk c217b8d8b -> 1ca948f34


AMBARI-10135. Unit test TestAmbariServer.py test_check_postgre_up() fails on BAO (alejandro)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/1ca948f3
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/1ca948f3
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/1ca948f3

Branch: refs/heads/trunk
Commit: 1ca948f347bad8d5f829ff5b71d803bd224da1d6
Parents: c217b8d
Author: Alejandro Fernandez <af...@hortonworks.com>
Authored: Thu Mar 19 13:22:01 2015 -0700
Committer: Alejandro Fernandez <af...@hortonworks.com>
Committed: Thu Mar 19 15:12:12 2015 -0700

----------------------------------------------------------------------
 ambari-server/src/test/python/TestAmbariServer.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/1ca948f3/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 df8cf2b..088ce8b 100644
--- a/ambari-server/src/test/python/TestAmbariServer.py
+++ b/ambari-server/src/test/python/TestAmbariServer.py
@@ -2316,10 +2316,11 @@ MIIFHjCCAwYCCQDpHKOBI+Lt0zANBgkqhkiG9w0BAQUFADBRMQswCQYDVQQGEwJV
     self.assertEqual(0, retcode)
 
     serverConfiguration.OS_TYPE = OSConst.OS_SUSE
-    p.poll.return_value = 4
+    run_os_command_mock.return_value = (0, None, None)
+    p.poll.return_value = 0
     get_postgre_status_mock.return_value = "stopped", 0, "", ""
     pg_status, retcode, out, err = PGConfig._check_postgre_up()
-    self.assertEqual(4, retcode)
+    self.assertEqual(0, retcode)
     pass
 
   @patch("platform.linux_distribution")