From: Aron Roberts Date: Tue, 21 Apr 2015 05:04:32 +0000 (-0700) Subject: CSPACE-5793: Integrated tests of hard deletion, confirming that computedCurrentLocati... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=369a8c425f51c709be548e880ec41016e1f2987c;p=tmp%2Fjakarta-migration.git CSPACE-5793: Integrated tests of hard deletion, confirming that computedCurrentLocation is updated correctly after deleting relations and movements. --- 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 index dd4eb773c..ec0826a76 100644 --- 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 @@ -135,12 +135,12 @@ 200 - - - - - - + PUT /cspace-services/movements/${createMovement1.CSID} @@ -224,7 +224,7 @@ listener/res/collectionobject.res.xml - ${createMovement2.currentLocation} + ${updateMovement2.currentLocation} 200 @@ -242,6 +242,21 @@ 201 + + GET + /cspace-services/relations/${relateMovement3ToCollectionObject1.CSID} + + + listener/res/relation.res.xml + + ${createMovement3.CSID} + Movement + ${createCollectionObject1.CSID} + CollectionObject + + + 200 + PUT @@ -338,7 +353,7 @@ 200 - + GET /cspace-services/collectionobjects/${createCollectionObject1.CSID} @@ -381,11 +396,11 @@ PUT - /cspace-services/movements/${createMovement2.CSID} + /cspace-services/movements/${createMovement3.CSID} listener/movement.xml - 1800-02-01 + 1800-02-02 200 @@ -413,15 +428,29 @@ PUT - /cspace-services/movements/${createMovement2.CSID} + /cspace-services/movements/${createMovement3.CSID} listener/movement.xml urn:cspace:core.collectionspace.org:locationauthorities:name(offsite_sla):item:name(Ottawa1358215545567)'Ottawa, ON, Canada' - 1800-02-01 + 1800-02-03 200 - + + GET + /cspace-services/movements/${createMovement3.CSID} + listener/movement.xml + + + listener/res/movement.res.xml + + ${updateMovement3WithNonBlankCurrentLocation.currentLocation} + ${updateMovement3WithNonBlankCurrentLocation.got("//locationDate")} + + + 200 + + GET /cspace-services/collectionobjects/${createCollectionObject1.CSID} @@ -435,6 +464,46 @@ 200 + + + + DELETE + /cspace-services/relations/${relateMovement3ToCollectionObject1.CSID} + 200 + + + + 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 + + @@ -626,50 +695,5 @@ - - - - - - - DELETE - /cspace-services/relations/${relateCollectionObject1ToMovement3.CSID} - 200 - - - - 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/res/relation.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/listener/res/relation.res.xml new file mode 100644 index 000000000..473f93120 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/listener/res/relation.res.xml @@ -0,0 +1,13 @@ + + + + ${subjectCsid} + ${subjectDocumentType} + ${objectCsid} + ${objectDocumentType} + affects + + +