]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
79e18b11d46fe87ccf1c71ee83bcb986f59ea59a
[tmp/jakarta-migration.git] /
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- XMLReplay tests of advanced search in CollectionObject records -->
3 <xmlReplay>
4     <auths>
5         <!-- IMPORTANT: THESE ARE STICKY :: THEY STICK AROUND UNTIL RESET, IN EXEC ORDER OF THIS FILE. -->
6         <auth ID="admin@testsci.collectionspace.org">YWRtaW5AdGVzdHNjaS5jb2xsZWN0aW9uc3BhY2Uub3JnOkFkbWluaXN0cmF0b3I=</auth>
7     </auths>
8     
9     <testGroup ID="advSearchCommonSchema" autoDeletePOSTS="true">
10         <!-- Create a new CollectionObject record with a common part. -->
11        <test ID="co1"  auth="admin@testsci.collectionspace.org">
12              <method>POST</method>
13              <uri>/cspace-services/collectionobjects/</uri>
14              <filename>collectionobject/co1.xml</filename>
15          </test>
16         <!-- Advanced search for CollectionObject records matching the -->
17         <!-- expected text within a single field in the common part. -->
18         <test ID="co1advsearch">
19             <method>GET</method>
20             <uri>/cspace-services/collectionobjects?as=collectionobjects_common%3AobjectNumber%3D'6.0221415'</uri>
21             <response>
22                 <expected level="TEXT" />
23                 <label>abstract-common-list</label>
24                 <filename>collectionobject/res/co1-adv-search-testsci.res.xml</filename>
25              </response>
26          </test>
27     </testGroup>
28    
29     <testGroup ID="advSearchExtensionSchema" autoDeletePOSTS="true">
30         <!-- Create a new CollectionObject record with an extension schema part -->
31        <test ID="co2" auth="admin@testsci.collectionspace.org">
32              <method>POST</method>
33              <uri>/cspace-services/collectionobjects/</uri>
34              <filename>collectionobject/co2.xml</filename>
35         </test>
36         <!-- Verify that the record contains an expected field value -->
37         <!-- in the extension schema part -->
38         <test ID="co2get">
39             <method>GET</method>
40             <uri>/cspace-services/collectionobjects/${co2.CSID}</uri>
41             <response>
42                 <expected level="TEXT" />
43                 <label>collectionobjects_naturalhistory</label>
44                                 <filename>collectionobject/res/co2.res.xml</filename>
45              </response>
46         </test>
47         <!-- Advanced search for CollectionObject records matching the -->
48         <!-- expected text within a single field in the extension schema part. -->
49         <test ID="co2advsearch">
50             <method>GET</method>
51             <uri>/cspace-services/collectionobjects?as=collectionobjects_testsci%3AfieldLocVerbatim%3D'jlmbsoqjlmbsoq'</uri>
52             <response>
53                 <expected level="TEXT" />
54                 <label>abstract-common-list</label>
55                 <filename>collectionobject/res/co2-adv-search-testsci.res.xml</filename>
56              </response>
57          </test>
58     </testGroup>
59
60 </xmlReplay>
61         
62