Hello, I think for this test we can do fine with a (java mock) http server started for the particular redirection test, other provider tests do that as well.
Added benefit would be, that we can actually assert some properties of the request on server side. Gruss Bernd -- http://bernd.eckenfels.net >From Win 10 Mobile Von: Benedikt Ritter Gesendet: Dienstag, 22. März 2016 08:34 An: Commons Developers List Betreff: Re: commons-vfs:org.apache.commons.vfs2.provider.http.test.HttpProviderTestCase fails Hi, Bernd Eckenfels <e...@zusammenkunft.net> schrieb am Di., 22. März 2016 um 01:03 Uhr: > Hello, > > I think it is a new problem. It is a bit unfortunate that those tests > rely on external web sites (and those seeem to no longer exist). > > If you want, you can file the report directly in the JIRA: > > https://issues.apache.org/jira/browse/VFS/ > > It seems to be safe to ignore that failure. > Hm, I think we should really fix this :-) Maybe it is possible to use the Test Containers project [1] to spin up the needed infrastructure for running the test? Benedikt [1] http://testcontainers.viewdocs.io/testcontainers-java/ > Gruss > Bernd > > Am Mon, > 21 Mar 2016 21:38:46 +0000 schrieb "Epstein, Ezra" > <ezra.epst...@neustar.biz>: > > > I’ve forked and cloned the repo from GitHub and the build fails with: > > > > > > Tests run: 90, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: > > 5.223 sec <<< FAILURE! - in > > org.apache.commons.vfs2.provider.http.test.HttpProviderTestCase > > > > > testHttp405(org.apache.commons.vfs2.provider.http.test.HttpProviderTestCase) > > Time elapsed: 0.372 sec <<< ERROR! > > > > org.apache.commons.vfs2.FileSystemException: Could not determine the > > size of > > "http://www.w3schools.com/webservices/tempconvert.asmx?action=WSDL" > > because it is not a file. > > > > at > > > org.apache.commons.vfs2.provider.DefaultFileContent.getSize(DefaultFileContent.java:135) > > > > at > > > org.apache.commons.vfs2.provider.http.test.HttpProviderTestCase.testHttp405(HttpProviderTestCase.java:208) > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > ... > > at > > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) > > > > … > > > > Tests in error: > > > > > HttpProviderTestCase>AbstractProviderTestCase.runTest:218->testHttp405:208 > > HttpProviderTestCase>» FileSystem > > > > > > Is this a known issue? > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > >