fafhrd91 / pyramid_sockjs

44 stars 13 forks source link

sockjs protocol tests #8

Closed sontek closed 12 years ago

sontek commented 12 years ago

Hey, I couldn't find anywhere that listed if you pass all the sockjs protocol tests. Is this listed somewhere?

wendall911 commented 12 years ago

The tests contain a copy of the sockjs protocol tests for 0.3, and it passes all of them.

fafhrd91 commented 12 years ago

i've just found tests fail with gevent 1.0b3

wendall911 commented 12 years ago

That's what I ran the tests under. I'll re-run them and report back.

wendall911 commented 12 years ago

Here is the result of my test output with 1.0b3 https://friendpaste.com/3oFY7IBkjJpqkV2apkkAnr

fafhrd91 commented 12 years ago

you are running unittests.

here is sockjs protocol results:

test_greeting (main.BaseUrlGreeting) ... ok test_notFound (main.BaseUrlGreeting) ... ok test_response_limit (main.EventSource) ... ok test_transport (main.EventSource) ... ok test_abort_xhr_polling (main.HandlingClose) ... FAIL test_abort_xhr_streaming (main.HandlingClose) ... FAIL test_close_frame (main.HandlingClose) ... ok test_close_request (main.HandlingClose) ... ok test_no_callback (main.HtmlFile) ... ok test_response_limit (main.HtmlFile) ... ok test_transport (main.HtmlFile) ... ok test_streaming (main.Http10) ... ok test_synchronous (main.Http10) ... ok test_streaming (main.Http11) ... ok test_synchronous (main.Http11) ... ok test_cacheability (main.IframePage) ... ok test_invalidUrl (main.IframePage) ... ok test_queriedUrl (main.IframePage) ... ok test_simpleUrl (main.IframePage) ... ok test_versionedUrl (main.IframePage) ... ok test_basic (main.InfoTest) ... ok test_disabled_websocket (main.InfoTest) ... ok test_entropy (main.InfoTest) ... ok test_options (main.InfoTest) ... ok test_options_null_origin (main.InfoTest) ... ok test_xhr_server_decodes (main.JSONEncoding) ... ok test_xhr_server_encodes (main.JSONEncoding) ... ok test_basic (main.JsessionidCookie) ... ok test_eventsource (main.JsessionidCookie) ... ok test_htmlfile (main.JsessionidCookie) ... ok test_jsonp (main.JsessionidCookie) ... ok test_xhr (main.JsessionidCookie) ... ok test_xhr_streaming (main.JsessionidCookie) ... ok test_close (main.JsonPolling) ... ok test_content_types (main.JsonPolling) ... ok test_invalid_json (main.JsonPolling) ... ok test_no_callback (main.JsonPolling) ... ok test_transport (main.JsonPolling) ... ok test_closeSession (main.Protocol) ... ok test_simpleSession (main.Protocol) ... FAIL test_close (main.RawWebsocket) ... ok test_transport (main.RawWebsocket) ... ok test_anyValue (main.SessionURLs) ... ok test_ignoringServerId (main.SessionURLs) See Protocol.test_simpleSession for explanation. ... ok test_invalidPaths (main.SessionURLs) ... ok test_broken_json (main.WebsocketHixie76) ... ok test_close (main.WebsocketHixie76) ... ok test_empty_frame (main.WebsocketHixie76) ... ok test_haproxy (main.WebsocketHixie76) ... ok test_reuseSessionId (main.WebsocketHixie76) ... FAIL test_transport (main.WebsocketHixie76) ... ok test_httpMethod (main.WebsocketHttpErrors) ... ok test_invalidConnectionHeader (main.WebsocketHttpErrors) ... ok test_invalidMethod (main.WebsocketHttpErrors) ... ok test_broken_json (main.WebsocketHybi10) ... ok test_close (main.WebsocketHybi10) ... ok test_firefox_602_connection_header (main.WebsocketHybi10) ... ok test_headersSanity (main.WebsocketHybi10) ... ok test_transport (main.WebsocketHybi10) ... ok test_content_types (main.XhrPolling) ... ok test_invalid_json (main.XhrPolling) ... ok test_invalid_session (main.XhrPolling) ... ok test_options (main.XhrPolling) ... ok test_request_headers_cors (main.XhrPolling) ... ok test_transport (main.XhrPolling) ... ok test_options (main.XhrStreaming) ... ok test_response_limit (main.XhrStreaming) ... ok test_transport (main.XhrStreaming) ... ok

wendall911 commented 12 years ago

Ah, I'd run the protocol tests before independently, but that was against my system 1.0b2.

wendall911 commented 12 years ago

I re-ran the actual protocol tests and have the same three failures with 1.0b3. Should this be opened as an issue? Also, it appears as though the generated README.rst in the project root differs slightly from the generated docs. Couple minor things, one being the license.

fafhrd91 commented 12 years ago

i cant really fix those failures.

this two test_abort_xhr_polling and test_abort_xhr_streaming depend on tcp connection, i just cant detect tcp disconnection. and this test_reuseSessionId related to session design, right now it is just not possible to reuse session ids at all.

you can create ticket of pull request for readme.

thanks.