From 2f135e7fccbd6943bc382c4f1e1b5ed5cc80d959 Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Thu, 6 Sep 2012 14:31:17 -0700 Subject: [PATCH] CSPACE-5518: Create initial XmlReplay-based test for structured objects, starting out by simply creating, reading, and deleting a three-level hierarchy of CollectonObjects relating to items in a chess set. --- .../collectionobject-hierarchy.xml | 266 ++++++++++++++++++ .../hierarchy/1-collectionobject.xml | 9 + .../test-data/xmlreplay/dev-master.xml | 48 ++++ 3 files changed, 323 insertions(+) create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/collectionobject-hierarchy.xml create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/1-collectionobject.xml create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/dev-master.xml 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 new file mode 100644 index 000000000..f81fde142 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/collectionobject-hierarchy.xml @@ -0,0 +1,266 @@ + + + + + + + + POST + /cspace-services/collectionobjects + collectionobject/hierarchy/1-collectionobject.xml + + CSPACE-5518-ChessSetBox + + + + GET + /cspace-services/collectionobjects/${CreateChessSetBox.CSID} + + + + + + POST + /cspace-services/collectionobjects + collectionobject/hierarchy/1-collectionobject.xml + + CSPACE-5518-ChessBoard + + + + GET + /cspace-services/collectionobjects/${CreateChessBoard.CSID} + + + + + + POST + /cspace-services/collectionobjects + collectionobject/hierarchy/1-collectionobject.xml + + CSPACE-5518-BagOfWhiteChessPieces + + + + GET + /cspace-services/collectionobjects/${CreateBagOfWhiteChessPieces.CSID} + + + POST + /cspace-services/collectionobjects + collectionobject/hierarchy/1-collectionobject.xml + + CSPACE-5518-BagOfBlackChessPieces + + + + GET + /cspace-services/collectionobjects/${CreateBagOfBlackChessPieces.CSID} + + + + + POST + /cspace-services/collectionobjects + collectionobject/hierarchy/1-collectionobject.xml + + CSPACE-5518-WhiteRook + + + + GET + /cspace-services/collectionobjects/${CreateWhiteRook.CSID} + + + POST + /cspace-services/collectionobjects + collectionobject/hierarchy/1-collectionobject.xml + + CSPACE-5518-WhiteBishop + + + + GET + /cspace-services/collectionobjects/${CreateWhiteBishop.CSID} + + + POST + /cspace-services/collectionobjects + collectionobject/hierarchy/1-collectionobject.xml + + CSPACE-5518-BlackQueen + + + + GET + /cspace-services/collectionobjects/${CreateBlackQueen.CSID} + + + POST + /cspace-services/collectionobjects + collectionobject/hierarchy/1-collectionobject.xml + + CSPACE-5518-BlackRook + + + + GET + /cspace-services/collectionobjects/${CreateBlackRook.CSID} + + + + + DELETE + /cspace-services/collectionobjects/${CreateBlackRook.CSID} + + + DELETE + /cspace-services/collectionobjects/${CreateBlackQueen.CSID} + + + DELETE + /cspace-services/collectionobjects/${CreateWhiteBishop.CSID} + + + DELETE + /cspace-services/collectionobjects/${CreateWhiteRook.CSID} + + + DELETE + /cspace-services/collectionobjects/${CreateBagOfBlackChessPieces.CSID} + + + DELETE + /cspace-services/collectionobjects/${CreateBagOfWhiteChessPieces.CSID} + + + DELETE + /cspace-services/collectionobjects/${CreateChessBoard.CSID} + + + DELETE + /cspace-services/collectionobjects/${CreateChessSetBox.CSID} + + + + + + + + + + + + + + + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/1-collectionobject.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/1-collectionobject.xml new file mode 100644 index 000000000..02b95fdf5 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/hierarchy/1-collectionobject.xml @@ -0,0 +1,9 @@ + + + + + ${objectNumber} + + + \ No newline at end of file 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 new file mode 100644 index 000000000..437b4058d --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/dev-master.xml @@ -0,0 +1,48 @@ + + + + http://localhost:8180 + + + + + + YWRtaW5AY29yZS5jb2xsZWN0aW9uc3BhY2Uub3JnOkFkbWluaXN0cmF0b3I= + + + + + -- 2.47.3