Project

General

Profile

Statistics
| Revision:

# Date Author Comment
6697 11/28/2011 02:44 PM ben leinfelder

act as a registered CN when calling CN methods -- create(), for example, is restricted to only be callable by a node of type CN.

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!

6688 11/23/2011 10:19 AM ben leinfelder

when comparing D1 Subject objects, use the equals() method not direct string comparison
https://redmine.dataone.org/issues/2050

6622 11/08/2011 03:49 PM ben leinfelder

upgrade to 1.0.1-SNAPSHOT DataONE jars

6620 11/08/2011 11:31 AM ben leinfelder

started replication unit test

6617 11/07/2011 05:03 PM Chris Jones

MockCNode.getSystemMetadata() no longer throws InvalidRequest.

6612 11/07/2011 11:50 AM ben leinfelder

remove catch blocks for unthrown exceptions

6606 11/04/2011 02:45 PM ben leinfelder

uses prepared statement instead of plain old statement.
deprecated the DBConnection.createStatement() method to discourage direct parameter value use in favor of parameter binding.
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5527

6605 11/04/2011 02:35 PM Chris Jones

Add a test for systemMetadataChanged. This should be fleshed out more so that the test uses a CN certificate.

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

6597 11/02/2011 10:09 PM ben leinfelder

check object format id values since they are not Comparable objects

6596 11/02/2011 09:58 PM ben leinfelder

make MNodeServiceTest pass JUnit testing

6594 11/02/2011 08:08 PM Chris Jones

Update CNodeService test to include serialVersion in it's calls as appropriate.

6589 11/02/2011 05:32 PM ben leinfelder

restore -- apparently this was used with reflection in a test...

6577 11/01/2011 09:10 AM Chris Jones

MN.setAccessPolicy() is deprecated, commenting out the test.

6566 10/28/2011 08:42 PM ben leinfelder

removing non-junit file from the test area

6565 10/28/2011 08:39 PM ben leinfelder

load hazelcast test files from the classpath rather than from rob's personal directory.

6564 10/28/2011 04:05 PM Chris Jones

SystemMetadataManager's functionality is handled by IdentifierManager. Removing it and it's test.

6563 10/28/2011 04:01 PM Chris Jones

MetadataTypeRegister is now replaced by ObjectFormatService. Removing it and it's test.

6561 10/27/2011 05:51 PM ben leinfelder

move the DataONE 1.0.0-SNAPSHOT

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

add User-Agent logging to support D1 requirements

6541 10/20/2011 12:40 PM ben leinfelder

remove old RestServlet handler -- not used now

6538 10/14/2011 05:13 PM ben leinfelder

including newer d1 libclient that uses Foresite (and Jena) to construct/parse ORE resource maps for DataONE

6532 10/12/2011 11:17 AM ben leinfelder

update D1 jars to include recent SubjectList -> SubjectInfo refactoring and the SUBJECT_PUBLIC constant

6504 09/22/2011 02:22 PM ben leinfelder

use an actual data object (bytes of "test") when generating system metadata so that the checksum is a valid checksum

6452 09/16/2011 05:03 PM ben leinfelder

test relationship assertion using obsoletes

6446 09/16/2011 02:24 PM ben leinfelder

move bulk of the Hazelcast code into HazelcastService from CNodeService so that it is centrall located - easier to manage and configure

6440 09/15/2011 01:46 PM rnahf

cleaned up mock tests on hzObjectPathMap. split out code for mocking a datastore into MockObjectPathMap.

6437 09/15/2011 12:57 PM ben leinfelder

initialize Hazelcast from the custom configuration when initializing the Metacat service.

6431 09/14/2011 05:33 PM ben leinfelder

exercise the shared hazelecast system metadata map and custom loader/store by inserting normally and also directly into the map. both mechanisms allow up to read the same system metadata (only tested on single local instance)

6428 09/14/2011 03:18 PM ben leinfelder

test hzSystemMetadata Map and custom loader

6425 09/14/2011 02:41 PM rnahf

copied default hazelcast configuration from the jar into hazelcast.test.properties.xml, to get instances to talk to each other.

6424 09/14/2011 01:52 PM rnahf

configuring hazelcast tests

6420 09/14/2011 10:02 AM rnahf

further refactoring and start of unit tests for hazelcast elements

6413 09/12/2011 09:34 AM ben leinfelder

return the test Identifier so other tests can piggyback

6404 09/11/2011 12:24 PM Chris Jones

Update test for getReplicationStatus to reflect API change.

6397 09/07/2011 05:16 PM ben leinfelder

changes for schema update (d1_common)

6385 08/31/2011 02:37 PM Chris Jones

Update tests to use the DataONE 0.6.4 schema and types.

6378 08/03/2011 10:46 AM ben leinfelder

latest D1 jars - changes include:
updateSystemMetadata() impl for CN
new identifier methods (generate is its own method)
removal of the resourceMap pointer from system metadata

6372 07/28/2011 10:51 AM ben leinfelder

refactor Constants

6370 07/28/2011 10:48 AM ben leinfelder

refactor Constants and ServiceTypeUtil

6366 07/27/2011 04:25 PM ben leinfelder

use new "v1" types from DataONE

6362 07/20/2011 03:00 PM ben leinfelder

remove CrudService -- replaced by MNodeService and CNodeService

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

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

6357 07/20/2011 11:38 AM ben leinfelder

reset object input stream (testGet)
check for reserveIdentifier NotImplemented (expected)

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

6354 07/19/2011 08:09 AM Chris Jones

Return the new pid (not the obsoleted pid) on update(), and set the correct system metadata.

