From 5c354863c9c6fcc080f2407e6f7adea41fa4371d Mon Sep 17 00:00:00 2001 From: Shulhan Date: Thu, 9 Jun 2022 23:44:02 +0700 Subject: all: add integration tests for HTTP API related to block.d The test is conducted by running the server and call the HTTP API using the Client methods. --- testdata/rescached.cfg.test.out | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'testdata') diff --git a/testdata/rescached.cfg.test.out b/testdata/rescached.cfg.test.out index e55d29c..8f36010 100644 --- a/testdata/rescached.cfg.test.out +++ b/testdata/rescached.cfg.test.out @@ -3,22 +3,22 @@ file.resolvconf = wui.listen = 127.0.0.1:5381 debug = 1 -[block.d "pgl.yoyo.org"] -name = pgl.yoyo.org -url = http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&startdate[day]=&startdate[month]=&startdate[year]=&mimetype=plaintext +[block.d "a.block"] +name = a.block +url = http://127.0.0.1:11180/hosts/a -[block.d "someonewhocares.org"] -name = someonewhocares.org -url = http://someonewhocares.org/hosts/hosts +[block.d "b.block"] +name = b.block +url = http://127.0.0.1:11180/hosts/b + +[block.d "c.block"] +name = c.block +url = http://127.0.0.1:11180/hosts/c [block.d "test"] name = test url = http://someurl -[block.d "winhelp2002.mvps.org"] -name = winhelp2002.mvps.org -url = http://winhelp2002.mvps.org/hosts.txt - [dns "server"] listen = 127.0.0.1:5350 tls.certificate = -- cgit v1.3