From: Aron Roberts Date: Fri, 20 Apr 2012 02:45:32 +0000 (-0700) Subject: CSPACE-5024: Initiated XmlReplay-based tests of searching across all vocabularies... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=7ad95119059f2742612d049d5b6a11ce6de4a80b;p=tmp%2Fjakarta-migration.git CSPACE-5024: Initiated XmlReplay-based tests of searching across all vocabularies within a given authority. Current tests simply create authorities and items in preparation for searching; search tests are 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 new file mode 100644 index 000000000..3481ec82b --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/authority.xml @@ -0,0 +1,145 @@ + + + + + + YWRtaW5AY29yZS5jb2xsZWN0aW9uc3BhY2Uub3JnOkFkbWluaXN0cmF0b3I= + + + + + + + 201 + POST + /cspace-services/personauthorities + authority/personauthority.xml + + jlmbsoq + tqbfjotld + ${identifier1} + ${identifier1} + + + + + 201 + POST + /cspace-services/personauthorities + authority/personauthority.xml + + ${createPersonAuthority1.identifier2} + ${createPersonAuthority1.identifier2} + + + + + 201 + POST + /cspace-services/locationauthorities + authority/locationauthority.xml + + ${createPersonAuthority1.identifier1} + ${createPersonAuthority1.identifier1} + + + + + + + + + 201 + POST + /cspace-services/personauthorities/${createPersonAuthority1.CSID}/items + authority/personitem.xml + + ${createPersonAuthority1.identifier1} ${createPersonAuthority1.identifier2} + ${createPersonAuthority1.identifier1}1 + + + + 201 + POST + /cspace-services/personauthorities/${createPersonAuthority1.CSID}/items + authority/personitem.xml + + ${createPersonAuthority1.identifier1} + ${createPersonAuthority1.identifier1}2 + + + + + + 201 + POST + /cspace-services/personauthorities/${createPersonAuthority2.CSID}/items + authority/personitem.xml + + ${createPersonAuthority1.identifier1} + ${createPersonAuthority1.identifier1}3 + + + + + + 201 + POST + /cspace-services/locationauthorities/${createLocationAuthority.CSID}/items + authority/locationitem.xml + + ${createPersonAuthority1.identifier1} ${createPersonAuthority1.identifier2} + ${createPersonAuthority1.identifier1} + + + + + + + + + + + + + + + + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/locationauthority.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/locationauthority.xml new file mode 100644 index 000000000..e825b92bc --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/locationauthority.xml @@ -0,0 +1,10 @@ + + + + ${authDisplayName} + ${authShortIdentifier} + LocationAuthority + This is a test Location Authority. + + + 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 new file mode 100644 index 000000000..a26181039 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/locationitem.xml @@ -0,0 +1,9 @@ + + + + ${itemDisplayName} + ${itemShortIdentifier} + This is a test Location Authority item. + + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/personauthority.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/personauthority.xml new file mode 100644 index 000000000..7f8e5c9ec --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/personauthority.xml @@ -0,0 +1,11 @@ + + + + ${authDisplayName} + ${authShortIdentifier} + PersonAuthority + This is a test Person Authority. + + + + 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 new file mode 100644 index 000000000..ecf1a2272 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/personitem.xml @@ -0,0 +1,8 @@ + + + + ${itemDisplayName} + ${itemShortIdentifier} + A bio note for this Person. + +