From 165783977702e525748ed8f880c42fc45823ef7c Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Fri, 20 Apr 2012 15:34:53 -0700 Subject: [PATCH] CSPACE-5024: Resolved issue with adding tests for a second authority (Storage Location); item payload needed to have displayNameComputed flag set to false, or displayName was set to null. Added maintenance clarity via revisions to comments in expected responses and filename changes. --- .../xmlreplay/authority/authority.xml | 60 +++++++++++++------ .../xmlreplay/authority/locationitem.xml | 4 +- .../xmlreplay/authority/personitem.xml | 1 + .../authority/res/locationItems.res.xml | 7 +++ ...l => locationItemsContainingWord1.res.xml} | 0 .../authority/res/personItems.res.xml | 7 +++ .../res/personItemsContainingWord1.res.xml | 27 +++++++++ .../res/personItemsContainingWord2.res.xml | 24 ++++++++ .../res/personauthorityWord1.res.xml | 19 ------ .../res/personauthorityWord2.res.xml | 16 ----- 10 files changed, 110 insertions(+), 55 deletions(-) create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/locationItems.res.xml rename services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/{locationauthorityWord1.res.xml => locationItemsContainingWord1.res.xml} (100%) create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personItems.res.xml create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personItemsContainingWord1.res.xml create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personItemsContainingWord2.res.xml delete mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personauthorityWord1.res.xml delete mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personauthorityWord2.res.xml 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 a9ad6275d..ac58ac4e8 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 @@ -19,8 +19,8 @@ /cspace-services/personauthorities authority/personauthority.xml - - + + jlmbsoq tqbfjotld @@ -91,7 +91,7 @@ - + 201 POST /cspace-services/locationauthorities/${createLocationAuthority.CSID}/items @@ -101,12 +101,29 @@ ${createPersonAuthority1.word1}item1 + + 200 + GET + /cspace-services/locationauthorities/${createLocationAuthority.CSID}/items/${createLocationItem.CSID} + + + + + 200 + GET + /cspace-services/personauthorities/_ALL_/items?pgSz=3&pgNum=0 + + + authority/res/personItems.res.xml + + + @@ -116,7 +133,7 @@ /cspace-services/personauthorities/_ALL_/items?kw=${createPersonAuthority1.word1} - authority/res/personauthorityWord1.res.xml + authority/res/personItemsContainingWord1.res.xml @@ -126,7 +143,7 @@ /cspace-services/personauthorities/_ALL_/items?kw=${createPersonAuthority1.word2} - authority/res/personauthorityWord2.res.xml + authority/res/personItemsContainingWord2.res.xml @@ -139,7 +156,7 @@ /cspace-services/personauthorities/_ALL_/items?pt=${createPersonAuthority1.word1PartialTermStem} - authority/res/personauthorityWord1.res.xml + authority/res/personItemsContainingWord1.res.xml @@ -149,7 +166,7 @@ /cspace-services/personauthorities/_ALL_/items?pt=${createPersonAuthority1.word2PartialTermStem} - authority/res/personauthorityWord2.res.xml + authority/res/personItemsContainingWord2.res.xml @@ -159,7 +176,7 @@ /cspace-services/personauthorities/_ALL_/items?pt=${createPersonAuthority1.word2PartialTermMid} - authority/res/personauthorityWord2.res.xml + authority/res/personItemsContainingWord2.res.xml @@ -172,7 +189,7 @@ /cspace-services/personauthorities/_ALL_/items?as=persons_common%3AdisplayName%20ILIKE%20%27%25${createPersonAuthority1.word1}%25%27 - authority/res/personauthorityWord1.res.xml + authority/res/personItemsContainingWord1.res.xml @@ -182,7 +199,7 @@ /cspace-services/personauthorities/_ALL_/items?as=persons_common%3AdisplayName%20ILIKE%20%27%25${createPersonAuthority1.word2}%25%27 - authority/res/personauthorityWord2.res.xml + authority/res/personItemsContainingWord2.res.xml @@ -192,20 +209,28 @@ /cspace-services/personauthorities/_ALL_/items?as=persons_common%3AforeName%20ILIKE%20%27%25${createPersonAuthority1.word2}%25%27 - authority/res/personauthorityWord2.res.xml + authority/res/personItemsContainingWord2.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 c5a13e2fc..56e370a69 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 @@ -2,8 +2,8 @@ ${itemDisplayName} + false ${itemShortIdentifier} - This is a test Location Authority item, whose description contains: ${itemDisplayName} + This is a test Location Authority item, whose access note contains: ${itemDisplayName} - diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/personitem.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/personitem.xml index 633411f7d..87f820af0 100644 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/personitem.xml +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/personitem.xml @@ -2,6 +2,7 @@ ${itemDisplayName} + false ${itemShortIdentifier} A bio note for this Person. ${itemDisplayName} diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/locationItems.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/locationItems.res.xml new file mode 100644 index 000000000..245990926 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/locationItems.res.xml @@ -0,0 +1,7 @@ + + + 0 + 1 + 1 + + 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/locationItemsContainingWord1.res.xml similarity index 100% rename from services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/locationauthorityWord1.res.xml rename to services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/locationItemsContainingWord1.res.xml diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personItems.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personItems.res.xml new file mode 100644 index 000000000..61a80fda2 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personItems.res.xml @@ -0,0 +1,7 @@ + + + 0 + 3 + 3 + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personItemsContainingWord1.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personItemsContainingWord1.res.xml new file mode 100644 index 000000000..45892e451 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personItemsContainingWord1.res.xml @@ -0,0 +1,27 @@ + + + 3 + + + ${createPersonAuthority1.word1}item3 + + + ${createPersonAuthority1.word1}item2 + + + ${createPersonAuthority1.word1}item1 + + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personItemsContainingWord2.res.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personItemsContainingWord2.res.xml new file mode 100644 index 000000000..e0c43540b --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personItemsContainingWord2.res.xml @@ -0,0 +1,24 @@ + + + 2 + + + ${createPersonAuthority1.word1}item3 + + + ${createPersonAuthority1.word1}item1 + + + 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 deleted file mode 100644 index 5a5e13d53..000000000 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personauthorityWord1.res.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - 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 deleted file mode 100644 index ed45b3536..000000000 --- a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/res/personauthorityWord2.res.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - 2 - - - ${createPersonAuthority1.word1}item3 - - - ${createPersonAuthority1.word1}item1 - - - -- 2.47.3