From: Aron Roberts Date: Fri, 7 Sep 2012 04:15:58 +0000 (-0700) Subject: CSPACE-5518: Committing latest state of XmlReplay tests for structured (hierarchical... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=80a82332ca95d90d2a00d0598a2ab13d90d14029;p=tmp%2Fjakarta-migration.git CSPACE-5518: Committing latest state of XmlReplay tests for structured (hierarchical) CollectionObjects. Create with relations test fails; am checking this in for Richard's use 'as is.' --- 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 23a7b64dd..f3495aa0f 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,11 +1,11 @@ - + - - + Chess set box + (parent of chess board, bags of white and black chess pieces POST /cspace-services/collectionobjects @@ -13,14 +13,16 @@ CSPACE-5518-ChessSetBox + 201 GET /cspace-services/collectionobjects/${CreateChessSetBox.CSID} + 200 - - + Chess board + (child of chess set box, sibling of bags of white and black chess pieces) POST /cspace-services/collectionobjects @@ -28,14 +30,16 @@ CSPACE-5518-ChessBoard + 201 GET /cspace-services/collectionobjects/${CreateChessBoard.CSID} + 200 - - + Bags of white and black chess pieces + (child of chess set box, sibling of chess board, parents of chess pieces) POST /cspace-services/collectionobjects @@ -43,11 +47,14 @@ CSPACE-5518-BagOfWhiteChessPieces + 201 GET /cspace-services/collectionobjects/${CreateBagOfWhiteChessPieces.CSID} + 200 + POST /cspace-services/collectionobjects @@ -59,9 +66,10 @@ GET /cspace-services/collectionobjects/${CreateBagOfBlackChessPieces.CSID} + 200 - + Individual chess pieces in those bags POST /cspace-services/collectionobjects @@ -69,10 +77,12 @@ CSPACE-5518-WhiteRook + 201 GET /cspace-services/collectionobjects/${CreateWhiteRook.CSID} + 200 POST @@ -81,23 +91,29 @@ CSPACE-5518-WhiteBishop + 201 GET /cspace-services/collectionobjects/${CreateWhiteBishop.CSID} + 200 - + POST /cspace-services/collectionobjects collectionobject/hierarchy/1-collectionobject.xml CSPACE-5518-BlackQueen + 201 GET /cspace-services/collectionobjects/${CreateBlackQueen.CSID} - + 200 + + + - - - - - - PUT - /cspace-services/collectionobjects/${CreateBlackRook.CSID} - collectionobject/hierarchy/2-collectionobjects_w_relations_CSID.xml + + + POST + /cspace-services/collectionobjects + collectionobject/hierarchy/2-collectionobjects-with-relations-create.xml ${CreateChessSetBox.CSID} ${CreateChessBoard.CSID} @@ -128,9 +144,38 @@ ${CreateWhiteRook.CSID} ${CreateWhiteBishop.CSID} ${CreateBlackQueen.CSID} - ${CreateBlackRook.CSID} + 201 + + + + + + + + + + + + @@ -139,18 +184,38 @@ GET /cspace-services/collectionobjects/${CreateChessSetBox.CSID}?showRelations=true + 200 + + GET + /cspace-services/relations?obj=${CreateChessSetBox.CSID} + 200 + + + collectionobject/hierarchy/res/read-as-object-top-level.res.xml + + ${CreateChessSetBox.CSID} + ${CreateChessBoard.CSID} + ${CreateBagOfWhiteChessPieces.CSID} + ${CreateBagOfBlackChessPieces.CSID} + + /document/*[local-name()='relations-common-list'] + + + GET /cspace-services/collectionobjects/${CreateBagOfBlackChessPieces.CSID}?showRelations=true + 200 GET /cspace-services/collectionobjects/${CreateBlackRook.CSID}?showRelations=true + 200 @@ -159,6 +224,7 @@ GET /cspace-services/collectionobjects/${CreateBagOfBlackChessPieces.CSID}?showSiblings=true + 200 collectionobject/hierarchy/res/read-siblings-top-level.res.xml @@ -169,6 +235,7 @@ GET /cspace-services/collectionobjects/${CreateBagOfBlackChessPieces.CSID}?showSiblings=true + 200 collectionobject/hierarchy/res/read-siblings-mid-level.res.xml @@ -184,6 +251,7 @@ GET /cspace-services/collectionobjects/${CreateBlackQueen.CSID}?showSiblings=true + 200 collectionobject/hierarchy/res/read-siblings-bottom-level.res.xml @@ -200,24 +268,27 @@ GET /cspace-services/collectionobjects/${CreateChessSetBox.CSID}?showAllRelations=true + 200 collectionobject/hierarchy/res/read-all-relations.res.xml /document/*[local-name()='relations-common-list'] - + - GET - /cspace-services/relations?sbj=${CreateChessSetBox.CSID} - + GET + /cspace-services/relations?sbj=${CreateChessSetBox.CSID} + 200 + GET /cspace-services/relations?obj=${CreateChessSetBox.CSID} + 200 collectionobject/hierarchy/res/read-as-object-top-level.res.xml diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/2-collectionobjects_w_relations_CSID.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/2-collectionobjects-with-relations-create.xml similarity index 69% rename from services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/2-collectionobjects_w_relations_CSID.xml rename to services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/2-collectionobjects-with-relations-create.xml index 20c014dcc..24773151f 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/2-collectionobjects_w_relations_CSID.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/2-collectionobjects-with-relations-create.xml @@ -4,7 +4,6 @@ ${objectNumber} - ${distinguishingFeatures} hasBroader ${chessBoardCSID} + CollectionObject ${chessSetBoxCSID} + CollectionObject @@ -28,32 +29,40 @@ hasBroader ${bagOfWhiteChessPiecesCSID} - + CollectionObject + ${chessSetBoxCSID} - + CollectionObject + hasBroader ${bagOfBlackChessPiecesCSID} + CollectionObject ${chessSetBoxCSID} + CollectionObject - - + hasBroader ${whiteRookCSID} - + CollectionObject + ${bagOfWhiteChessPiecesCSID} + CollectionObject @@ -61,9 +70,11 @@ hasBroader ${whiteBishopCSID} + CollectionObject ${bagOfWhiteChessPiecesCSID} + CollectionObject @@ -71,21 +82,16 @@ hasBroader ${blackQueenCSID} + CollectionObject ${bagOfBlackChessPiecesCSID} + CollectionObject - - - hasBroader - - ${blackRookCSID} - - - ${bagOfBlackChessPiecesCSID} - - + + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/3-collectionobjects-with-relations-update.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/3-collectionobjects-with-relations-update.xml new file mode 100644 index 000000000..e5b7756e6 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/3-collectionobjects-with-relations-update.xml @@ -0,0 +1,33 @@ + + + + + ${objectNumber} + ${distinguishingFeatures} + + + + + + + + hasBroader + + ${blackRookCSID} + CollectionObject + + + ${bagOfBlackChessPiecesCSID} + CollectionObject + + + + + + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-as-object-top-level.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-as-object-top-level.res.xml index 57bbf6de9..dea17357e 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-as-object-top-level.res.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/read-as-object-top-level.res.xml @@ -6,7 +6,6 @@ 2. bag of white chess pieces --> - diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/dev-master.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/dev-master.xml index 437b4058d..5a8f528ca 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/dev-master.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/dev-master.xml @@ -34,15 +34,12 @@ http://localhost:8180 - + YWRtaW5AY29yZS5jb2xsZWN0aW9uc3BhY2Uub3JnOkFkbWluaXN0cmF0b3I= - +