Hi Manu, According to your comment, I test the coffeeshop app in jaggery server with the following curl command.
ThinkPad-T540p:~/cookies$ curl http://localhost:9763/coffeeshop/orders/bootstrap/ico/123 --head HTTP/1.1 200 OK Set-Cookie: JSESSIONID=DA0719587D4B08DAA7EFD5B11C9CE1EC; Path=/coffeeshop/; HttpOnly Content-Type: text/javascript Content-Length: 0 Date: Fri, 23 Oct 2015 08:16:57 GMT Server: WSO2 Carbon Server ThinkPad-T540p:~/cookies$ curl http://localhost:9763/coffeeshop/orders/bootstrap/ico/123 --head HTTP/1.1 200 OK Set-Cookie: JSESSIONID=E2589B0A4D2032C2072B6B775535816A; Path=/coffeeshop/; HttpOnly Content-Type: text/javascript Content-Length: 0 Date: Fri, 23 Oct 2015 08:17:01 GMT Server: WSO2 Carbon Server ThinkPad-T540p:~/cookies$ curl http://localhost:9763/coffeeshop/orders/bootstrap/ico/123 --head HTTP/1.1 200 OK Set-Cookie: JSESSIONID=44E3E539BD0A27AC01E5F39E3AAA2C2B; Path=/coffeeshop/; HttpOnly Content-Type: text/javascript Content-Length: 0 Date: Fri, 23 Oct 2015 08:17:03 GMT Server: WSO2 Carbon Server Specified URL in above commands is invalid, but we can see new JSESSIONIDs are generated for new requests. The mentioned URL is http://localhost:9763/coffeshop/*orders*/* When we specify completely invalid URL it gives, ThinkPad-T540p:~/cookies$ curl http://localhost:9763/coffeeshop/test/bootstrap/ico/123 --head HTTP/1.1 404 Not Found Content-Type: text/html;charset=utf-8 Content-Language: en Content-Length: 1017 Date: Fri, 23 Oct 2015 08:24:39 GMT Server: WSO2 Carbon Server Is this right? Appreciate your comments on these tests. Still APIM 1.10.x is developing, I cannot test the same to the latest APIM which supports "store" and "publisher" apps. On Thu, Oct 22, 2015 at 8:00 PM, Manuranga Perera <[email protected]> wrote: > Looping Dev. > On Oct 22, 2015 9:29 PM, "Manuranga Perera" <[email protected]> wrote: > >> If you are writing integration test, best way to test is not by looking >> at memory. Look at the response headers after doing a request to a test app >> and see JSESSION cookie is created. >> > -- Lalanke Athauda Software Engineer WSO2 Inc. Mobile: 0772264301
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
