Project

General

Profile

Statistics
| Revision:

# Date Author Comment
9467 12/18/2015 04:30 PM Jing Tao

Add two new test methods to test systemMetadataPIDExists and systemMetadataSIDExists.

9364 10/09/2015 01:55 PM Jing Tao

Use the MN.updateSystemMetadata to replace CN.updateSystemMetadata.

9313 08/28/2015 04:04 PM Jing Tao

Increase the serial version before we call cn.updateSystemMetadata method.

9261 07/24/2015 02:46 PM Jing Tao

Add some thread sleeping time to make checking wait the process.

9252 07/15/2015 03:57 PM Jing Tao

Insert a document with different authoritative node id. So we can test querySystemMetadata by more cases.

9251 07/15/2015 02:35 PM Jing Tao

Add a junit test to test the querySystemMetadata method.

9241 07/09/2015 05:18 PM Jing Tao

Add a junit test class to test the insert of iso119139 object.

9233 07/08/2015 02:42 PM Jing Tao

Add a junit test case to test the write/read of new fields in the system metadata.

9232 07/08/2015 01:07 PM Jing Tao

Add the test suite.

9195 05/06/2015 05:04 PM Jing Tao

Fixed an null pointer issue in this class.

9129 02/18/2015 05:25 PM Jing Tao

Completed the 18 test cases.

9127 02/18/2015 11:47 AM Jing Tao

Add more test cases for the method getHeadVersion.

9126 02/17/2015 05:37 PM Jing Tao

Add more test cases for the method getHeadVersion.

9120 02/13/2015 08:54 PM Jing Tao

Add test cases for the method getHeadPID.

9108 02/06/2015 04:47 PM Jing Tao

Add the code to test only 512 characters can be written to db.

9105 02/06/2015 03:46 PM Jing Tao

Add the code to make sure that the event, ip address, principal and userAgent were recorded.

9031 12/19/2014 03:13 PM Jing Tao

Change methods'name base on the change on the source code.

9029 12/19/2014 11:19 AM Jing Tao

Add the code to test the methods of determining if a sid or guid exists.

9027 12/17/2014 04:58 PM Jing Tao

Add a test method to the method to get head version of a sid.

9025 12/17/2014 02:13 PM Jing Tao

Change the test method base on the change of throwing a new sql exception on the getLocalId method.

8897 10/14/2014 01:45 PM Jing Tao

Add a test method to test the method determining if there is a delete event for the given id.

8810 07/23/2014 04:19 PM ben leinfelder

add support for v2 DataONE API.

8806 06/01/2014 08:48 AM ben leinfelder

handle login/logout when testing using metacat client (recent refactoring to use more standard http client code)

8802 05/29/2014 02:53 PM ben leinfelder

remove dependency on HttpMessage that was in the utilities project but is now removed in favor of newer (standard) http client library code.

8748 04/24/2014 01:28 PM ben leinfelder

switch to use FIleUpload instead of O'Reilly COS library for handling chunked file uploads. https://projects.ecoinformatics.org/ecoinfo/issues/6517

8697 03/04/2014 10:23 AM Jing Tao

Add the test class for the pisco account.

8696 03/04/2014 10:22 AM Jing Tao

Remove the test method for the pisco account since it maybe fails because of the fire wall issue.

8695 03/04/2014 09:48 AM Jing Tao

Add the login test of the pisco account.

8649 02/25/2014 05:44 PM Jing Tao

Change the password.

8625 02/20/2014 01:37 PM ben leinfelder

add test for invalid dryad content -- should be rejected because it is not schema valid.

8624 02/20/2014 12:42 PM ben leinfelder

clean up dryad test doc - only use D1 api. https://projects.ecoinformatics.org/ecoinfo/issues/6419

8622 02/20/2014 10:35 AM ben leinfelder

test for inserting dryad instance doc. https://projects.ecoinformatics.org/ecoinfo/issues/6419

8620 02/19/2014 04:43 PM ben leinfelder

initial basic test of inserting dryad metadata. NOTE: uses metacat api, not dataone api. https://projects.ecoinformatics.org/ecoinfo/issues/6419

8559 02/03/2014 04:35 PM Jing Tao

Add a method to test an alias account in the ldap server.

8304 10/09/2013 11:52 PM Matt Jones

Reviewed code for all uses of FileInputStream, checking to see if the method should be closing the stream, and if so, closing it in the method as well as in the finally clause to ensure we don't leak file descriptors.

8265 09/23/2013 03:54 PM ben leinfelder

Refer to metacat.war deployments since those are now the default. https://projects.ecoinformatics.org/ecoinfo/issues/6082

8178 09/10/2013 03:17 PM ben leinfelder

check both previous and current data revisions when updating packages. https://projects.ecoinformatics.org/ecoinfo/issues/5647

8102 08/01/2013 12:12 PM ben leinfelder

do not use a URL that could resolve when testing the Metacat inaccessible exception.

