From c5ea2aed2cde2cd9a4c042330e37c89b3c31c983 Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Wed, 18 Apr 2012 16:54:34 -0700 Subject: [PATCH] CSPACE-3560,CSPACE-3923,CSPACE-5049: XmlReplay-based tests of the Imports service now clean up most records created during testing. --- .../xmlreplay/imports/import-objectexit.xml | 2 +- .../test-data/xmlreplay/imports/imports.xml | 66 +++++++++++++++---- .../res/import-objectexit-utf8.res.xml | 14 ++++ 3 files changed, 70 insertions(+), 12 deletions(-) create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/res/import-objectexit-utf8.res.xml diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit.xml index ef3d137cc..bd6616889 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/import-objectexit.xml @@ -1,6 +1,6 @@ - + This is an exit note. diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/imports.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/imports.xml index 521c2d8d5..e952a8b1e 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/imports.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/imports.xml @@ -2,15 +2,15 @@ - YWRtaW5AY29yZS5jb2xsZWN0aW9uc3BhY2Uub3JnOkFkbWluaXN0cmF0b3I= + YWRtaW5AY29yZS5jb2xsZWN0aW9uc3BhY2Uub3JnOkFkbWluaXN0cmF0b3I= - + - + 200 POST /cspace-services/imports @@ -18,7 +18,12 @@ imports/res/import-objectexit.res.xml - + + + + 200 + DELETE + /cspace-services/objectexit/${importObjectExit.got("//csid")} - + 200 POST /cspace-services/imports @@ -34,16 +39,34 @@ imports/res/import-objectexit.res.xml - + + + + 200 + DELETE + /cspace-services/objectexit/${importObjectExitUTF8.got("//csid")} + + - + 200 POST /cspace-services/imports @@ -51,7 +74,12 @@ imports/res/import-objectexit.res.xml - + + + + 200 + DELETE + /cspace-services/objectexit/${importObjectExitSpecialChars.got("//csid")} - + 200 POST /cspace-services/imports @@ -68,9 +96,25 @@ imports/res/import-objectexit-media.res.xml - + - + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/res/import-objectexit-utf8.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/res/import-objectexit-utf8.res.xml new file mode 100644 index 000000000..612ed1b20 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports/res/import-objectexit-utf8.res.xml @@ -0,0 +1,14 @@ + + + + This is an exit note written by Sebastián (a-acute accent) and Barnes, +which includes a pleasant façade (c-cedilla) and this cast of additional characters: +Δ : Greek capital letter Delta (U+0394) +Ж : Cyrillic capital letter Zhe with breve (U+04C1) +Ŵ : Latin capital letter W with circumflex (U+0174) +Ω : Greek capital letter Omega (U+03A9) +月 : Han (CJK) character 'moon; month' ((U+6708) + OE-IMPORT-TEST-1999.2 + + + -- 2.47.3