From: Aron Roberts Date: Wed, 16 Jan 2013 20:19:35 +0000 (-0800) Subject: CSPACE-5764: Initial add of XmlReplay-based tests of the updateobjectlocationonmove... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=01e7b468bedd9948ddbaa906d434f07bd068807b;p=tmp%2Fjakarta-migration.git CSPACE-5764: Initial add of XmlReplay-based tests of the updateobjectlocationonmove event listener / handler. --- diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/listener/collectionobject.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/listener/collectionobject.xml new file mode 100644 index 000000000..b3e87411c --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/listener/collectionobject.xml @@ -0,0 +1,7 @@ + + + + objectNumber + + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/listener/listener-update-object-loc.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/listener/listener-update-object-loc.xml new file mode 100644 index 000000000..aef4fcb72 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/listener/listener-update-object-loc.xml @@ -0,0 +1,370 @@ + + + + + YWRtaW5AY29yZS5jb2xsZWN0aW9uc3BhY2Uub3JnOkFkbWluaXN0cmF0b3I= + + + + + + + + POST + /cspace-services/collectionobjects + listener/collectionobject.xml + 201 + + + + POST + /cspace-services/collectionobjects + listener/collectionobject.xml + 201 + + + + POST + /cspace-services/movements + listener/movement.xml + + urn:cspace:core.collectionspace.org:locationauthorities:name(offsite_sla):item:name(Seattle1358215545509)'Seattle, WA, USA' + 1650-01-01 + + 201 + + + + POST + /cspace-services/movements + listener/movement.xml + + urn:cspace:core.collectionspace.org:locationauthorities:name(offsite_sla):item:name(Portland1358215545512)'Portland, OR, USA' + 1700-01-01 + + 201 + + + + POST + /cspace-services/movements + listener/movement.xml + + urn:cspace:core.collectionspace.org:locationauthorities:name(offsite_sla):item:name(Victoria1358215545515)'Victoria, BC, Canada' + 1800-01-01 + + 201 + + + + POST + /cspace-services/movements + listener/movement.xml + + urn:cspace:core.collectionspace.org:locationauthorities:name(offsite_sla):item:name(Vancouver1358215545518)'Vancouver, BC, Canada' + 1900-01-01 + + 201 + + + + POST + /cspace-services/movements + listener/movement.xml + + urn:cspace:core.collectionspace.org:locationauthorities:name(offsite_sla):item:name(Olympia1358215545521)'Olympia, WA, USA' + 2000-01-01 + + 201 + + + + POST + /cspace-services/relations + listener/relation.xml + + ${createCollectionObject1.CSID} + CollectionObject + ${createMovement1.CSID} + Movement + + 201 + + + + POST + /cspace-services/relations + listener/relation.xml + + ${createCollectionObject2.CSID} + CollectionObject + ${createMovement1.CSID} + Movement + + 201 + + + + + + + + + + PUT + /cspace-services/movements/${createMovement1.CSID} + listener/movement.xml + + urn:cspace:core.collectionspace.org:locationauthorities:name(offsite_sla):item:name(Seattle1358215545509)'Seattle, WA, USA' + 1650-02-01 + + 200 + + + + GET + /cspace-services/collectionobjects/${createCollectionObject1.CSID} + + + listener/res/collectionobject.res.xml + + ${createMovement1.currentLocation} + + + 200 + + + + GET + /cspace-services/collectionobjects/${createCollectionObject2.CSID} + + + listener/res/collectionobject.res.xml + + ${createMovement1.currentLocation} + + + 200 + + + + POST + /cspace-services/relations + listener/relation.xml + + ${createMovement2.CSID} + Movement + ${createCollectionObject1.CSID} + CollectionObject + + 201 + + + + PUT + /cspace-services/movements/${createMovement2.CSID} + listener/movement.xml + + urn:cspace:core.collectionspace.org:locationauthorities:name(offsite_sla):item:name(Portland1358215545512)'Portland, OR, USA' + 1700-02-01 + + 200 + + + + GET + /cspace-services/collectionobjects/${createCollectionObject1.CSID} + + + listener/res/collectionobject.res.xml + + ${createMovement2.currentLocation} + + + 200 + + + + POST + /cspace-services/relations + listener/relation.xml + + ${createMovement3.CSID} + Movement + ${createCollectionObject1.CSID} + CollectionObject + + 201 + + + + PUT + /cspace-services/movements/${createMovement2.CSID} + listener/movement.xml + + urn:cspace:core.collectionspace.org:locationauthorities:name(offsite_sla):item:name(Victoria1358215545515)'Victoria, BC, Canada' + 1800-02-01 + + 200 + + + + GET + /cspace-services/collectionobjects/${createCollectionObject1.CSID} + + + listener/res/collectionobject.res.xml + + ${createMovement3.currentLocation} + + + 200 + + + + POST + /cspace-services/relations + listener/relation.xml + + ${createCollectionObject1.CSID} + CollectionObject + ${createMovement4.CSID} + Movement + + 201 + + + + POST + /cspace-services/relations + listener/relation.xml + + ${createCollectionObject1.CSID} + CollectionObject + ${createMovement5.CSID} + Movement + + 201 + + + + PUT + /cspace-services/movements/${createMovement5.CSID} + listener/movement.xml + + urn:cspace:core.collectionspace.org:locationauthorities:name(offsite_sla):item:name(Olympia1358215545521)'Olympia, WA, USA' + 2000-02-02 + + 200 + + + + GET + /cspace-services/collectionobjects/${createCollectionObject1.CSID} + + + listener/res/collectionobject.res.xml + + ${createMovement5.currentLocation} + + + 200 + + + + + + + + PUT + /cspace-services/relations/${relateCollectionObject1ToMovement5.CSID}/workflow/delete + 200 + relation/res/workflowState.res.xml + + deleted + + + + + GET + /cspace-services/collectionobjects/${createCollectionObject1.CSID} + + + listener/res/collectionobject.res.xml + + ${createMovement4.currentLocation} + + + 200 + + + + DELETE + /cspace-services/relations/${relateCollectionObject1ToMovement4.CSID} + 200 + + + + GET + /cspace-services/collectionobjects/${createCollectionObject1.CSID} + + + listener/res/collectionobject.res.xml + + ${createMovement3.currentLocation} + + + 200 + + + + PUT + /cspace-services/movements/${createMovement3.CSID}/workflow/delete + 200 + + + + + + relation/res/workflowState.res.xml + + deleted + + + + + GET + /cspace-services/collectionobjects/${createCollectionObject1.CSID} + + + listener/res/collectionobject.res.xml + + ${createMovement2.currentLocation} + + + 200 + + + + DELETE + /cspace-services/movements/${createMovement2.CSID} + 200 + + + + GET + /cspace-services/collectionobjects/${createCollectionObject1.CSID} + + + listener/res/collectionobject.res.xml + + ${createMovement1.currentLocation} + + + 200 + + + + + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/listener/movement.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/listener/movement.xml new file mode 100644 index 000000000..42a88b127 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/listener/movement.xml @@ -0,0 +1,12 @@ + + + + + ${currentLocation} + ${locationDate} + + + + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/listener/relation.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/listener/relation.xml new file mode 100644 index 000000000..35236479b --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/listener/relation.xml @@ -0,0 +1,14 @@ + + + + ${subjectCsid} + ${subjectDocumentType} + ${objectCsid} + ${objectDocumentType} + affects + + + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/listener/res/collectionobject.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/listener/res/collectionobject.res.xml new file mode 100644 index 000000000..865d89797 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/listener/res/collectionobject.res.xml @@ -0,0 +1,9 @@ + + + + + ${computedCurrentLocationValue} + + + \ No newline at end of file