From 8dd7c2d021c1b2a71047519a0654e43b7e733e3d Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Fri, 7 Sep 2012 15:58:08 -0700 Subject: [PATCH] CSPACE-5120: Updated structured object tests. All are now in a single test group, because variable values weren't being shared between some groups. Tweaked payloads, including namespace prefixes. --- .../collectionobject-hierarchy.xml | 94 +++++++++---------- .../res/relations-as-object-top-level.res.xml | 2 +- .../res/relations-pagination-header.res.xml | 2 +- .../res/show-all-relations-top-level.res.xml | 2 +- .../res/show-relations-bottom-level.res.xml | 2 +- .../res/show-relations-mid-level.res.xml | 2 +- .../res/show-relations-top-level.res.xml | 4 +- .../res/show-siblings-bottom-level.res.xml | 2 +- .../res/show-siblings-mid-level.res.xml | 2 +- .../res/show-siblings-top-level.res.xml | 2 +- 10 files changed, 57 insertions(+), 57 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 0f77af26c..23d9212da 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,6 +1,7 @@ - + + @@ -123,7 +124,7 @@ - - - - - - - @@ -176,17 +170,30 @@ 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 + + PUT - /cspace-services/collectionobjects/${CreateBlackRook.CSID} + /cspace-services/collectionobjects/${CreateBlackRookWithRelations.CSID} collectionobject/hierarchy/3-collectionobjects-with-relations-update.xml This rook has two light brown striations on part of its base. @@ -196,13 +203,10 @@ 200 - - - - - - + + + @@ -242,7 +246,7 @@ GET - /cspace-services/collectionobjects/${CreateBlackRook.CSID}?showRelations=true + /cspace-services/collectionobjects/${CreateBlackRookWithRelations.CSID}?showRelations=true collectionobject/hierarchy/res/show-relations-bottom-level.res.xml @@ -287,7 +291,7 @@ GET - /cspace-services/collectionobjects/${CreateBlackRook.CSID}?showSiblings=true + /cspace-services/collectionobjects/${CreateBlackRookWithRelations.CSID}?showSiblings=true 200 @@ -312,44 +316,40 @@ /document/*[local-name()='relations-common-list'] - - - - - - - - - + + + + + + + + GET - /cspace-services/relations?obj=${CreateChessSetBox.CSID} + /cspace-services/relations?sbj=${CreateChessSetBox.CSID} 200 - collectionobject/hierarchy/res/relations-as-object-top-level.res.xml + collectionobject/hierarchy/res/relations-pagination-header.res.xml - ${CreateChessSetBox.CSID} - ${CreateChessBoard.CSID} - ${CreateBagOfWhiteChessPieces.CSID} - ${CreateBagOfBlackChessPieces.CSID} + 0 - /document/*[local-name()='relations-common-list'] - - - - + GET - /cspace-services/relations?sbj=${CreateChessSetBox.CSID} + /cspace-services/relations?obj=${CreateChessSetBox.CSID} 200 - collectionobject/hierarchy/res/relations-pagination-header.res.xml + collectionobject/hierarchy/res/relations-as-object-top-level.res.xml - 0 + ${CreateChessSetBox.CSID} + ${CreateChessBoard.CSID} + ${CreateBagOfWhiteChessPieces.CSID} + ${CreateBagOfBlackChessPieces.CSID} + /document/*[local-name()='relations-common-list'] @@ -370,7 +370,7 @@ - + 0 3 3 diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/relations-pagination-header.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/relations-pagination-header.res.xml index f496f896f..d7b7ee8be 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/relations-pagination-header.res.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/relations-pagination-header.res.xml @@ -1,5 +1,5 @@ - + ${totalItems} diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-all-relations-top-level.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-all-relations-top-level.res.xml index d09a7189c..45a260de3 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-all-relations-top-level.res.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-all-relations-top-level.res.xml @@ -3,7 +3,7 @@ - + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-relations-bottom-level.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-relations-bottom-level.res.xml index 5504221c6..c42a6efe3 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-relations-bottom-level.res.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-relations-bottom-level.res.xml @@ -7,7 +7,7 @@ Parent and child relations of the black rook: * bag of black chess pieces (parent) --> - + 0 1 1 diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-relations-mid-level.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-relations-mid-level.res.xml index 8d145244d..685b5b043 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-relations-mid-level.res.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-relations-mid-level.res.xml @@ -9,7 +9,7 @@ * black queen (child) * black rook (child) --> - + 0 3 3 diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-relations-top-level.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-relations-top-level.res.xml index 397dfed12..c88ddff93 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-relations-top-level.res.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-relations-top-level.res.xml @@ -1,4 +1,4 @@ - + @@ -9,7 +9,7 @@ * bag of white chess pieces (child) * bag of black chess pieces (child) --> - + 0 3 3 diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-siblings-bottom-level.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-siblings-bottom-level.res.xml index 1673c1661..1bcc3bdc6 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-siblings-bottom-level.res.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-siblings-bottom-level.res.xml @@ -7,7 +7,7 @@ Siblings of the black rook 1. black queen --> - + 0 1 1 diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-siblings-mid-level.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-siblings-mid-level.res.xml index 9b7e3ac5f..3e1f6c3e1 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-siblings-mid-level.res.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-siblings-mid-level.res.xml @@ -8,7 +8,7 @@ 1. chess board 2. bag of white chess pieces --> - + 0 2 2 diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-siblings-top-level.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-siblings-top-level.res.xml index 0120bcb09..037092af7 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-siblings-top-level.res.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/res/show-siblings-top-level.res.xml @@ -7,7 +7,7 @@ Siblings of the chess board box: (none) --> - + 0 0 0 -- 2.47.3