HttpHostValuesTestCase#testRequestSpec() fails when first hostname specified for 127.0.0.1/::1 in /etc/hosts file is not localhost.
For example for this configuration (from our rhel machines):
# The following lines are desirable for IPv4 capable hosts
127.0.0.1 rhel7-large-49532 rhel7-large-49532
127.0.0.1 localhost.localdomain localhost
127.0.0.1 localhost4.localdomain4 localhost4
# The following lines are desirable for IPv6 capable hosts
::1 rhel7-large-49532 rhel7-large-49532
::1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
the result is:
hostName: localhost , response: rhel7-large-49532 (localhost is expected in the test, rhel7-large-49532 is actual value)
The test needs to be fixed.