6349 07/14/2011 04:27 PM ben leinfelder

include Mock version of looking up the base url for our own node - for testReplicate().
still expecting a failure during MN.replicate() since we are trying to add the replica to the same MN from which it came.

6348 07/14/2011 03:12 PM ben leinfelder

allow alternative CNode implementations (subclasses) to be returned when D1Client.getCN() is called. The alternative is given in the Settings configuration via the D1Client.cnClassName property.
MockCNode in Metacat is an example of such an alternative and is used when Metacat requires methods of a CN be present for unit testing.

6338 07/13/2011 09:02 AM Chris Jones

Test that the obsoletes and derivedFrom system metadata fields were set correctly.

6337 07/12/2011 03:02 PM ben leinfelder

use objectFormatIdentifier for listObjects()
remove provisional system metadata indicator - Metacat will not implement reserveIdentifier()

6333 07/10/2011 07:56 PM ben leinfelder

add test for synchronization failed -- TODO: verify that the log record made it in the logs

6332 07/08/2011 04:48 PM ben leinfelder

provisional replicate() implementation -- does not check if the session's subject is "allowed" to do this.
the test also requires 2 servers -- right now it attempts to replicate with itself which will fail because of duplicate IDs

6331 07/08/2011 04:05 PM ben leinfelder

provisional version of getOperationStatistics() -- not clear if we are meant to aggregate by hour or by day

6329 07/08/2011 02:53 PM ben leinfelder

include test for replicate() method -- still fails as not implemented

6328 07/08/2011 02:52 PM ben leinfelder

allow null objects (use default checksum)

6327 07/08/2011 02:46 PM ben leinfelder

wire-up the getCapabilities() and getOperationStatistics() methods for when they are actually implemented (tests fail now)

6326 07/08/2011 02:30 PM ben leinfelder

test listObjects()

6325 07/08/2011 02:23 PM ben leinfelder

include MNAuthorization tests

6324 07/08/2011 02:08 PM ben leinfelder

refactor to use common superclass D1NodeServiceTest for shared methods

6322 07/07/2011 03:16 PM ben leinfelder

test for getLogRecords -- with some semi-reasonable expectations on the return that is expected

6320 07/07/2011 01:56 PM ben leinfelder

tests for isAuthorized and setAccessPolicy

6319 07/07/2011 01:36 PM ben leinfelder

include getLogRecords() test, though it is commented out at the moment

6317 07/07/2011 01:17 PM ben leinfelder

test for CN.getSystemMetadata()

6315 07/07/2011 01:09 PM ben leinfelder

test CN.get()

6314 07/07/2011 01:02 PM Chris Jones

Uncommented MNStorage tests.

6312 07/07/2011 12:31 PM Chris Jones

Send the correct Date format in testGetLogRecords(). I've commented out certain tests in the suite until isAuthorized() functionality is working. It is returning a NotFound exception even though the object is clearly in Metacat.

6309 07/07/2011 09:46 AM Chris Jones

Add MNodeServiceTest tests for MNCore, MNRead, MNStorage, MNAuthorization implementations. MNReplication remains to be tested, as does MNCore.getCapabilities() and getOperationStatistics().

6307 07/06/2011 04:30 PM ben leinfelder

add the d1_common formats if they do not exist on the server

6303 07/06/2011 01:35 PM ben leinfelder

remove resolve() test -- not implemented in Metacat

6295 07/05/2011 04:20 PM ben leinfelder

add methods for testing CNodeService impl. Still some failing tests, but whittling them down

6287 07/05/2011 11:54 AM ben leinfelder

refactor to test the entire CN service impl

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)

6195 06/23/2011 04:10 PM ben leinfelder

CNCoreImpl is replaced by CNodeService

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

Get username and password from a property file.

6141 06/15/2011 08:53 AM Chris Jones

Updated tests to use ObjectFormatCache.getInstance(), and added tests for CNCoreImpl.listFormats and getFormat().

6132 06/08/2011 06:24 AM Chris Jones

When calling SystemMetadata.getObjectFormat(), return the string value of the ObjectFormatIdentifier rather than ObjectFormat.toString() (which no longer returns the fmtid string).

6130 06/07/2011 02:56 PM ben leinfelder

organize imports so that it is clearer what dependencies exist on the D1 jars

6124 06/07/2011 09:53 AM Chris Jones

Merged in the D1_0_6_2_BRANCH changes that include the transition from ObjectFormat calls to ObjectFormatCache calls.

6122 06/06/2011 03:28 PM ben leinfelder

include GUID column for xml_access and related methods for storing/retrieving access rules

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

6097 05/24/2011 04:18 PM ben leinfelder

do not use XML files for storing SystemMetadata - use DB tables only.

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.

6092 05/19/2011 01:52 PM Matt Jones

Modified Metacat to build against the D1_SCHEMA_0_6_1 branch of the dataone schemas by incorporating the 0.6.1-SNAPSHOT version of d1_common and d1_libclient libraries, and refactoring Metacat code references to the d1 schema changed types.

6069 05/05/2011 10:50 AM rnahf

updating CrudServiceTest with better exception handling (more specific) to match refactored CrudService.java class

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....

6040 04/14/2011 05:13 PM Matt Jones

Cleaned up imports.

6039 04/14/2011 05:10 PM Matt Jones

Updated D1 libraries to head to eliminate problems with date parsing -- added
Joda jar to support date parsing. Removed hardcoded DN from test file. Now
CrudServiceTest is passing again.

6038 04/14/2011 03:41 AM Matt Jones

Remove hardcoded LDAP usernames from testing so that MetaCatServletNetTest will work even using alternate
LDAP servers.

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).