incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject svn commit: r1449581 - in /incubator/ambari/trunk: CHANGES.txt ambari-agent/src/test/python/TestHostname.py
Date Mon, 25 Feb 2013 03:20:58 GMT
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):



Mime
View raw message