Jenkins test result importing not working since release 3.7.x

Thomas Reimer, modified 11 Years ago.

Jenkins test result importing not working since release 3.7.x

Youngling Posts: 9 Join Date: 11/11/10 Recent Posts
Hello everyone,

today I set up a Klaros testing instance based on the most recent 3.7.2 release. When I tried to check the automatic test case importing from Jenkins I got the following error:

--

HTTP Status 405 -

type Status report

message

description The specified HTTP method is not allowed for the requested resource ().
Apache Tomcat/6.0.32

---

The Jenkins import interface uses the following URL:

http://$HOSTNAME/klaros-web/seam/resource/rest/importer?username=$USER&password=$PW&type=check
(I replaced the original values with $vars)

Up to release 3.6.11 the test result importing works fine. Do you have an idea what could cause the described problem?

Regards,
Thomas
thumbnail
Torsten Stolpmann, modified 11 Years ago.

RE: Jenkins test result importing not working since release 3.7.x

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hello Thomas,

this looks to me that you are using HTTP GET to reach this URL, which is not allowed as only PUT and OPTIONS is allowed here.

The 405 error is coming from the REST framework here, which is pretty strict when it comes to HTTP methods.

Can you please recheck this with e.g. the following (mind the -T):

curl -v -T unittestresult.xml 'http://$HOSTNAME:18080/klaros-web/seam/resource/rest/importer?username=$USER&password=$PW&type=check'


Hope this helps,

Torsten
Thomas Reimer, modified 11 Years ago.

RE: Jenkins test result importing not working since release 3.7.x

Youngling Posts: 9 Join Date: 11/11/10 Recent Posts
Hello Torsten,

the command

curl -v -T unittestresult.xml 'http://$HOSTNAME:18080/klaros-web/seam/resource/rest/importer?username=$USER&password=$PW&type=check'


gives us the following output:


* About to connect() to proxy $PROXY port 3128 (#0)
*   Trying 172.17.16.130... connected
* Connected to $PROXY (172.17.16.130) port 3128 (#0)
> PUT http://$HOSTNAME:18080/klaros-web/seam/resource/rest/importer?username=$USERNAME&password=$PASSWD&type=check HTTP/1.1
> User-Agent: curl/7.19.6 (i686-pc-linux-gnu) libcurl/7.19.6 OpenSSL/0.9.8k zlib/1.2.3 libidn/1.10
> Host: $HOSTNAME:18080
> Accept: */*
> Proxy-Connection: Keep-Alive
> Content-Length: 156296
> Expect: 100-continue
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Server: Apache-Coyote/1.1
< Set-Cookie: JSESSIONID=1906516D7E76B81AEC15539112E10483; Path=/klaros-web
< Content-Length: 0
< Date: Thu, 29 Nov 2012 15:14:07 GMT
< X-Cache: MISS from $PROXY
* HTTP/1.0 connection set to keep alive!
< Connection: keep-alive
* HTTP/1.0 proxy connection set to keep alive!
< Proxy-Connection: keep-alive
<
* Connection #0 to host $PROXY left intact
* Closing connection #0


(Again the $vars are inserted by me)

Greetings,
Thomas
thumbnail
Torsten Stolpmann, modified 11 Years ago.

RE: Jenkins test result importing not working since release 3.7.x (Answer)

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hello Thomas,

this looks ok to me (type=check is basically a ping attempt which does nothing more than sending a 200 OK).

Did you also try sending a result file with the corresponding type and project information to check if everything working?

Regards,

Torsten