From 99a7119cb25970e101910433fa6c6776925132a9 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 19 Jan 2012 15:30:47 +0100 Subject: [PATCH] Add a test for a failed connection The test uses an invalid hostname for a target. --- test/test_url.urls | 2 ++ test/test_url_11.res | 2 ++ test/test_url_12.res | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 test/test_url_11.res create mode 100644 test/test_url_12.res diff --git a/test/test_url.urls b/test/test_url.urls index d93248f..5c2ddaf 100644 --- a/test/test_url.urls +++ b/test/test_url.urls @@ -8,3 +8,5 @@ http://localhost:9763/search.pz2?session=1&command=search&query=the&maxrecs=3 2 http://localhost:9763/search.pz2?session=1&command=show&block=1&sort=title:1 2 http://localhost:9763/search.pz2?session=1&command=show&block=1&sort=title:0 2 http://localhost:9763/search.pz2?session=1&command=show&block=1&sort=title:0 +http://localhost:9763/search.pz2?command=init&clear=1&pz:elements%5Bmy%5D=F&pz:requestsyntax%5Bmy%5D=usmarc&pz:nativesyntax%5Bmy%5D=iso2709&pz:xslt%5Bmy%5D=marc21_test.xsl&pz:name%5Bmy%5D=marcserver&pz:url%5Bmy%5D=z3950.unknown.indexdata.com%2Fmarc +http://localhost:9763/search.pz2?session=2&command=search&query=fail diff --git a/test/test_url_11.res b/test/test_url_11.res new file mode 100644 index 0000000..2b3989e --- /dev/null +++ b/test/test_url_11.res @@ -0,0 +1,2 @@ + +OK21 \ No newline at end of file diff --git a/test/test_url_12.res b/test/test_url_12.res new file mode 100644 index 0000000..ab63fe6 --- /dev/null +++ b/test/test_url_12.res @@ -0,0 +1,2 @@ + +OK \ No newline at end of file -- 1.7.10.4