Addd test case for per-session setting
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 15 Oct 2009 08:37:03 +0000 (10:37 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 15 Oct 2009 08:37:03 +0000 (10:37 +0200)
test/test_settings_2.res
test/test_settings_3.res
test/test_settings_4.res [new file with mode: 0644]
test/test_settings_urls

index ab63fe6..42534e3 100644 (file)
@@ -1,2 +1,2 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<search><status>OK</status></search>
\ No newline at end of file
+<settings><status>OK</status></settings>
\ No newline at end of file
index b530805..ab63fe6 100644 (file)
@@ -1,16 +1,2 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<bytarget><status>OK</status>
-<target><id>z3950.indexdata.com/marc</id>
-<name>Target name</name>
-<hits>0</hits>
-<diagnostic>0</diagnostic>
-<records>0</records>
-<state>Client_Idle</state>
-<settings>
-<set name="pz:elements" value="F"/>
-<set name="pz:requestsyntax" value="marc21"/>
-<set name="pz:cclmap:term" value="u=host_wildcard"/>
-<set name="pz:id" value="z3950.indexdata.com/marc"/>
-<set name="pz:name" value="Target name"/>
-</settings>
-</target></bytarget>
\ No newline at end of file
+<search><status>OK</status></search>
\ No newline at end of file
diff --git a/test/test_settings_4.res b/test/test_settings_4.res
new file mode 100644 (file)
index 0000000..d1ba5b1
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<bytarget><status>OK</status>
+<target><id>z3950.indexdata.com/marc</id>
+<name>Target name</name>
+<hits>0</hits>
+<diagnostic>0</diagnostic>
+<records>0</records>
+<state>Client_Idle</state>
+<settings>
+<set name="pz:elements" value="F"/>
+<set name="pz:requestsyntax" value="marc21"/>
+<set name="pz:cclmap:term" value="u=host_wildcard"/>
+<set name="pz:id" value="z3950.indexdata.com/marc"/>
+<set name="pz:name" value="Target name"/>
+<set name="category" value="1"/>
+</settings>
+</target></bytarget>
\ No newline at end of file
index cc990c1..4222fbc 100644 (file)
@@ -1,4 +1,5 @@
 http://localhost:9763/search.pz2?session=1&command=init
+http://localhost:9763/search.pz2?session=1&command=settings&category%5Bz3950.indexdata.com%2Fmarc%5D=1
 http://localhost:9763/search.pz2?session=1&command=search&query=water
 2
 http://localhost:9763/search.pz2?session=1&command=bytarget&settings=1