EV-Websockets

 view release on metacpan or  search on metacpan

xt/author/autobahn.t  view on Meta::CPAN

# Author test: WebSocket protocol conformance via the Autobahn TestSuite
# fuzzingclient, run against this module's echo server. Needs a container
# runtime (docker or podman; set $EV_WS_OCI to force one) and is Linux-oriented
# (uses --network host so the container can reach the host server).
# Run with: AUTHOR_TESTING=1 prove -lb xt/
#
# This asserts the CORE RFC 6455 conformance the module implements: framing,
# fragmentation, control frames, close handling, and limits. Some groups are
# excluded as out of scope (not conformance failures):
#   6.*, 7.5.*  UTF-8 validity (text + close reason): the module is
#               byte-transparent and does not enable lws's UTF-8 validation.
#   12.*, 13.*  permessage-deflate: compression is optional and not offered by
#               the server vhost (enabling it needs a server-tuned deflate
#               config -- the client-tuned one is non-conformant for a server).
#   2.10        burst of pings: lws coalesces auto-pongs, which Autobahn flags;
#               this is lws control-frame behaviour, not the module's logic.

plan skip_all => "set AUTHOR_TESTING=1 to run the Autobahn suite"
    unless $ENV{AUTHOR_TESTING};

# Container runtime: honour $EV_WS_OCI, else auto-detect docker or podman.



( run in 0.498 second using v1.01-cache-2.11-cpan-7fcb06a456a )