--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<xmlReplay>\r
+ <!-- \r
+ testGroup ID="person" is not live. It works, but may not clean up correctly. \r
+ For now, use ID="updatePerson"\r
+ -->\r
+ <testGroup ID="AuthRefs" autoDeletePOSTS="true">\r
+ <test ID="PersonAuth1" auth="admin@core.collectionspace.org">\r
+ <method>POST</method>\r
+ <uri>/cspace-services/personauthorities/</uri>\r
+ <filename>authrefs/newPersonAuthority.xml</filename>\r
+ </test>\r
+ <test ID="Person1">\r
+ <method>POST</method>\r
+ <uri>/cspace-services/personauthorities/${PersonAuth1.CSID}/items/</uri>\r
+ <filename>authrefs/newPerson1.xml</filename>\r
+ </test>\r
+ <test ID="Person2">\r
+ <method>POST</method>\r
+ <uri>/cspace-services/personauthorities/${PersonAuth1.CSID}/items/</uri>\r
+ <filename>authrefs/newPerson2.xml</filename>\r
+ </test>\r
+\r
+ <test ID="loanout1" auth="test">\r
+ <method>POST</method>\r
+ <uri>/cspace-services/loansout/</uri>\r
+ <filename>authrefs/loanout.xml</filename>\r
+ <vars>\r
+ <var ID="loannum">42</var>\r
+ <var ID="person">${Person1.CSID}</var>\r
+ </vars>\r
+ </test>\r
+\r
+ <test ID="loanout2" auth="test">\r
+ <method>POST</method>\r
+ <uri>/cspace-services/loansout/</uri>\r
+ <filename>authrefs/loanout.xml</filename>\r
+ <vars>\r
+ <var ID="loannum">69</var>\r
+ <var ID="person">${Person2.CSID}</var>\r
+ </vars>\r
+ </test>\r
+\r
+ <test ID="UpdatePerson1">\r
+ <method>PUT</method>\r
+ <uri>/cspace-services/personauthorities/${PersonAuth1.CSID}/items/${Person1.CSID}</uri>\r
+ <filename>authrefs/updatePerson1.xml</filename>\r
+ </test>\r
+\r
+ <test ID="UpdatePerson2">\r
+ <method>PUT</method>\r
+ <uri>/cspace-services/personauthorities/${PersonAuth1.CSID}/items/${Person2.CSID}</uri>\r
+ <filename>authrefs/updatePerson2.xml</filename>\r
+ </test>\r
+ </testGroup>\r
+\r
+</xmlReplay>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<document name="loansout">
+ <ns2:loansout_common xmlns:ns2="http://collectionspace.org/services/loanout" xmlns:ns3="http://collectionspace.org/services/jaxb">
+ <loanOutNumber>loanoutNumber-${loannum}</loanOutNumber>
+ <borrowersContact>${person}</borrowersContact>
+ <loanedObjectStatusGroupList>
+ <loanedObjectStatusGroup>
+ <loanedObjectStatus>returned</loanedObjectStatus>
+ <loanedObjectStatusNote>Left under the front mat.</loanedObjectStatusNote>
+ </loanedObjectStatusGroup>
+ </loanedObjectStatusGroupList>
+ <loanPurpose>Allow people in cold climes to share the magic of Surfboards of the 1960s.</loanPurpose>
+ </ns2:loansout_common>
+</document>
+
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
+<document name="persons">\r
+ <ns2:persons_common xmlns:ns2="http://collectionspace.org/services/person" xmlns:ns3="http://collectionspace.org/services/jaxb">\r
+ <shortIdentifier>connieContactPerson</shortIdentifier>\r
+ <displayNameComputed>true</displayNameComputed>\r
+ <foreName>Connie</foreName>\r
+ <surName>ContactPerson</surName>\r
+ </ns2:persons_common>\r
+</document>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
+<document name="persons">\r
+ <ns2:persons_common xmlns:ns2="http://collectionspace.org/services/person" xmlns:ns3="http://collectionspace.org/services/jaxb">\r
+ <shortIdentifier>debbieDoNothingPerson</shortIdentifier>\r
+ <displayNameComputed>true</displayNameComputed>\r
+ <foreName>Debbie</foreName>\r
+ <surName>DoNothingPerson</surName>\r
+ </ns2:persons_common>\r
+</document>\r
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
-<ns2:personauthorities_common xmlns:ns2="http://collectionspace.org/services/person" xmlns:ns3="http://collectionspace.org/services/jaxb">\r
-<displayName>TestPersonAuth</displayName>\r
-<shortIdentifier>TestPersonAuth</shortIdentifier>\r
-<refName>urn:cspace:org.collectionspace.demo:personauthority:name(TestPersonAuth)'TestPersonAuth'</refName>\r
-<vocabType>PersonAuthority</vocabType>\r
-</ns2:personauthorities_common>
\ No newline at end of file
+<document name="personauthorities">\r
+ <ns2:personauthorities_common xmlns:ns2="http://collectionspace.org/services/person" xmlns:ns3="http://collectionspace.org/services/jaxb">\r
+ <displayName>TestPersonAuth</displayName>\r
+ <shortIdentifier>TestPersonAuth</shortIdentifier>\r
+ <vocabType>PersonAuthority</vocabType>\r
+ </ns2:personauthorities_common>\r
+</document>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
+<document name="persons">\r
+ <ns2:persons_common xmlns:ns2="http://collectionspace.org/services/person" xmlns:ns3="http://collectionspace.org/services/jaxb">\r
+ <shortIdentifier>connieContactPerson</shortIdentifier>\r
+ <displayNameComputed>true</displayNameComputed>\r
+ <foreName>Connie</foreName>\r
+ <surName>ContactPersonlity</surName>\r
+ </ns2:persons_common>\r
+</document>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
+<document name="persons">\r
+ <ns2:persons_common xmlns:ns2="http://collectionspace.org/services/person" xmlns:ns3="http://collectionspace.org/services/jaxb">\r
+ <shortIdentifier>debbieDoNothingPerson</shortIdentifier>\r
+ <displayNameComputed>true</displayNameComputed>\r
+ <foreName>Debbie</foreName>\r
+ <surName>Do Nothing Personality</surName>\r
+ </ns2:persons_common>\r
+</document>\r