From 2109d542ec446b5daac3dc4e4a733493514fc8f4 Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Thu, 6 Sep 2012 15:13:05 -0700 Subject: [PATCH] CSPACE-5518: Tests now create an initial set of hierarchical relationships between CollectionObjects, and include a skeletal set of hierarchy tests. Need to add more such tests, as well testing the contents of response payloads. As well, we may also need to clean up relations created by the tests. --- .../collectionobject-hierarchy.xml | 72 ++++++++++++++++++- 1 file changed, 71 insertions(+), 1 deletion(-) 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 f81fde142..ab5d6ff30 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 @@ -2,6 +2,8 @@ + + @@ -107,9 +109,75 @@ GET /cspace-services/collectionobjects/${CreateBlackRook.CSID} - + + + + + + + + + PUT + /cspace-services/collectionobjects/${CreateBlackRook.CSID} + collectionobject/hierarchy/2-collectionobjects_w_relations_CSID.xml + + ${CreateChessSetBox.CSID} + ${CreateChessBoard.CSID} + ${CreateBagOfWhiteChessPieces.CSID} + ${CreateBagOfBlackChessPieces.CSID} + ${CreateWhiteRook.CSID} + ${CreateWhiteBishop.CSID} + ${CreateBlackQueen.CSID} + ${CreateBlackRook.CSID} + + + + + + + GET + /cspace-services/collectionobjects/${CreateChessSetBox.CSID}?showRelations=true + + + + + GET + /cspace-services/collectionobjects/${CreateBagOfBlackChessPieces.CSID}?showRelations=true + + + + + GET + /cspace-services/collectionobjects/${CreateBlackRook.CSID}?showRelations=true + + + + + GET + /cspace-services/relations + + + + + GET + /cspace-services/relations?sbj=${CreateBagOfBlackChessPieces.CSID} + + + + + GET + /cspace-services/relations?obj=${CreateBagOfBlackChessPieces.CSID} + + + + + + + -- 2.47.3