From ad87f947a5cec65afe214964da72bb458e3bb474 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Wed, 17 Feb 2016 16:05:30 +0100 Subject: [PATCH] Basic test cases added --- tests/body.json | 1 + tests/query-dns.sh | 1 + tests/search-modules.sh | 1 + 3 files changed, 3 insertions(+) create mode 100644 tests/body.json create mode 100644 tests/query-dns.sh create mode 100644 tests/search-modules.sh diff --git a/tests/body.json b/tests/body.json new file mode 100644 index 0000000..d8dfa9a --- /dev/null +++ b/tests/body.json @@ -0,0 +1 @@ +{"module": "dns", "hostname": "www.foo.be"} diff --git a/tests/query-dns.sh b/tests/query-dns.sh new file mode 100644 index 0000000..adaddc0 --- /dev/null +++ b/tests/query-dns.sh @@ -0,0 +1 @@ +curl http://127.0.0.1:6666/query -H "Content-Type: application/json" --data @body.json -X POST diff --git a/tests/search-modules.sh b/tests/search-modules.sh new file mode 100644 index 0000000..926335f --- /dev/null +++ b/tests/search-modules.sh @@ -0,0 +1 @@ +curl http://127.0.0.1:6666/modules