From 6cf77031cc8883ffbacd5f65a54299392f3bc974 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Fri, 25 Mar 2016 11:01:12 +0100 Subject: [PATCH] Tests updated to include CIRCL passive dns --- tests/body.json | 2 +- tests/bodycircl_passivedns.json.sample | 1 + tests/query-circl_passivedns.sh | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 tests/bodycircl_passivedns.json.sample create mode 100644 tests/query-circl_passivedns.sh diff --git a/tests/body.json b/tests/body.json index d8dfa9a..89ca947 100644 --- a/tests/body.json +++ b/tests/body.json @@ -1 +1 @@ -{"module": "dns", "hostname": "www.foo.be"} +{"module": "dns", "hostname": "www.circl.lu"} diff --git a/tests/bodycircl_passivedns.json.sample b/tests/bodycircl_passivedns.json.sample new file mode 100644 index 0000000..ddd302f --- /dev/null +++ b/tests/bodycircl_passivedns.json.sample @@ -0,0 +1 @@ +{"module": "circl_passivedns", "ip-src": "149.13.33.14", "config": {"username": "auser", "password": "somepass"} } diff --git a/tests/query-circl_passivedns.sh b/tests/query-circl_passivedns.sh new file mode 100644 index 0000000..1d15aba --- /dev/null +++ b/tests/query-circl_passivedns.sh @@ -0,0 +1 @@ +curl -s http://127.0.0.1:6666/query -H "Content-Type: application/json" --data @bodycircl_passivedns.json -X POST