jgritman / httpbuilder

314 stars 154 forks source link

Build failure v0.7.3-SNAPSHOT #46

Open ppazos opened 9 years ago

ppazos commented 9 years ago

Tests run: 80, Failures: 1, Errors: 11, Skipped: 9

[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:06 min [INFO] Finished at: 2015-05-04T02:09:51-02:00 [INFO] Final Memory: 12M/29M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project http-builder: There are test fa ilures. [ERROR] [ERROR] Please refer to C:\Documents and Settings\pab\My Documents\Downloads\httpbuilder-master\target\surefire-reports for the individual test r esults. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

ppazos commented 9 years ago

Is there any way to build the jar without executing the tests?

It seems some tests are broken because the URLs/APIs changed.

bassmanitram commented 9 years ago

mvn -DskipTests install

jja commented 8 years ago

The failure I get is:

Results :

Failed tests: 
  HttpURLClientTest.testRedirect:49 assert resp.statusLine.statusCode == 200
       |    |          |          |
       |    |          302        false
       |    HTTP/1.1 302 Found
       groovyx.net.http.HttpResponseDecorator@f27ea3

Tests in error: 
  GAETest.testPOST:184 » HttpResponse Bad Request
  HttpURLClientTest.testPOST:133 » HttpResponse Bad Request
  HttpURLClientTest.testParsers:183 » HttpResponse Bad Request
  RESTClientTest.testPost:68 » HttpResponse Bad Request
  RESTClientTest.testDelete:85 » IllegalState No post ID from testPost()
  RESTClientTest.testDefaultHandlers:109 » HttpResponse Bad Request
  RESTClientTest.testQueryParameters:125 » HttpResponse Bad Request
  RESTClientTest.testHead:47 » HttpResponse Bad Request
  RESTClientTest.testGet:56 » HttpResponse Bad Request
  HTTPBuilderTest.testPOST:157 » HttpResponse Bad Request
  AsyncHTTPBuilderTest.testPostAndDelete:108 » Execution org.codehaus.groovy.run...

Tests run: 80, Failures: 1, Errors: 11, Skipped: 9

Because the test URL:

        def params = [ url:'http://www.google.com/search',
                        query:[q:'HTTPBuilder', btnI:"I'm Feeling Lucky"],
                        headers:['User-Agent':'Firefox'] ]

redirects first to the https version (e.g. https://www.google.com/search?q=httpbuilder&btnI=I'm%20Feeling%20Lucky&gws_rd=ssl) before again redirecting to a location that returns 200.