8099 07/31/2013 11:34 PM ben leinfelder

use shared metacatContextDir variable for calls to Harvester.loadProperties(metacatContextDir);

7843 07/03/2013 10:13 AM ben leinfelder

add Metacat servlet action to force the reindexing of one or more or all pids in the system. https://projects.ecoinformatics.org/ecoinfo/issues/5945

7476 12/12/2012 02:38 PM ben leinfelder

move DocInfo parsing into utilities project so that it can be used by Morpho as well as Metacat.
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5737

7465 12/07/2012 10:30 AM ben leinfelder

include identifier.guid in the test SQL clause.

7407 10/18/2012 03:14 PM ben leinfelder

simplify the xml_access query, and instead use guid to check for permission. Now the docid/rev join (to get most recent version for search results) happens "higher up" in the query.
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5696

7167 05/04/2012 02:50 PM ben leinfelder

test for running concurrent Metacat queries to mimic Kepler data search.
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5518

7137 04/17/2012 03:15 PM ben leinfelder

no not record EML access rules that use the "denyFirst" permOrder.
https://redmine.dataone.org/issues/2614

6829 01/03/2012 03:38 PM ben leinfelder

defer to super class member variables

6796 12/16/2011 09:37 AM ben leinfelder

adjust after refactoring tests that use EML queries

6790 12/15/2011 05:32 PM ben leinfelder

query for deleted metadata when testing that replication communicated the deletion. to check data, we try to update the data object on the target node (which should fail)

6753 12/08/2011 01:15 PM ben leinfelder

