Add test case immedately fetch: 'no resultset'.
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 16 Jun 2010 13:52:18 +0000 (15:52 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 16 Jun 2010 13:52:18 +0000 (15:52 +0200)
test/test_http_43.res [new file with mode: 0644]
test/test_http_44.res [new file with mode: 0644]
test/test_http_45.res [new file with mode: 0644]
test/test_http_46.res [new file with mode: 0644]
test/test_http_47.res [new file with mode: 0644]
test/test_http_48.res [new file with mode: 0644]
test/test_http_49.res [new file with mode: 0644]
test/test_http_urls

diff --git a/test/test_http_43.res b/test/test_http_43.res
new file mode 100644 (file)
index 0000000..b6eb00f
--- /dev/null
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<init><status>OK</status><session>6</session><protocol>1</protocol></init>
\ No newline at end of file
diff --git a/test/test_http_44.res b/test/test_http_44.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
diff --git a/test/test_http_45.res b/test/test_http_45.res
new file mode 100644 (file)
index 0000000..2b89580
--- /dev/null
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<show>
+<status>OK</status>
+<activeclients>0</activeclients>
+<merged>1</merged>
+<total>1</total>
+<start>0</start>
+<num>1</num>
+<hit>
+
+<md-title>Computer processing of dynamic images from an Anger scintillation camera</md-title>
+<md-title-remainder>the proceedings of a workshop</md-title-remainder>
+<md-date>1974</md-date>
+<md-description>Includes bibliographical references and index</md-description><location id="z3950.indexdata.com/marc" name="Index Data MARC test server">
+<md-title>Computer processing of dynamic images from an Anger scintillation camera</md-title>
+<md-title-remainder>the proceedings of a workshop</md-title-remainder>
+<md-date>1974</md-date>
+<md-description tag="504">Includes bibliographical references and index</md-description>
+<md-test-usersetting>XXXXXXXXXX</md-test-usersetting>
+<md-test-usersetting-2>test-usersetting-2 data: 
+        YYYYYYYYY</md-test-usersetting-2></location>
+<relevance>0</relevance>
+<recid>title computer processing of dynamic images from an anger scintillation camera author medium book</recid>
+</hit>
+</show>
diff --git a/test/test_http_46.res b/test/test_http_46.res
new file mode 100644 (file)
index 0000000..7f14f96
--- /dev/null
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<init><status>OK</status><session>7</session><protocol>1</protocol></init>
\ No newline at end of file
diff --git a/test/test_http_47.res b/test/test_http_47.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
diff --git a/test/test_http_48.res b/test/test_http_48.res
new file mode 100644 (file)
index 0000000..43fcf8b
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<show>
+<status>OK</status>
+<activeclients>0</activeclients>
+<merged>1</merged>
+<total>1</total>
+<start>0</start>
+<num>1</num>
+<hit>
+
+<md-title>The religious teachers of Greece</md-title>
+<md-date>1972</md-date>
+<md-author>Adam, James</md-author>
+<md-description>Reprint of the 1909 ed., which was issued as the 1904-1906 Gifford lectures</md-description><location id="z3950.indexdata.com/marc" name="Index Data MARC test server">
+<md-title>The religious teachers of Greece</md-title>
+<md-date>1972</md-date>
+<md-author>Adam, James</md-author>
+<md-description tag="500">Reprint of the 1909 ed., which was issued as the 1904-1906 Gifford lectures</md-description>
+<md-description tag="504">Includes bibliographical references</md-description>
+<md-test-usersetting>XXXXXXXXXX</md-test-usersetting>
+<md-test-usersetting-2>test-usersetting-2 data: 
+        YYYYYYYYY</md-test-usersetting-2></location>
+<relevance>120000</relevance>
+<recid>title the religious teachers of greece author adam james medium book</recid>
+</hit>
+</show>
diff --git a/test/test_http_49.res b/test/test_http_49.res
new file mode 100644 (file)
index 0000000..94bc0eb
--- /dev/null
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<error code="10" msg="Record command failed">no resultset</error>
\ No newline at end of file
index ed377c5..a36d278 100644 (file)
@@ -40,3 +40,10 @@ http://localhost:9763/search.pz2?session=3&command=search&query=the
 http://localhost:9763/search.pz2?session=5&command=search&query=the&maxrecs=5&startrecs=2
 2 http://localhost:9763/search.pz2?session=3&command=show&block=1
 http://localhost:9763/search.pz2?session=5&command=show&block=1
+http://localhost:9763/search.pz2?command=init&pz:elements%5Bz3950.indexdata.com%2Fmarc%5D=F
+1 http://localhost:9763/search.pz2?session=6&command=search&query=louis
+http://localhost:9763/search.pz2?session=6&command=show&block=1
+http://localhost:9763/search.pz2?command=init&pz:elements%5Bz3950.indexdata.com%2Fmarc%5D=F
+1 http://localhost:9763/search.pz2?session=7&command=search&query=greece
+http://localhost:9763/search.pz2?session=7&command=show&block=1
+http://localhost:9763/search.pz2?session=6&command=record&id=title+computer+processing+of+dynamic+images+from+an+anger+scintillation+camera+author+medium+book&offset=0