You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ma...@apache.org on 2013/02/25 04:20:58 UTC

svn commit: r1449581 - in /incubator/ambari/trunk: CHANGES.txt ambari-agent/src/test/python/TestHostname.py

Author: mahadev
Date: Mon Feb 25 03:20:58 2013
New Revision: 1449581

URL: http://svn.apache.org/r1449581
Log:
AMBARI-1486. Fix TestHostName to take care of issues when gethostname and getfqdn do not match. (mahadev)

Modified:
    incubator/ambari/trunk/CHANGES.txt
    incubator/ambari/trunk/ambari-agent/src/test/python/TestHostname.py

Modified: incubator/ambari/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1449581&r1=1449580&r2=1449581&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Mon Feb 25 03:20:58 2013
@@ -615,6 +615,9 @@ Trunk (unreleased changes):
  AMBARI-1476. Change webhcat-env.sh to export HADOOP_HOME
  (mahadev)
 
+ AMBARI-1486. Fix TestHostName to take care of issues when gethostname and
+ getfqdn do not match. (mahadev)
+
 AMBARI-1.2.0 branch:
 
  INCOMPATIBLE CHANGES

Modified: incubator/ambari/trunk/ambari-agent/src/test/python/TestHostname.py
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-agent/src/test/python/TestHostname.py?rev=1449581&r1=1449580&r2=1449581&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-agent/src/test/python/TestHostname.py (original)
+++ incubator/ambari/trunk/ambari-agent/src/test/python/TestHostname.py Mon Feb 25 03:20:58 2013
@@ -29,7 +29,8 @@ import os, pprint, json,stat
 class TestHostname(TestCase):
 
   def test_hostname(self):
-    self.assertEquals(hostname.hostname(), socket.gethostname(), "hostname should equal the socket-based hostname")
+    self.assertEquals(hostname.hostname(), socket.getfqdn(), 
+                      "hostname should equal the socket-based hostname")
     pass
 
   def test_hostname_override(self):