Add test case for bug #3260 (settings mixed)
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 11 Feb 2010 10:15:51 +0000 (11:15 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 11 Feb 2010 10:16:27 +0000 (11:16 +0100)
test/test_settings_2.res
test/test_settings_3.res
test/test_settings_4.res
test/test_settings_5.res [new file with mode: 0644]
test/test_settings_6.res [new file with mode: 0644]
test/test_settings_7.res [new file with mode: 0644]
test/test_settings_8.res [new file with mode: 0644]
test/test_settings_urls

index 42534e3..2b3989e 100644 (file)
@@ -1,2 +1,2 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<settings><status>OK</status></settings>
\ No newline at end of file
+<init><status>OK</status><session>2</session><protocol>1</protocol></init>
\ No newline at end of file
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 fd09de2..ab63fe6 100644 (file)
@@ -1,17 +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>114</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
+<search><status>OK</status></search>
\ No newline at end of file
diff --git a/test/test_settings_5.res b/test/test_settings_5.res
new file mode 100644 (file)
index 0000000..42534e3
--- /dev/null
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<settings><status>OK</status></settings>
\ No newline at end of file
diff --git a/test/test_settings_6.res b/test/test_settings_6.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_settings_7.res b/test/test_settings_7.res
new file mode 100644 (file)
index 0000000..fd09de2
--- /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>114</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
diff --git a/test/test_settings_8.res b/test/test_settings_8.res
new file mode 100644 (file)
index 0000000..31008db
--- /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:elements" value="F"/>
+<set name="pz:requestsyntax" value="marc21"/>
+<set name="pz:cclmap:term" value="u=1016"/><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 32e1cda..5f7a967 100644 (file)
@@ -1,4 +1,8 @@
-http://localhost:9763/search.pz2?session=1&command=init
+http://localhost:9763/search.pz2?command=init
+http://localhost:9763/search.pz2?command=init&clear=1
 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
+http://localhost:9763/search.pz2?session=2&command=settings&category%5Bz3950.indexdata.com%2Fmarc%5D=1&pz:cclmap:term%5Bz3950.indexdata.com%2Fmarc%5D=u%3D1016&pz:elements%5Bz3950.indexdata.com%2Fmarc%5D=F
+http://localhost:9763/search.pz2?session=2&command=search&query=water
 2 http://localhost:9763/search.pz2?session=1&command=bytarget&settings=1
+http://localhost:9763/search.pz2?session=2&command=bytarget&settings=1