--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<xmlReplayMaster>\r
+ <!-- \r
+ This file contains all possible tests, in various stages of readiness, \r
+ as noted below in comments. Files not commented out should work.\r
+ \r
+ Important. You can't run or source this file. It is just for reference \r
+ and a storage place to put these tests, so they can be copied into dev-master.xml\r
+ \r
+ Keep this file updated with all possible tests, so that dev-master.xml can be clean.\r
+ \r
+ Keep xml-replay-master.xml updated with all tests that should run on nightly.\r
+ -->\r
+ <!--\r
+ <run controlFile="loanin/loanin.xml" testGroup="makeone" />\r
+ \r
+ <run controlFile="objectexit/object-exit.xml" testGroup="CRUDL" /> \r
+ <run controlFile="objectexit/object-exit.xml" testGroup="domwalk" />\r
+ <run controlFile="objectexit/object-exit.xml" testGroup="repeat" />\r
+ <run controlFile="objectexit/object-exit.xml" testGroup="domlist" />\r
+ <run controlFile="objectexit/object-exit.xml" testGroup="authrefs" />\r
+ <run controlFile="objectexit/object-exit.xml" testGroup="cleanup" />\r
+ <run controlFile="objectexit/object-exit.xml" testGroup="makeone" />\r
+ \r
+ <run controlFile="acquisitions/acquisitions.xml" testGroup="makeone" />\r
+ <run controlFile="acquisitions/acquisitions.xml" testGroup="testList" />\r
+ \r
+ <run controlFile="media/media.xml" testGroup="authrefs" />\r
+ \r
+ <run controlFile="objectexit/object-exit.xml" testGroup="authrefs" />\r
+ <run controlFile="objectexit/object-exit.xml" testGroup="authrefs" />\r
+ <run controlFile="acquisitions/acquisitions.xml" testGroup="makeone" />\r
+ -->\r
+ \r
+ \r
+ <!--\r
+ Used to verify CSPACE-3178\r
+ <run controlFile="objectexit/object-exit-display.xml" testGroup="refNameDisplayNameOnly" />\r
+ -->\r
+ \r
+ <!--\r
+ Used to measure timings of 1000 records for CSPACE-3553\r
+ <run controlFile="objectexit/object-exit-LOOP.xml" testGroup="LOOP" />\r
+ -->\r
+ \r
+ <!--\r
+ <run controlFile="objectexit/object-exit.xml" testGroup="makeone" />\r
+ <run controlFile="relation/relation.xml" testGroup="makeRelations" />\r
+ <run controlFile="person/person.xml" testGroup="person" />\r
+ <run controlFile="person/person.xml" testGroup="addOnePerson" />\r
+ \r
+ <run controlFile="person/person.xml" testGroup="updatePerson" />\r
+ <run controlFile="person/person.xml" testGroup="updatePerson" />\r
+ <run controlFile="relation/relation.xml" testGroup="makeRelations" />\r
+ \r
+ <run controlFile="person/person.xml" testGroup="updatePerson" autoDeletePOSTS="true" />\r
+ <run controlFile="person/person.xml" testGroup="updatePerson" autoDeletePOSTS="true" />\r
+ \r
+ <run controlFile="person/person.xml" testGroup="postPerson" />\r
+ <run controlFile="relation/relation.xml" testGroup="makeRelationsNested" />\r
+ -->\r
+ \r
+ <!-- TODO: this almost works now:\r
+ <run controlFile="./security.xml" testGroup="security" />\r
+ --> \r
+ \r
+ \r
+ <!-- TODO: make this an override: autoDeletePOSTS="true"-->\r
+\r
+ \r
+ <!-- These all work with POX: -->\r
+ <run controlFile="./security.xml" testGroup="deleteBug" />\r
+ <run controlFile="objectexit/object-exit.xml" testGroup="makeone" />\r
+ <run controlFile="relation/relation.xml" testGroup="r2only" />\r
+ <run controlFile="person/person.xml" testGroup="postPerson" />\r
+ <run controlFile="objectexit/object-exit-display.xml" testGroup="refNameDisplayNameOnly" />\r
+ <run controlFile="acquisitions/acquisitions.xml" testGroup="makeone" />\r
+ <run controlFile="acquisitions/acquisitions.xml" testGroup="testList" />\r
+ <run controlFile="loanout/loanout.xml" testGroup="makeone" />\r
+ <run controlFile="objectexit/object-exit.xml" testGroup="checkList" />\r
+ <run controlFile="person/person.xml" testGroup="postPerson" />\r
+ \r
+ <run controlFile="relation/relation.xml" testGroup="makeRelations" />\r
+ <run controlFile="relation/relation.xml" testGroup="r2only" />\r
+ <run controlFile="person/person.xml" testGroup="postPerson" />\r
+ <run controlFile="person/person.xml" testGroup="updatePerson" />\r
+ <run controlFile="organization/organization-hierarchy.xml" testGroup="HierarchicOrganization" />\r
+ <run controlFile="location/location-hierarchy.xml" testGroup="HierarchicLocation" />\r
+ <run controlFile="person/person.xml" testGroup="PersonAddRelsDeleteRels" />\r
+ \r
+</xmlReplayMaster>\r
+\r
<xmlReplayMaster>\r
<!-- Use this file to drive local testing. \r
To run this file, do: \r
- cd C:\src\trunk\services\IntegrationTests\r
+ cd trunk/services/IntegrationTests\r
mvn test -Dtest=XmlReplayDevTest\r
- Maven surefire will kick off XmlReplayDevTest, so see the note\r
- below about not leaving any active testGroups enabled in this file\r
- when you check it in.\r
+ Maven surefire will kick off XmlReplayDevTest.\r
+ \r
+ IMPORTANT :: DO NOT CHECK THIS FILE IN WITH ANY TESTS ACTIVE BELOW.\r
+ Make sure all tests are commented out, or better yet, moved to dev-all.xml .\r
+ This file should be modified locally and used instead of xml-replay-master.xml\r
+ when you are developing. This file can be used to point at a controlFile \r
+ and a testGroup, so you can test just one thing at a time, or a limited suite.\r
+ \r
+ You can find other tests to run in two places:\r
+ The tests that get run on nightly: \r
+ xml-replay-master.xml\r
+ The set of possible tests, including ones that don't work:\r
+ dev-all.xml\r
-->\r
- <!--<protoHostPort>http://173.45.245.189:8180</protoHostPort>-->\r
- <protoHostPort>http://localhost:8180</protoHostPort>\r
+ <protoHostPort>http://localhost:8280</protoHostPort>\r
\r
<!-- legal values for dumpServiceResult=[minimal,detailed,full,auto] -->\r
- <dump payloads="false" dumpServiceResult="auto" />\r
+ <dump payloads="false" dumpServiceResult="detailed" />\r
\r
<auths default="admin@collectionspace.org">\r
<auth ID="admin@collectionspace.org">YWRtaW5AY29sbGVjdGlvbnNwYWNlLm9yZzpBZG1pbmlzdHJhdG9y</auth>\r
</auths>\r
-\r
- <!-- IMPORTANT :: DO NOT CHECK THIS FILE IN WITH ANY TESTS ACTIVE BELOW.\r
- Make sure all tests are commented out.\r
- This file should be modified locally and used instead of xml-replay-master.xml\r
- when you are developing. This file can be used to point at a controlFile \r
- and a testGroup, so you can test just one thing at a time, or a limited suite.\r
- -->\r
- \r
- <!--\r
- <run controlFile="loanin/loanin.xml" testGroup="makeone" />\r
- \r
- <run controlFile="objectexit/object-exit.xml" testGroup="CRUDL" /> \r
- <run controlFile="objectexit/object-exit.xml" testGroup="domwalk" />\r
- <run controlFile="objectexit/object-exit.xml" testGroup="repeat" />\r
- <run controlFile="objectexit/object-exit.xml" testGroup="domlist" />\r
- <run controlFile="objectexit/object-exit.xml" testGroup="authrefs" />\r
- <run controlFile="objectexit/object-exit.xml" testGroup="cleanup" />\r
- <run controlFile="objectexit/object-exit.xml" testGroup="makeone" />\r
- \r
- <run controlFile="acquisitions/acquisitions.xml" testGroup="makeone" />\r
- <run controlFile="acquisitions/acquisitions.xml" testGroup="testList" />\r
- \r
- <run controlFile="media/media.xml" testGroup="authrefs" />\r
- \r
- <run controlFile="objectexit/object-exit.xml" testGroup="authrefs" />\r
- <run controlFile="objectexit/object-exit.xml" testGroup="authrefs" />\r
- <run controlFile="acquisitions/acquisitions.xml" testGroup="makeone" />\r
- -->\r
- \r
- \r
- <!--\r
- Used to verify CSPACE-3178\r
- <run controlFile="objectexit/object-exit-display.xml" testGroup="refNameDisplayNameOnly" />\r
- -->\r
- \r
- <!--\r
- Used to measure timings of 1000 records for CSPACE-3553\r
- <run controlFile="objectexit/object-exit-LOOP.xml" testGroup="LOOP" />\r
- -->\r
- \r
- <!--\r
- <run controlFile="objectexit/object-exit.xml" testGroup="makeone" />\r
- <run controlFile="relation/relation.xml" testGroup="makeRelations" />\r
- <run controlFile="person/person.xml" testGroup="person" />\r
- <run controlFile="person/person.xml" testGroup="addOnePerson" />\r
- \r
- <run controlFile="person/person.xml" testGroup="updatePerson" />\r
- <run controlFile="person/person.xml" testGroup="updatePerson" />\r
- <run controlFile="relation/relation.xml" testGroup="makeRelations" />\r
- \r
- <run controlFile="person/person.xml" testGroup="updatePerson" autoDeletePOSTS="true" />\r
- <run controlFile="person/person.xml" testGroup="updatePerson" autoDeletePOSTS="true" />\r
- \r
- <run controlFile="person/person.xml" testGroup="postPerson" />\r
- <run controlFile="relation/relation.xml" testGroup="makeRelationsNested" />\r
- -->\r
- \r
- <!-- TODO: this almost works now:\r
- <run controlFile="./security.xml" testGroup="security" />\r
- --> \r
- \r
- \r
- <!-- TODO: make this an override: autoDeletePOSTS="true"-->\r
-\r
- \r
- <!-- These all work with POX:\r
- <run controlFile="./security.xml" testGroup="deleteBug" />\r
- <run controlFile="objectexit/object-exit.xml" testGroup="makeone" />\r
- <run controlFile="relation/relation.xml" testGroup="r2only" />\r
- <run controlFile="person/person.xml" testGroup="postPerson" />\r
- <run controlFile="objectexit/object-exit-display.xml" testGroup="refNameDisplayNameOnly" />\r
- <run controlFile="acquisitions/acquisitions.xml" testGroup="makeone" />\r
- <run controlFile="acquisitions/acquisitions.xml" testGroup="testList" />\r
- <run controlFile="loanout/loanout.xml" testGroup="makeone" />\r
- <run controlFile="objectexit/object-exit.xml" testGroup="checkList" />\r
- <run controlFile="person/person.xml" testGroup="postPerson" />\r
- \r
- <run controlFile="relation/relation.xml" testGroup="makeRelations" />\r
- <run controlFile="relation/relation.xml" testGroup="r2only" />\r
- <run controlFile="person/person.xml" testGroup="postPerson" />\r
- <run controlFile="person/person.xml" testGroup="updatePerson" />\r
- <run controlFile="organization/organization-hierarchy.xml" testGroup="HierarchicOrganization" />\r
- <run controlFile="location/location-hierarchy.xml" testGroup="HierarchicLocation" />\r
- --> \r
- \r
\r
- \r
+ <run controlFile="person/person.xml" testGroup="PersonAddRelsDeleteRels" />\r
\r
\r
</xmlReplayMaster>\r
</test>\r
\r
</testGroup>\r
+ \r
+ <testGroup ID="PersonAddRelsDeleteRels" autoDeletePOSTS="true">\r
+ <test ID="PersonAuth1" auth="admin@collectionspace.org">\r
+ <method>POST</method>\r
+ <uri>/cspace-services/personauthorities/</uri>\r
+ <filename>person/personauthorities_common.xml</filename>\r
+ <vars>\r
+ <var ID="authShortIdentifier">CSPACE3739PersonAuthority</var>\r
+ </vars>\r
+ </test>\r
+ \r
+ <test ID="PersonChild">\r
+ <method>POST</method>\r
+ <uri>/cspace-services/personauthorities/urn:cspace:name(CSPACE3739PersonAuthority)/items/</uri>\r
+ <filename>person/persons_common.xml</filename>\r
+ <vars>\r
+ <var ID="inAuthority">${PersonAuth1.CSID}</var>\r
+ <var ID="authShortIdentifier">CSPACE3739PersonAuthority</var>\r
+ <var ID="shortIdentifier">johnWayneActorChild</var>\r
+ </vars>\r
+ </test>\r
+ \r
+ <test ID="PersonChild2">\r
+ <method>POST</method>\r
+ <uri>/cspace-services/personauthorities/urn:cspace:name(CSPACE3739PersonAuthority)/items/</uri>\r
+ <filename>person/persons_common.xml</filename>\r
+ <vars>\r
+ <var ID="inAuthority">${PersonAuth1.CSID}</var>\r
+ <var ID="authShortIdentifier">CSPACE3739PersonAuthority</var>\r
+ <var ID="shortIdentifier">johnWayneActorChild2</var>\r
+ </vars>\r
+ </test>\r
+ \r
+ <test ID="Person1">\r
+ <method>POST</method>\r
+ <uri>/cspace-services/personauthorities/urn:cspace:name(CSPACE3739PersonAuthority)/items/</uri>\r
+ <filename>person/persons_common_w_relations_POST.xml</filename>\r
+ <vars>\r
+ <var ID="inAuthority">${PersonAuth1.CSID}</var>\r
+ <var ID="authShortIdentifier">CSPACE3739PersonAuthority</var>\r
+ <var ID="shortIdentifier">johnWayneActor</var>\r
+ <var ID="childCSID">${PersonChild.CSID}</var>\r
+ <var ID="childUri">/cspace-services/personauthorities/urn:cspace:name(CSPACE3739PersonAuthority)/items/${PersonChild.CSID}</var>\r
+ <var ID="child2CSID">${PersonChild2.CSID}</var>\r
+ <var ID="child2Uri">/cspace-services/personauthorities/urn:cspace:name(CSPACE3739PersonAuthority)/items/${PersonChild2.CSID}</var>\r
+ </vars>\r
+ </test>\r
+ \r
+ <test ID="GETpostPerson">\r
+ <method>GET</method>\r
+ <uri>/cspace-services/personauthorities/urn:cspace:name(CSPACE3739PersonAuthority)/items/${Person1.CSID}?showRelations=true</uri>\r
+ </test>\r
+ \r
+ <test ID="GETPersonAuthorityList">\r
+ <method>GET</method>\r
+ <uri>/cspace-services/personauthorities/urn:cspace:name(CSPACE3739PersonAuthority)/items/</uri>\r
+ </test>\r
+ \r
+ <test ID="Person1DeleteRels">\r
+ <method>PUT</method>\r
+ <uri>/cspace-services/personauthorities/urn:cspace:name(CSPACE3739PersonAuthority)/items/${Person1.CSID}</uri>\r
+ <filename>person/persons_common_delete_relations_PUT.xml</filename>\r
+ <vars>\r
+ <var ID="inAuthority">${PersonAuth1.CSID}</var>\r
+ <var ID="authShortIdentifier">CSPACE3739PersonAuthority</var>\r
+ <var ID="shortIdentifier">johnWayneActor</var>\r
+ <var ID="childCSID">${PersonChild.CSID}</var>\r
+ <var ID="childUri">/cspace-services/personauthorities/urn:cspace:name(CSPACE3739PersonAuthority)/items/${PersonChild.CSID}</var>\r
+ </vars>\r
+ </test>\r
+ \r
+ <test ID="GETPerson_afterDeleteOneChild">\r
+ <method>GET</method>\r
+ <uri>/cspace-services/personauthorities/urn:cspace:name(CSPACE3739PersonAuthority)/items/${Person1.CSID}?showRelations=true</uri>\r
+ </test>\r
+ \r
+ \r
+ <test ID="Person1DeleteAllRels">\r
+ <method>PUT</method>\r
+ <uri>/cspace-services/personauthorities/urn:cspace:name(CSPACE3739PersonAuthority)/items/${Person1.CSID}</uri>\r
+ <filename>person/persons_common_delete_all_relations_PUT.xml</filename>\r
+ <vars>\r
+ <var ID="inAuthority">${PersonAuth1.CSID}</var>\r
+ <var ID="authShortIdentifier">CSPACE3739PersonAuthority</var>\r
+ <var ID="shortIdentifier">johnWayneActor</var>\r
+ </vars>\r
+ </test>\r
+ \r
+ <test ID="GETPerson_afterDeleteAllRelations">\r
+ <method>GET</method>\r
+ <uri>/cspace-services/personauthorities/${PersonAuth1.CSID}/items/${Person1.CSID}?showRelations=true</uri>\r
+ </test>\r
+ \r
+ \r
+\r
+ </testGroup>\r
+ \r
</xmlReplay>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<document name="persons">\r
+ <ns2:persons_common xmlns:ns2="http://collectionspace.org/services/person" xmlns:ns3="http://collectionspace.org/services/jaxb">\r
+ <inAuthority>${inAuthority}</inAuthority>\r
+ <shortIdentifier>${shortIdentifier}</shortIdentifier>\r
+ <refName>urn:cspace:org.collectionspace.demo:personauthority:name(${authShortIdentifier}):person:name(${shortIdentifier})'John Wayne'</refName>\r
+ <displayName>John Wayne</displayName>\r
+ <displayNameComputed>false</displayNameComputed>\r
+ <shortDisplayName>JohnWayne</shortDisplayName>\r
+ <shortDisplayNameComputed>false</shortDisplayNameComputed>\r
+ <foreName>John</foreName>\r
+ <surName>Wayne</surName>\r
+ <birthDate>May 26, 1907</birthDate>\r
+ <deathDate>June 11, 1979</deathDate>\r
+ <birthPlace>Winterset, Iowa</birthPlace>\r
+ <groups>\r
+ <group>Irish</group>\r
+ <group>Scottish</group>\r
+ </groups>\r
+ <gender>male</gender>\r
+ <bioNote>born Marion Robert Morrison and betterknown by his stage name John Wayne, was an American film actor, director and producer. He epitomized rugged masculinity and has become an enduring American icon. He is famous for his distinctive\r
+ voice, walk and height. He was also known for his conservative political views and his support in the 1950s for anti-communist positions.</bioNote>\r
+ </ns2:persons_common>\r
+ <!-- \r
+ WARNING: ${itemCSID} does NOT get expanded by XmlReplay. \r
+ It passes through and then the service deals with it.\r
+ -->\r
+ <ns3:relations-common-list xmlns:ns3="http://collectionspace.org/services/relation" xmlns:ns2="http://collectionspace.org/services/jaxb">\r
+ </ns3:relations-common-list>\r
+</document>\r
+\r
+\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<document name="persons">\r
+ <ns2:persons_common xmlns:ns2="http://collectionspace.org/services/person" xmlns:ns3="http://collectionspace.org/services/jaxb">\r
+ <inAuthority>${inAuthority}</inAuthority>\r
+ <shortIdentifier>${shortIdentifier}</shortIdentifier>\r
+ <refName>urn:cspace:org.collectionspace.demo:personauthority:name(${authShortIdentifier}):person:name(${shortIdentifier})'John Wayne'</refName>\r
+ <displayName>John Wayne</displayName>\r
+ <displayNameComputed>false</displayNameComputed>\r
+ <shortDisplayName>JohnWayne</shortDisplayName>\r
+ <shortDisplayNameComputed>false</shortDisplayNameComputed>\r
+ <foreName>John</foreName>\r
+ <surName>Wayne</surName>\r
+ <birthDate>May 26, 1907</birthDate>\r
+ <deathDate>June 11, 1979</deathDate>\r
+ <birthPlace>Winterset, Iowa</birthPlace>\r
+ <groups>\r
+ <group>Irish</group>\r
+ <group>Scottish</group>\r
+ </groups>\r
+ <gender>male</gender>\r
+ <bioNote>born Marion Robert Morrison and betterknown by his stage name John Wayne, was an American film actor, director and producer. He epitomized rugged masculinity and has become an enduring American icon. He is famous for his distinctive\r
+ voice, walk and height. He was also known for his conservative political views and his support in the 1950s for anti-communist positions.</bioNote>\r
+ </ns2:persons_common>\r
+ <!-- \r
+ WARNING: ${itemCSID} does NOT get expanded by XmlReplay. \r
+ It passes through and then the service deals with it.\r
+ -->\r
+ <ns3:relations-common-list xmlns:ns3="http://collectionspace.org/services/relation" xmlns:ns2="http://collectionspace.org/services/jaxb">\r
+ <relation-list-item>\r
+ <predicate>hasBroader</predicate>\r
+ <subject>\r
+ <csid>${childCSID}</csid>\r
+ <uri>${childUri}</uri>\r
+ <documentType>Person</documentType>\r
+ <name>John Wayne 1, the evil twin, child</name>\r
+ </subject>\r
+ <object>\r
+ <csid>${itemCSID}</csid>\r
+ <documentType>Person</documentType>\r
+ <name>John Wayne</name>\r
+ </object>\r
+ </relation-list-item>\r
+ </ns3:relations-common-list>\r
+</document>\r
+\r
+\r
<run controlFile="relation/relation.xml" testGroup="r2only" />\r
<run controlFile="person/person.xml" testGroup="postPerson" />\r
<run controlFile="person/person.xml" testGroup="updatePerson" />\r
+ <run controlFile="person/person.xml" testGroup="PersonAddRelsDeleteRels" />\r
<run controlFile="location/location-hierarchy.xml" testGroup="HierarchicLocation" />\r
<run controlFile="organization/organization-hierarchy.xml" testGroup="HierarchicOrganization" />\r
\r