prepared statement toString() does not include quotes (') around the inserted values -- now the test reflects this.

6751 12/08/2011 11:27 AM ben leinfelder

Metacat now keeps track of permissions on a per-version basis -- the test reflects this change in behavior.
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5560

6744 12/07/2011 12:18 PM ben leinfelder

refactor Metacat access handling to be on a per-revision basis so that it more closely aligns with the DataONE approach
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5560

6739 12/06/2011 02:51 PM ben leinfelder

update test to reflect newer change:
handle queries with predicates correctly.
when docids are used in the return field look up, we need to make sure they are included in the values in the correct order for their corresponding parameter place holders (?)

6716 11/29/2011 04:21 PM Jing Tao

Add new test method to test getAccessControl.

6695 11/28/2011 12:34 PM ben leinfelder

use IOUtils for testing read/write of XML strings. This goes along with the utilities project change to use the same apache commons IO library. Be sure to clean the utilities checkout in order to catch the right utilities svn tag when building!

6602 11/04/2011 12:32 PM ben leinfelder

uses prepared statement parameter binding for queries
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5527

6542 10/20/2011 02:03 PM ben leinfelder

add User-Agent logging to support D1 requirements

6360 07/20/2011 02:48 PM ben leinfelder

remove CrudServiceTest reference in main Metacat test (about to remove from svn)

6356 07/20/2011 11:37 AM ben leinfelder

merge changes from 1.9.5 branch that read site docs from SVN not a defunct LTER server

6211 06/24/2011 09:33 PM ben leinfelder

do not use pisco for referral testing (merge from 1.9.5)

6208 06/24/2011 09:06 PM ben leinfelder

merge 1.9.5 changes to trunk (delete now preserves access rules and docs can be read after deletion)

6156 06/17/2011 01:52 PM Jing Tao

Get username and password from a property file.

6118 06/01/2011 01:45 PM ben leinfelder

handle timed replication of system metadata. there are still a few outstanding issues:
-track server location of system metadata-only entries
-replication policy flag for system metadata-only entries?
-locking for replicated entries?
-forced replication of entries

6099 05/25/2011 11:59 AM ben leinfelder

-remove system metadata guid -> local id mapping (there is no document for system metadata now)
-include system metadata elements when replicating data objects (TODO: transfer all system metadata structures with the docinfo request).
TODO: remove docid+rev from the systemMetadata table definition

6095 05/19/2011 07:31 PM Matt Jones

Commenting out these MetacatRestClient tests because the Metacat RestService is no longer registered as a servlet and needs to be removed, along with the associated MetacatRestClient and tests.

6094 05/19/2011 07:06 PM Matt Jones

Fixed MetaCatServletTest test failures by removing the hardcoded username/passwords used in the tests and replacing those with data from metacat.properties.

6093 05/19/2011 05:05 PM Matt Jones

Fix AuthLdapTest to use accounts that are more reliable when searching for existing accounts in the getPrincipals output.

6052 04/28/2011 01:53 PM rnahf

removed newline addition to test doc now that the newline problem is fixed in utilities project. Small adjustments to comments and debug statements to aid in debugging. Reordered tests to remove possible insertion between read and getLastDocid test.

6049 04/25/2011 04:16 PM Jing Tao

Make this class be the subclass of the MCTestCase. The super class will initialize the property service for it.

6047 04/25/2011 02:28 PM rnahf

commenting out the pisco user tests, since they only work in production.

6046 04/25/2011 02:24 PM rnahf

put in more explanatory exception methods in the private helper functions that throw exceptions, and some debug statements in the onlineData201CasesTest_1 test.

6043 04/24/2011 07:00 PM Chris Jones

Due to changes in MetacatHandler that creates system metadata from uploaded EML documents, OnlineDataAccessTest was failing certain tests because of errors in how the test documents were originally uploaded. MetacatHandler.createSystemMetadata() was throwing exceptions because of these errors, specifically when a data document is uploaded with a docid that is difeerent than the docid statement in the EML distribution URL. Most errors involved stated docids with .2 versions, and the metadata had .1 versions....

6006 03/03/2011 08:15 AM Chris Jones

Fixed the testNCEASLogin() password that I mistakenly changed.

6005 03/03/2011 07:47 AM Chris Jones

Now that MetacatHandler creates GUID identifier mappings and system metadata, many of the tests in IdentifierManagerTest were failing that were manually creating id mappings and system metadata.
Modified testCreateMapping() and testCreateSystemMetadataMapping() to use docids that haven't been inserted to just exercise the methods....

6004 03/02/2011 04:44 PM Chris Jones

Added a new test method testDeleteDocumentByGUID() to ensure MetacatHandler can delete based on GUID, but fall back to docid if the GUID isn't present. Modified CrudServiceTest and made some private methods public to leverage the D1 REST calls in that library (i.e. create() a doc with a GUID).

5946 02/10/2011 06:07 PM Jing Tao

Add a method to test download a schema with included schemas.

5942 02/10/2011 10:27 AM Jing Tao

Add a test file for XMLSchemaServcieTest.

5940 02/09/2011 05:03 PM Jing Tao

Add a junit test file for testing the XMLSchemaParser class.

5889 02/03/2011 09:21 AM ben leinfelder

use more unique scope (document id prefix) so that getlastdocid runs successfully. use superclass generateDocumentId() method

5887 02/02/2011 03:52 PM berkley

adding fields for additional system metadata info

5757 12/27/2010 11:25 AM ben leinfelder

create another test for various i18n features including eml 2.1.1
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2495

5754 12/22/2010 01:35 PM ben leinfelder

uncomment the other test cases and make sure we do the clean up when the tests are complete (delete the uploaded documents)

5752 12/21/2010 02:26 PM ben leinfelder

use detected XML encoding when reading/writing files
use UTF-8 as default when performing queries in the DB (assume DB is using UTF-8)
remove as many PrintWriters (uses system default character encoding only) as possible and construct OutputStreamWriters where explicit encoding can be given....

5750 12/20/2010 02:19 PM berkley

fix for paths with semi-colons or other 'reserved' characters in them for D1 rest services

5749 12/17/2010 04:38 PM ben leinfelder

correct the prolog

5747 12/17/2010 11:29 AM ben leinfelder

add XmlStreamReader test for determining encoding

5745 12/16/2010 12:45 PM berkley

found a failure when using an InputStreamReader without an encoding

5744 12/16/2010 12:10 PM berkley

a test to explore character encoding with utf8 chars

5712 12/09/2010 10:41 AM ben leinfelder

support EML 2.1.1

5711 12/09/2010 10:30 AM ben leinfelder

include anonymous parameter when getting report

5709 12/08/2010 04:59 PM ben leinfelder

add support for EML 2.1.1

5480 08/04/2010 02:47 PM berkley

merging changes from branch

5478 08/04/2010 02:45 PM berkley

merging test changes into the trunk

5452 07/26/2010 02:47 PM berkley

fixed identifier manager problem with getting guid for systememtadaa doc

5424 07/06/2010 11:58 AM berkley

fixed bug in access control where the sessionid was not correctly passed along so changes of privileges were not being made

5377 06/09/2010 02:24 PM berkley

working on a function to create dataone system metadata docs for legacy metacat objects that do not have SM.

5337 05/07/2010 03:15 PM berkley

removed CrudService dependency on servlet params. CrudService is now a singleton. I'm getting an error from metacat saying it can't find teh systemmetadata schema, even though it is, in fact, registered with metacat. need to identify why this is happening.

5335 05/03/2010 05:23 PM berkley

added a test for CrudService and added tests for IdentifierManager for each method

5317 04/15/2010 09:47 AM daigle

Add a debug statement to show existing doc id

5291 03/22/2010 08:55 PM Matt Jones

Refactored putObject method to separate the create() and update() portions in order to match the method signatures needed for DataONE.

5287 03/18/2010 04:02 AM Matt Jones

Modified ResourceHandler.deleteObject() to take a globally unique id (guid)
as input rather than a metacat-conformant docid. The guid is translated
into a metacat docid which is then used in the handleDelete() call. So now
Metacat supports use of arbitrary identifiers for delete operations, but...