From 04c8eca491b439125002a2a905e76b4599b286e8 Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Tue, 8 Jan 2013 14:31:28 -0800 Subject: [PATCH] CSPACE-5728: Updated XmlReplay-based tests to verify that correct computedCurrentLocation value is present in CollectionObject record, following invocation of batch job. --- ...l => batch-invoke-updateobjloc-single.xml} | 0 .../batch/batch-update-object-loc.xml | 21 +++++++++++++++++-- .../batch/res/collectionobject.res.xml | 9 ++++++++ 3 files changed, 28 insertions(+), 2 deletions(-) rename services/IntegrationTests/src/test/resources/test-data/xmlreplay/batch/{batch-invoke-updateobjloc.xml => batch-invoke-updateobjloc-single.xml} (100%) create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/batch/res/collectionobject.res.xml diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/batch/batch-invoke-updateobjloc.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/batch/batch-invoke-updateobjloc-single.xml similarity index 100% rename from services/IntegrationTests/src/test/resources/test-data/xmlreplay/batch/batch-invoke-updateobjloc.xml rename to services/IntegrationTests/src/test/resources/test-data/xmlreplay/batch/batch-invoke-updateobjloc-single.xml diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/batch/batch-update-object-loc.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/batch/batch-update-object-loc.xml index 63b308b5a..1e306a611 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/batch/batch-update-object-loc.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/batch/batch-update-object-loc.xml @@ -7,7 +7,7 @@ - + POST @@ -34,6 +34,10 @@ 201 + + + + POST /cspace-services/movements @@ -100,16 +104,29 @@ POST /cspace-services/batch/${createBatchRecord.CSID} - batch/batch-invoke-updateobjloc.xml + batch/batch-invoke-updateobjloc-single.xml ${createCollectionObject.CSID} + 200 + + + + GET /cspace-services/collectionobjects/${createCollectionObject.CSID} batch/updateobjloc.xml + + + batch/res/collectionobject.res.xml + + ${createMovement2.currentLocation} + + + 200 diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/batch/res/collectionobject.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/batch/res/collectionobject.res.xml new file mode 100644 index 000000000..865d89797 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/batch/res/collectionobject.res.xml @@ -0,0 +1,9 @@ + + + + + ${computedCurrentLocationValue} + + + \ No newline at end of file -- 2.47.3