[
https://issues.apache.org/jira/browse/NIFI-1789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15282913#comment-15282913
]
Oleg Zhurakousky commented on NIFI-1789:
----------------------------------------
May be we should rephrase this JIRA to something more general since there are
more tests that are failing whenever native host name resolution is not
reliable (see below):
{code}
Running TestSuite
Tests run: 59, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 21.819 sec <<<
FAILURE! - in TestSuite
testIsPermissibleWithEmptyConfigWithMalformedData on
testIsPermissibleWithEmptyConfigWithMalformedData(org.apache.nifi.cluster.firewall.impl.FileBasedClusterNodeFirewallTest)(org.apache.nifi.cluster.firewall.impl.FileBasedClusterNodeFirewallTest)
Time elapsed: 0.012 sec <<< FAILURE!
org.junit.AssumptionViolatedException: got: <false>, expected: is <true>
at org.junit.Assume.assumeThat(Assume.java:95)
at org.junit.Assume.assumeTrue(Assume.java:41)
at
org.apache.nifi.cluster.firewall.impl.FileBasedClusterNodeFirewallTest.testIsPermissibleWithEmptyConfigWithMalformedData(FileBasedClusterNodeFirewallTest.java:131)
testIsPermissibleWithMalformedData on
testIsPermissibleWithMalformedData(org.apache.nifi.cluster.firewall.impl.FileBasedClusterNodeFirewallTest)(org.apache.nifi.cluster.firewall.impl.FileBasedClusterNodeFirewallTest)
Time elapsed: 0.002 sec <<< FAILURE!
org.junit.AssumptionViolatedException: got: <false>, expected: is <true>
at org.junit.Assume.assumeThat(Assume.java:95)
at org.junit.Assume.assumeTrue(Assume.java:41)
at
org.apache.nifi.cluster.firewall.impl.FileBasedClusterNodeFirewallTest.testIsPermissibleWithMalformedData(FileBasedClusterNodeFirewallTest.java:118)
ensureBadDataWasIgnored on
ensureBadDataWasIgnored(org.apache.nifi.cluster.firewall.impl.FileBasedClusterNodeFirewallTest)(org.apache.nifi.cluster.firewall.impl.FileBasedClusterNodeFirewallTest)
Time elapsed: 0.001 sec <<< FAILURE!
org.junit.AssumptionViolatedException: got: <false>, expected: is <true>
at org.junit.Assume.assumeThat(Assume.java:95)
at org.junit.Assume.assumeTrue(Assume.java:41)
at
org.apache.nifi.cluster.firewall.impl.FileBasedClusterNodeFirewallTest.ensureBadDataWasIgnored(FileBasedClusterNodeFirewallTest.java:85)
{code}
> TestPutUDP testUnkownHostname fails because all hostnames resolve
> -----------------------------------------------------------------
>
> Key: NIFI-1789
> URL: https://issues.apache.org/jira/browse/NIFI-1789
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 0.6.1
> Reporter: Andy LoPresto
> Fix For: 1.0.0, 0.7.0
>
>
> On some systems, arbitrary hostnames (e.g. {{sgfgfdgs}}) resolves to a valid
> IP address depending on the DNS resolution scheme. Therefore, the test, which
> assumes that the host does not resolve, fails.
> {code}
> hw12203:/Users/alopresto (master) alopresto
> 🔓 0s @ 20:10:32 $ nslookup asdfsdfsdf
> Server: 192.168.1.1
> Address: 192.168.1.1#53
> Non-authoritative answer:
> Name: asdfsdfsdf
> Address: 198.105.254.228
> Name: asdfsdfsdf
> Address: 198.105.244.228
> hw12203:/Users/alopresto (master) alopresto
> 🔓 39s @ 20:12:24 $ dig asdfasdf
> ; <<>> DiG 9.8.3-P1 <<>> asdfasdf
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31295
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
> ;; QUESTION SECTION:
> ;asdfasdf. IN A
> ;; ANSWER SECTION:
> asdfasdf. 10 IN A 198.105.254.228
> asdfasdf. 10 IN A 198.105.244.228
> ;; Query time: 81 msec
> ;; SERVER: 192.168.1.1#53(192.168.1.1)
> ;; WHEN: Tue Apr 19 20:12:30 2016
> ;; MSG SIZE rcvd: 58
> hw12203:/Users/alopresto (master) alopresto
> 🔓 0s @ 20:12:30 $
> {code}
> Reported on Mac OS X 10.11.4
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)