From d95b2458ebb9f0136df07a237a1c2c04ccfc8c8d Mon Sep 17 00:00:00 2001 From: Patrick Schmitz Date: Mon, 2 Apr 2012 16:08:50 -0700 Subject: [PATCH] CSPACE-4963 Building up test cases with lifesci tenant. Also split up the create_db target in ant to make it faster to develop and test schema changes. --- build.xml | 28 ++++++-- installer/build.xml | 49 +++++++++---- .../collectionobject/lifesci_extended_co.xml | 45 ++++++++++++ .../lifesci_extended_injectedco.xml | 50 ++++++++++++++ services/account/build.xml | 4 +- services/account/pstore/build.xml | 2 +- services/authentication/build.xml | 4 +- services/authentication/pstore/build.xml | 2 +- services/authorization-mgt/build.xml | 2 +- services/authorization/build.xml | 4 +- services/authorization/pstore/build.xml | 2 +- services/build.xml | 14 ++-- .../collectionobjects_naturalhistory.xsd | 25 ++++--- services/id/build.xml | 4 +- services/id/service/build.xml | 2 +- .../resources/db/mysql/init_cspace_db.sql | 24 +++++++ .../mysql/{init_db.sql => init_nuxeo_db.sql} | 68 +++++++------------ .../db/postgresql/init_cspace_db.sql | 11 +++ .../{init_db.sql => init_nuxeo_db.sql} | 50 +++++++------- 19 files changed, 274 insertions(+), 116 deletions(-) create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/lifesci_extended_co.xml create mode 100644 services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/lifesci_extended_injectedco.xml create mode 100644 src/main/resources/db/mysql/init_cspace_db.sql rename src/main/resources/db/mysql/{init_db.sql => init_nuxeo_db.sql} (57%) create mode 100644 src/main/resources/db/postgresql/init_cspace_db.sql rename src/main/resources/db/postgresql/{init_db.sql => init_nuxeo_db.sql} (69%) diff --git a/build.xml b/build.xml index 5c854c156..7d47c8650 100644 --- a/build.xml +++ b/build.xml @@ -205,24 +205,42 @@ - - + + - + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/lifesci_extended_co.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/lifesci_extended_co.xml new file mode 100644 index 000000000..0a244c24b --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/lifesci_extended_co.xml @@ -0,0 +1,45 @@ + + + + + + questionable + + urn:cspace:lifesci.collectionspace.org:taxonomyauthority:name(taxon):item:name(AcerJaponicus1332900279183)'Acer + Japonicus' + + urn:cspace:lifesci.collectionspace.org:personauthorities:name(person):item:name(PatrickSchmitz1332900293194)'Patrick + Schmitz' + + + + + + 2012.1.3 + + + This is a nice Object + generic + + + urn:cspace:lifesci.collectionspace.org:vocabularies:name(languages):item:name(deu)'German' + Das ist ein nettes Object + + + urn:cspace:lifesci.collectionspace.org:vocabularies:name(languages):item:name(eng)'English' + + + + antiquities + + + + Obj123 + serial + + + + diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/lifesci_extended_injectedco.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/lifesci_extended_injectedco.xml new file mode 100644 index 000000000..4e45d2bd3 --- /dev/null +++ b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/lifesci_extended_injectedco.xml @@ -0,0 +1,50 @@ + + + + + + questionable + + urn:cspace:lifesci.collectionspace.org:taxonomyauthority:name(taxon):item:name(AcerJaponicus1332900279183)'Acer + Japonicus' + + urn:cspace:lifesci.collectionspace.org:personauthorities:name(person):item:name(PatrickSchmitz1332900293194)'Patrick + Schmitz' + + + + + + This is an experiment + + + + + 2012.1.4 + + + This is a nice Object + generic + + + urn:cspace:lifesci.collectionspace.org:vocabularies:name(languages):item:name(deu)'German' + Das ist ein nettes Object + + + urn:cspace:lifesci.collectionspace.org:vocabularies:name(languages):item:name(eng)'English' + + + + antiquities + + + + Obj123 + serial + + + + diff --git a/services/account/build.xml b/services/account/build.xml index 35f631b27..58b72f192 100644 --- a/services/account/build.xml +++ b/services/account/build.xml @@ -112,9 +112,9 @@ - - + - - - + - - diff --git a/services/authorization/build.xml b/services/authorization/build.xml index add2af1df..6642711d7 100644 --- a/services/authorization/build.xml +++ b/services/authorization/build.xml @@ -112,9 +112,9 @@ - - + - - - - - - + + + + + + + - - + + + + + + + + + + + + + + + diff --git a/services/id/build.xml b/services/id/build.xml index cef43930f..ee3dac387 100644 --- a/services/id/build.xml +++ b/services/id/build.xml @@ -106,9 +106,9 @@ - - + -