From 7ad95119059f2742612d049d5b6a11ce6de4a80b Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Thu, 19 Apr 2012 19:45:32 -0700 Subject: [PATCH] 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. --- .../xmlreplay/authority/authority.xml | 145 ++++++++++++++++++ .../xmlreplay/authority/locationauthority.xml | 10 ++ .../xmlreplay/authority/locationitem.xml | 9 ++ .../xmlreplay/authority/personauthority.xml | 11 ++ .../xmlreplay/authority/personitem.xml | 8 + 5 files changed, 183 insertions(+) create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/authority.xml create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/locationauthority.xml create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/locationitem.xml create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/personauthority.xml create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/authority/personitem.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 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. + + -- 2.47.3