summaryrefslogtreecommitdiffstats
path: root/test/functional/util
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-11-12 15:53:56 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-11-19 12:44:14 +0000
commite9e0ee39de0c5ee1143edf495908820eb31e116a (patch)
tree32c4634a5560d75e63c90e032f92c58b5d004b76 /test/functional/util
parent3ec55e1bcb675fb2affcd4977e9517054c9a5342 (diff)
downloadrspamd-e9e0ee39de0c5ee1143edf495908820eb31e116a.tar.gz
rspamd-e9e0ee39de0c5ee1143edf495908820eb31e116a.zip
[Test] Start write tests for external maps
Diffstat (limited to 'test/functional/util')
-rwxr-xr-xtest/functional/util/dummy_http.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/util/dummy_http.py b/test/functional/util/dummy_http.py
index 4bec24119..c683d66a2 100755
--- a/test/functional/util/dummy_http.py
+++ b/test/functional/util/dummy_http.py
@@ -89,6 +89,9 @@ class MyHandler(http.server.BaseHTTPRequestHandler):
if self.path == "/content-length":
self.send_header("Content-Length", str(len(response)))
+ if self.path == "/map-simple":
+ response = "hello"
+
self.send_header("Content-type", "text/plain")
self.end_headers()
self.wfile.write(response)