From: Aron Roberts Date: Fri, 20 Apr 2012 20:50:14 +0000 (-0700) Subject: CSPACE-5024: Simplified response files, added location vocabulary tests (currently... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=976b9f4dc40adabf05dca56645970d1270f40017;p=tmp%2Fjakarta-migration.git CSPACE-5024: Simplified response files, added location vocabulary tests (currently commented out). --- diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/authority.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/authority.xml index a04bc107b..a9ad6275d 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/authority.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/authority.xml @@ -11,30 +11,35 @@ + + --> 201 POST /cspace-services/personauthorities authority/personauthority.xml - jlmbsoq - tqbfjotld - jlmb - tqbf - ${identifier1} - ${identifier1} - + + + jlmbsoq + tqbfjotld + + jlmb + tqbf + fjotl + + ${word1}auth1 + ${word1}auth2 + - 201 POST /cspace-services/personauthorities authority/personauthority.xml - ${createPersonAuthority1.identifier2} - ${createPersonAuthority1.identifier2} + ${createPersonAuthority1.word2}auth2 + ${createPersonAuthority1.word2}auth2 @@ -44,57 +49,56 @@ /cspace-services/locationauthorities authority/locationauthority.xml - ${createPersonAuthority1.identifier1} - ${createPersonAuthority1.identifier1} + ${createPersonAuthority1.word1}auth1 + ${createPersonAuthority1.word1}auth2 - - - + + 201 POST /cspace-services/personauthorities/${createPersonAuthority1.CSID}/items authority/personitem.xml - ${createPersonAuthority1.identifier2} ${createPersonAuthority1.identifier1} - ${createPersonAuthority1.identifier1}1 - + ${createPersonAuthority1.word2} ${createPersonAuthority1.word1} + ${createPersonAuthority1.word1}item1 + - + 201 POST /cspace-services/personauthorities/${createPersonAuthority1.CSID}/items authority/personitem.xml - ${createPersonAuthority1.identifier1} - ${createPersonAuthority1.identifier1}2 + ${createPersonAuthority1.word1} + ${createPersonAuthority1.word1}item2 - - + + 201 POST /cspace-services/personauthorities/${createPersonAuthority2.CSID}/items authority/personitem.xml - ${createPersonAuthority1.identifier1} ${createPersonAuthority1.identifier2} - ${createPersonAuthority1.identifier1}3 + ${createPersonAuthority1.word1} ${createPersonAuthority1.word2} + ${createPersonAuthority1.word1}item3 - - + + 201 POST /cspace-services/locationauthorities/${createLocationAuthority.CSID}/items authority/locationitem.xml - ${createPersonAuthority1.identifier1} ${createPersonAuthority1.identifier2} - ${createPersonAuthority1.identifier1} + ${createPersonAuthority1.word1} ${createPersonAuthority1.word2} + ${createPersonAuthority1.word1}item1 @@ -103,54 +107,132 @@ expected items were returned by each search. --> - - + + + + 200 GET - /cspace-services/personauthorities/_ALL_/items?kw=${createPersonAuthority1.identifier1} - - ${createPersonAuthority1.identifier1} - + /cspace-services/personauthorities/_ALL_/items?kw=${createPersonAuthority1.word1} - authority/res/keywordSearchAuthorityItems1.res.xml + authority/res/personauthorityWord1.res.xml - - + + 200 GET - /cspace-services/personauthorities/_ALL_/items?kw=${createPersonAuthority1.identifier2} - - ${createPersonAuthority1.identifier1} - + /cspace-services/personauthorities/_ALL_/items?kw=${createPersonAuthority1.word2} - authority/res/keywordSearchAuthorityItems2.res.xml + authority/res/personauthorityWord2.res.xml - - + + + + 200 GET - /cspace-services/personauthorities/_ALL_/items?pt=${createPersonAuthority1.identifier2PartialTerm} + /cspace-services/personauthorities/_ALL_/items?pt=${createPersonAuthority1.word1PartialTermStem} - authority/res/partialTermSearchAuthorityItems1.res.xml + authority/res/personauthorityWord1.res.xml + + + + + 200 + GET + /cspace-services/personauthorities/_ALL_/items?pt=${createPersonAuthority1.word2PartialTermStem} + + + authority/res/personauthorityWord2.res.xml + + + + + 200 + GET + /cspace-services/personauthorities/_ALL_/items?pt=${createPersonAuthority1.word2PartialTermMid} + + + authority/res/personauthorityWord2.res.xml - --> + + + + 200 + GET + /cspace-services/personauthorities/_ALL_/items?as=persons_common%3AdisplayName%20ILIKE%20%27%25${createPersonAuthority1.word1}%25%27 + + + authority/res/personauthorityWord1.res.xml + + + + + 200 + GET + /cspace-services/personauthorities/_ALL_/items?as=persons_common%3AdisplayName%20ILIKE%20%27%25${createPersonAuthority1.word2}%25%27 + + + authority/res/personauthorityWord2.res.xml + + + + + 200 + GET + /cspace-services/personauthorities/_ALL_/items?as=persons_common%3AforeName%20ILIKE%20%27%25${createPersonAuthority1.word2}%25%27 + + + authority/res/personauthorityWord2.res.xml + + + + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/locationitem.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/locationitem.xml index a26181039..c5a13e2fc 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/locationitem.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/locationitem.xml @@ -3,7 +3,7 @@ ${itemDisplayName} ${itemShortIdentifier} - This is a test Location Authority item. + This is a test Location Authority item, whose description contains: ${itemDisplayName} diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/keywordSearchAuthorityItems1.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/keywordSearchAuthorityItems1.res.xml deleted file mode 100644 index f3555df86..000000000 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/keywordSearchAuthorityItems1.res.xml +++ /dev/null @@ -1,14 +0,0 @@ - - -3 - - ${createPersonAuthority1.identifier1}1 - - - ${createPersonAuthority1.identifier1}2 - - - ${createPersonAuthority1.identifier1}3 - - - diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/keywordSearchAuthorityItems2.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/keywordSearchAuthorityItems2.res.xml deleted file mode 100644 index b875b9484..000000000 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/keywordSearchAuthorityItems2.res.xml +++ /dev/null @@ -1,11 +0,0 @@ - - -2 - - ${createPersonAuthority1.identifier1}1 - - - ${createPersonAuthority1.identifier1}3 - - - diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/locationauthorityWord1.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/locationauthorityWord1.res.xml new file mode 100644 index 000000000..f297cecef --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/locationauthorityWord1.res.xml @@ -0,0 +1,8 @@ + + + 1 + + ${createPersonAuthority1.word1}item1 + + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/partialTermSearchAuthorityItems1.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/partialTermSearchAuthorityItems1.res.xml deleted file mode 100644 index b875b9484..000000000 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/partialTermSearchAuthorityItems1.res.xml +++ /dev/null @@ -1,11 +0,0 @@ - - -2 - - ${createPersonAuthority1.identifier1}1 - - - ${createPersonAuthority1.identifier1}3 - - - diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/partialTermSearchAuthorityItems2.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/partialTermSearchAuthorityItems2.res.xml deleted file mode 100644 index a5f533d1f..000000000 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/partialTermSearchAuthorityItems2.res.xml +++ /dev/null @@ -1,11 +0,0 @@ - - -1 - - ${createPersonAuthority1.identifier1}1 - - - ${createPersonAuthority1.identifier1}3 - - - diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personauthorityWord1.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personauthorityWord1.res.xml new file mode 100644 index 000000000..5a5e13d53 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personauthorityWord1.res.xml @@ -0,0 +1,19 @@ + + + 3 + + + ${createPersonAuthority1.word1}item3 + + + ${createPersonAuthority1.word1}item2 + + + ${createPersonAuthority1.word1}item1 + + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personauthorityWord2.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personauthorityWord2.res.xml new file mode 100644 index 000000000..ed45b3536 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personauthorityWord2.res.xml @@ -0,0 +1,16 @@ + + + 2 + + + ${createPersonAuthority1.word1}item3 + + + ${createPersonAuthority1.word1}item1 + + +