Kaydet (Commit) b3d15352 authored tarafından Caolán McNamara's avatar Caolán McNamara

my upc router automatically adds .net to the domain search path

i.e. I get handed an /etc/resolv.conf of

  domain net
  search net ...

and so "nohost" resolves to "nohost.net" which actually exists, so I get an
authentication request which is unexpected by this test which therefore falls
over. "nohost.invalid.net" also exists btw, as are other various foo.net forms
where foo is one of the reserved tld which don't themselves exist.

So lets shove a "*" into the name which is definitely invalid, sigh.

Change-Id: I8627ced9199f339ad6cca8f27752d883ebe74aad
üst 961315f0
...@@ -179,7 +179,7 @@ public class UCB { ...@@ -179,7 +179,7 @@ public class UCB {
@Test public void checkWrongFtpConnection() { @Test public void checkWrongFtpConnection() {
try { try {
String acountUrl = "ftp://noname:nopasswd@nohost"; String acountUrl = "ftp://noname:nopasswd@*nohost.invalid";
System.out.println(acountUrl); System.out.println(acountUrl);
init(); init();
Object content = getContent(acountUrl); Object content = getContent(acountUrl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment