Project

General

Profile

Statistics
| Revision:

# Date Author Comment
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...

5286 03/18/2010 03:11 AM Matt Jones

Added support to ResourceHandler to allow the putObject method to use
arbitrary guid strings as input. These strings are examined, and if they
match the Metacat docid format (scope.id.rev), they are used directly. If
the id is a string in another format, a new localId is generated based on...

5284 03/17/2010 11:27 PM Matt Jones

Updated MetacatRestClientTest so that the tests are actually calling fail()
when errors occur, and fixed all sixteen tests so that they run successfully
and can be run from any client (i.e., they don't depend on particular
documents being present in Metacat). The 'restfiles' directory can probably ...

5282 03/17/2010 06:54 PM Matt Jones

Added initial support for arbitrary string identifiers in metacat (referred to as a guid). The new identifier table is used to map arbitrary string identifiers to Metacat's current docid format (referred to as the localId). Added a new IdentifierManager class to manage this table, adding new mappings as objects are added to the system. Modified the MetacatTest service to utilize this mapping table to look up a localId from a guid. IdentiferManagerTest is working with these guids now, as is the MetacatTest service get() method, but other parts of the system are unaware of them (e.g., create, update, delete operations are unaware, and no mapping is created when new documents are created). As a consequence, the MetacatRestClientTest is not working (although it also had lots of hardcoded dependencies that need to be fixed as well).

5211 02/03/2010 06:58 PM Matt Jones

Merging in REST interface implementation that was created by Serhan Akin. Main change is
a refactored MetaCatServlet.java class, in which all of the handle* methods were moved
into a separate MetacatHandler.java class. This allows both the standard MetaCatServlet...

5206 02/03/2010 01:14 PM daigle

add delay in insertSpatialDocs test to avoid buildIndex conflict

5139 11/24/2009 12:28 PM daigle

Fix errors in workflow scheduler unit test

5114 11/09/2009 08:51 AM daigle

Beef up comments

5111 11/06/2009 02:47 PM daigle

Add access api test and supporting files

5110 11/06/2009 02:46 PM daigle

handle ben's change to the metacat client read api because it returns inputstream now

5035 08/24/2009 02:42 PM daigle

Change location of PropertyService to properties directory

5027 08/14/2009 02:26 PM daigle

Change MetaCatVersion to MetacatVersion

5016 08/06/2009 10:59 AM daigle

Fix references to db classes that were moved and refactoring missed.

5003 07/30/2009 10:14 AM daigle

Remove unneeded exception handling

4999 07/27/2009 02:47 PM Duane Costa

Implement fix for Bug #4245: Harvester command line scripts don't execute.

4862 03/25/2009 02:41 PM daigle

Handle UtilException

4816 02/23/2009 11:29 AM daigle

Remove initialization of MetacatUtil.buildIndexPaths in test files. This is taken care of in the background now using SystemUtil.getIndexPaths()

4735 01/08/2009 09:48 AM daigle

The test was failing because it was reading the sitemap file into a buffer and the limit was being reached. Used the FileUtil string reader to get the file.

4719 12/26/2008 04:33 PM daigle

Create a propertyService.getTestInstance method to facilitate unit tests

4701 12/26/2008 01:11 PM daigle

Renamed MetaCatUtil to MetacatUtil

4700 12/26/2008 01:10 PM daigle

Renamed MetaCatUtil to MetacatUtil

4680 12/17/2008 02:18 PM daigle

Added EML 2.1.0 test cases.

4679 12/17/2008 02:17 PM daigle

Change Inline to be inline in the test eml. Added debug statements.

4510 11/04/2008 04:03 PM daigle

Insert documents with different permissions and make sure only the publically readable ones get pulled into the sitemap file.

4509 11/04/2008 04:02 PM daigle

Change getAccessBlock from private to protected so it can override the MCTestCase version

4508 11/04/2008 04:01 PM daigle

Stripped out common eml document creation elements and put into the MCTestCase base class

4504 11/03/2008 11:07 AM daigle

Add debug statements at the beginning of every test module.

4478 10/22/2008 10:18 AM daigle

Add EML 2.1.0 access scenarios

4477 10/21/2008 03:32 PM daigle

Add test cases for EML 2.1.0 documents. Add some generics typing.

4476 10/21/2008 03:32 PM daigle

Add test cases for EML 2.1.0 documents. Add some generics typing.

4445 10/10/2008 05:15 PM daigle

New test case to test xml schema registration.

4407 09/29/2008 11:15 AM daigle

Delete test document after test is through.

4385 09/24/2008 11:28 AM daigle

Convert remainder of tests that use PropertyService to extend the MCTestCase class

4384 09/24/2008 11:28 AM daigle

Convert remainder of tests that use PropertyService to extend the MCTestCase class

4360 09/19/2008 08:31 AM daigle

Add debug statements

4356 09/16/2008 01:39 PM daigle

Increase test cases to include testing read action which reads file from disk and squery which reads from db. Create separate cases for eml 2.0.1 and 2.1.0

4355 09/16/2008 01:38 PM daigle

Move common constants into MCTestCase base class

4339 09/03/2008 09:08 AM daigle

Add more debug statements

4338 09/03/2008 09:08 AM daigle

Add more debug statements

4337 09/03/2008 09:07 AM daigle

Make sure DatabaseService gets instantiated

4333 08/28/2008 01:28 PM daigle

Add test cases for eml 2.1.0 documents

4303 08/22/2008 04:29 PM daigle

Add debug statements

4302 08/22/2008 04:28 PM daigle

Add more PropertyService tests

4301 08/22/2008 04:27 PM daigle

Convert class to extend MCTestCase. Add debug statements.

4231 08/13/2008 08:59 AM daigle

Convert properties to camel case

4213 08/05/2008 05:50 PM daigle

qualify xml and eml properties with an xml. prefix

4212 08/05/2008 05:33 PM daigle

Continue to qualify property names