Hi Dan, In org.apache.isis.viewer.restfulobjects.tck.user.root.Put_thenResponseCode_205_bad_TODO
Here is the request I sent to the jetty server(Captured with tcpmon) PUT /user HTTP/1.1 Accept-Encoding: gzip, deflate Accept: application/json Content-Length: 0 Host: 127.0.0.1:39394 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.2 (java 1.5) And the response is HTTP/1.1 500 Internal Server Error Set-Cookie: JSESSIONID=qu4yig0v4n2q1fsq84zt1bee7;Path=/ Content-Length: 0 Server: Jetty(6.1.26) But the status code should be is 205. Am I doing something wrong? On Sat, Jan 18, 2014 at 10:53 PM, Dan Haywood <[email protected]>wrote: > Hi Dimuthu, > Sorry for not replying earlier. > > As I recall, the "GET_whenRequestHeaders_Accept" was to check that an > inbound HTTP request with valid Accept header was processed ok, while the > "GET_thenRequestHeaders_Accept" was to check that the outbound HTTP > response Accept headers were ok. > > Meanwhle, the "GET_whenRequestHeaders_Accept_isinvalid_bad" is that an > HTTP request with its Accept header set to some invalid value was detected > correctly. > > HTH .... really appreciate you lending a hand with this task. > > Dan > > > > On 12 January 2014 11:00, DImuthu Upeksha <[email protected]>wrote: > >> Hi Dan, >> I started to implement the test cases we were unable to complete earlier. >> There is a problem about meanings of some test cases. As an example there >> are two test classes >> in org.apache.isis.viewer.restfulobjects.tck.homepage.root package >> >> Get_thenRequestHeaders_Accept_ok.java >> Get_whenRequestHeaders_Accept_ok_TODO.java >> >> I can't distinguish the task of each class. As I understood both test >> classes are expected to do same task of testing correct Accept header in >> request. Or is there a difference in those test classes? >> >> And in Get_whenRequestHeaders_Accept_isInvalid_bad_TODO.java >> what is to be checked? >> >> Thanks >> Dimuthu >> -- >> Regards >> >> W.Dimuthu Upeksha >> Undergraduate >> Department of Computer Science And Engineering >> >> University of Moratuwa, Sri Lanka >> > > -- Regards W.Dimuthu Upeksha Undergraduate Department of Computer Science And Engineering University of Moratuwa, Sri Lanka
