]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
NOJIRA - deleting disabled script code, as part of ongoing cleanup.
authorPatrick Schmitz <pschmitz@berkeley.edu>
Thu, 18 Nov 2010 00:32:01 +0000 (00:32 +0000)
committerPatrick Schmitz <pschmitz@berkeley.edu>
Thu, 18 Nov 2010 00:32:01 +0000 (00:32 +0000)
services/account/pstore/src/main/resources/db/mysql/test_account.sql
services/authentication/pstore/src/main/resources/db/mysql/test_authentication.sql
services/authorization/pstore/src/main/resources/db/mysql/test_authorization.sql

index 2f18d539729fe9857eb4535b2138f2d61b47a58f..7d8ee3bf4eb746b3010578f5d9d556c8a9a54f52 100644 (file)
@@ -6,20 +6,13 @@
 use cspace;
 
 -- Tenants
--- movingimages --
-INSERT INTO `cspace`.`tenants` (`id`, `name`, `created_at`) VALUES  ('1','movingimages.us', now());
--- pahma --
---INSERT INTO `cspace`.`tenants` (`id`, `name`, `created_at`) VALUES  ('2','hearstmuseum.berkeley.edu', now());
+-- default cspace --
+-- ONLY Needed for the hack below.
+INSERT INTO `cspace`.`tenants` (`id`, `name`, `created_at`) VALUES  ('1','collectionspace.org', now());
 
 -- Accounts
 -- default test account --
 INSERT INTO `cspace`.`accounts_common` (`csid`, `email`, `phone`, `mobile`, `userid`, `status`, `screen_name`, `created_at`) VALUES  ('eeca40d7-dc77-4cc5-b489-16a53c75525a','test.test@berkeley.edu',NULL,NULL,'test','ACTIVE','test', now());
--- Additional account introduced during integration on release 0.6, and currently relied upon by the Application Layer.
---INSERT INTO `cspace`.`accounts_common` (`csid`, `email`, `phone`, `mobile`, `userid`, `status`, `screen_name`, `created_at`) VALUES  ('251f98f3-0292-4f3e-aa95-455314050e1b','test@collectionspace.org',NULL,NULL,'test@collectionspace.org','ACTIVE','test@collectionspace.org', now());
--- PAHMA test account --
---INSERT INTO `cspace`.`accounts_common` (`csid`, `email`, `phone`, `mobile`, `userid`, `status`, `screen_name`, `created_at`) VALUES  ('ff2b4440-ed0d-4892-adb4-b6999eba3ae7','test@hearstmuseum.berkeley.edu',NULL,NULL,'test-pahma','ACTIVE','test-pahma', now());
 
 -- Association of accounts with tenants
 INSERT INTO `cspace`.`accounts_tenants` (`TENANTS_ACCOUNTSCOMMON_CSID`, `tenant_id`) VALUES ('eeca40d7-dc77-4cc5-b489-16a53c75525a', '1');
---INSERT INTO `cspace`.`accounts_tenants` (`TENANTS_ACCOUNTSCOMMON_CSID`, `tenant_id`) VALUES ('251f98f3-0292-4f3e-aa95-455314050e1b', '1');
---INSERT INTO `cspace`.`accounts_tenants` (`TENANTS_ACCOUNTSCOMMON_CSID`, `tenant_id`) VALUES ('ff2b4440-ed0d-4892-adb4-b6999eba3ae7', '2');
index f9a62ae1ed8d1eab117125d26d5f54474012f963..3f5f2ce02c7a903eeaa20a3e5edc34ff5b6ef643 100644 (file)
@@ -6,8 +6,5 @@
 use cspace;\r
 \r
 -- default test user --\r
+-- This should go away.\r
 insert into `users` (`username`,`passwd`, `created_at`) VALUES ('test','n4bQgYhMfWWaL+qgxVrQFaO/TxsrC4Is0V1sFbDwCgg=', now());\r
--- Additional account introduced during integration on release 0.6, and currently relied upon by the Application Layer.\r
---insert into `users` (`username`,`passwd`, `created_at`) VALUES ('test@collectionspace.org','NyaDNd1pMQRb3N+SYj/4GaZCRLU9DnRtQ4eXNJ1NpXg=', now());\r
--- user for testing pahma deployment --\r
---insert into `users` (`username`,`passwd`, `created_at`) VALUES ('test-pahma','n4bQgYhMfWWaL+qgxVrQFaO/TxsrC4Is0V1sFbDwCgg=', now());\r
index 22aabe14fbdd42951afe6b68394e1522ef9043a6..177818f78bd5f56664df00f6c75da5c19e7341e6 100644 (file)
@@ -9,16 +9,7 @@ insert into `roles` (`csid`, `rolename`, `displayName`, `rolegroup`, `created_at
 insert into `roles` (`csid`, `rolename`, `displayName`, `rolegroup`, `created_at`, `tenant_id`) values ('0', 'ROLE_ADMINISTRATOR', 'ADMINISTRATOR', 'CollectionSpace Administrator', now(), '0');\r
 \r
 -- for default test account --\r
+-- THESE SHOULD GO AWAY.\r
 insert into `accounts_roles`(`account_id`, `user_id`, `role_id`, `role_name`, `created_at`) values ('eeca40d7-dc77-4cc5-b489-16a53c75525a', 'test', '-1', 'ROLE_SPRING_ADMIN', now());\r
 insert into `accounts_roles`(`account_id`, `user_id`, `role_id`, `role_name`, `created_at`) values ('eeca40d7-dc77-4cc5-b489-16a53c75525a', 'test', '0', 'ROLE_ADMINISTRATOR', now());\r
 \r
--- Additional account introduced during integration on release 0.6, and currently relied upon by the Application Layer.\r
---insert into `accounts_roles`(`account_id`, `user_id`, `role_id`, `role_name`, `created_at`) values ('251f98f3-0292-4f3e-aa95-455314050e1b', 'test@collectionspace.org', '0', 'ROLE_ADMINISTRATOR', now());\r
-\r
--- test account for pahma --\r
---insert into `accounts_roles`(`account_id`, `user_id`, `role_id`, `role_name`, `created_at`) values ('ff2b4440-ed0d-4892-adb4-b6999eba3ae7', 'test-pahma', '0', 'ROLE_ADMINISTRATOR', now());\r
-\r
--- todo: barney is created in security test but accountrole is not yet created there, so add fake account id\r
---insert into `accounts_roles`(`account_id`, `user_id`, `role_id`, `role_name`, `created_at`) values ('1', 'barney', '2', 'ROLE_USERS', now());\r
-\r
-\r