From ed85c252bf6877fbc31eedec58bb386f9fdf8397 Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Wed, 12 Sep 2012 18:20:34 -0700 Subject: [PATCH] CSPACE-5522: Clean up all relation records created by XmlReplay-based tests of structured objects. Set autoDeletePOSTS=true to delete all CollectionObject records created by these tests, as well. Remove one duplicate test, resulting from previous move of tests into a single test group. Remove superfluous 'auth' attributes. --- .../collectionobject-hierarchy.xml | 111 ++++++++---------- 1 file changed, 51 insertions(+), 60 deletions(-) diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/collectionobject-hierarchy.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/collectionobject-hierarchy.xml index 7a9c7a0cd..b9ed00e37 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/collectionobject-hierarchy.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/collectionobject-hierarchy.xml @@ -1,13 +1,13 @@ - + - + POST /cspace-services/collectionobjects collectionobject/hierarchy/1-collectionobject.xml @@ -18,7 +18,7 @@ - + GET /cspace-services/collectionobjects/${CreateChessSetBox.CSID} 200 @@ -33,7 +33,7 @@ - + POST /cspace-services/collectionobjects collectionobject/hierarchy/2-collectionobjects-with-relations-create.xml @@ -43,7 +43,7 @@ 201 - + GET /cspace-services/collectionobjects/${CreateChessBoard.CSID} 200 @@ -62,7 +62,7 @@ 201 - + GET /cspace-services/collectionobjects/${CreateBagOfWhiteChessPieces.CSID} 200 @@ -77,7 +77,7 @@ ${CreateChessSetBox.CSID} - + GET /cspace-services/collectionobjects/${CreateBagOfBlackChessPieces.CSID} 200 @@ -95,7 +95,7 @@ 201 - + GET /cspace-services/collectionobjects/${CreateWhiteRook.CSID} 200 @@ -111,7 +111,7 @@ 201 - + GET /cspace-services/collectionobjects/${CreateWhiteBishop.CSID} 200 @@ -127,7 +127,7 @@ 201 - + GET /cspace-services/collectionobjects/${CreateBlackQueen.CSID} 200 @@ -143,28 +143,12 @@ 201 - + GET /cspace-services/collectionobjects/${CreateBlackRook.CSID} 200 - - - GET - /cspace-services/collectionobjects/${CreateChessSetBox.CSID}?showRelations=true - - - collectionobject/hierarchy/res/show-relations-top-level.res.xml - - ${CreateChessSetBox.CSID} - ${CreateChessBoard.CSID} - ${CreateBagOfWhiteChessPieces.CSID} - ${CreateBagOfBlackChessPieces.CSID} - - /document/*[local-name()='relations-common-list'] - - 200 - + @@ -304,6 +288,8 @@ + + - - - - + - + + + GET + /cspace-services/relations?obj=${CreateChessSetBox.CSID} + 200 - --> - - - + + + GET + /cspace-services/relations?obj=${CreateBagOfWhiteChessPieces.CSID} + 200 - + DELETE - /cspace-services/collectionobjects/${CreateBagOfBlackChessPieces.CSID} + /cspace-services/relations/${GetRelationsAsObjectForBagOfWhiteChessPieces.got("//relation-list-item[1]/csid")} - + DELETE - /cspace-services/collectionobjects/${CreateBagOfWhiteChessPieces.CSID} + /cspace-services/relations/${GetRelationsAsObjectForBagOfWhiteChessPieces.got("//relation-list-item[2]/csid")} + + + + + + GET + /cspace-services/relations?obj=${CreateBagOfBlackChessPieces.CSID} + 200 - + DELETE - /cspace-services/collectionobjects/${CreateChessBoard.CSID} + /cspace-services/relations/${GetRelationsAsObjectForBagOfBlackChessPieces.got("//relation-list-item[1]/csid")} - + DELETE - /cspace-services/collectionobjects/${CreateChessSetBox.CSID} + /cspace-services/relations/${GetRelationsAsObjectForBagOfBlackChessPieces.got("//relation-list-item[2]/csid")} - --> -- 2.47.3