From 17ad952e18dfccaf037adf891548d03c53eee165 Mon Sep 17 00:00:00 2001 From: craff Date: Tue, 6 Dec 2022 18:23:32 -1000 Subject: [PATCH] more tests --- examples/test_output_domains.txt.expected | 26 +++++++++ tests/echo1_domains.expect | 70 +++++++++++++++++++++++ tests/sse_count_domains.expect | 23 ++++++++ 3 files changed, 119 insertions(+) create mode 100644 examples/test_output_domains.txt.expected create mode 100644 tests/echo1_domains.expect create mode 100644 tests/sse_count_domains.expect diff --git a/examples/test_output_domains.txt.expected b/examples/test_output_domains.txt.expected new file mode 100644 index 00000000..8d6db869 --- /dev/null +++ b/examples/test_output_domains.txt.expected @@ -0,0 +1,26 @@ +listening on http://localhost:8083/ +connect to 127.0.0.1:8083 +HTTP/1.1 200 OK +content-type: text/event-stream + +data: 0 + +data: 1 + +data: 2 + +data: 3 + +data: 4 + +data: 5 + +data: 6 + +data: 7 + +data: 8 + +data: 9 + +success diff --git a/tests/echo1_domains.expect b/tests/echo1_domains.expect new file mode 100644 index 00000000..78bbb517 --- /dev/null +++ b/tests/echo1_domains.expect @@ -0,0 +1,70 @@ +listening on http://127.0.0.1:8095 +echo: +{meth=GET; host=localhost:8095; + headers=[user-agent: test + accept: */* + host: localhost:8095]; + path="/echo/?a=b&c=d"; body=""; path_components=["echo"]; + query=["c","d";"a","b"]} +(query: "c" = "d";"a" = "b") + + + + +list directory "Embedded_fs" + + + + +

+Index of "" +

+ + + +hello +world + + + + + + +

funky:

+ + + + diff --git a/tests/sse_count_domains.expect b/tests/sse_count_domains.expect new file mode 100644 index 00000000..a06836ba --- /dev/null +++ b/tests/sse_count_domains.expect @@ -0,0 +1,23 @@ +listening on http://localhost:8096/ +data: 0 + +data: 1 + +data: 2 + +data: 3 + +data: 4 + +data: 5 + +data: 6 + +data: 7 + +data: 8 + +data: 9 + +data: 10 +