Add a test for a failed connection
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 19 Jan 2012 14:30:47 +0000 (15:30 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 19 Jan 2012 14:31:09 +0000 (15:31 +0100)
The test uses an invalid hostname for a target.

test/test_url.urls
test/test_url_11.res [new file with mode: 0644]
test/test_url_12.res [new file with mode: 0644]

index d93248f..5c2ddaf 100644 (file)
@@ -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 (file)
index 0000000..2b3989e
--- /dev/null
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<init><status>OK</status><session>2</session><protocol>1</protocol></init>
\ No newline at end of file
diff --git a/test/test_url_12.res b/test/test_url_12.res
new file mode 100644 (file)
index 0000000..ab63fe6
--- /dev/null
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<search><status>OK</status></search>
\ No newline at end of file