Project

General

Profile

Statistics
| Revision:

# Date Author Comment
7816 06/21/2013 11:11 AM ben leinfelder

correct regex for whitespace in D1 identifier.

7693 05/14/2013 06:10 PM Jing Tao

Add code to test title for the query result.

7692 05/14/2013 05:51 PM Jing Tao

Rewrite some methods, so the query result can be processed many times.

7686 05/10/2013 03:02 PM Jing Tao

Removed the commented out text cases and add a test for archvied document.

7679 05/09/2013 12:19 AM Jing Tao

Call setting certificate location to be the test one after getting the MN baseurl.
The method to getting MN baseurl somehow calls CN and it set the certificate location to be /var/metacat/certs/METACAT1.pem.

7676 05/08/2013 04:53 PM Jing Tao

Add a distrusted certificate for the testing.

7675 05/08/2013 04:53 PM Jing Tao

Use the MNode to query the server when we use certificates to set up the session.

7674 05/08/2013 03:34 PM Jing Tao

Add the code to test the user with a distrusted certificate.

7670 05/08/2013 10:42 AM Jing Tao

Add tests to test group and rightsholder.

7668 05/07/2013 08:34 PM Jing Tao

Change the delete to archive.

7667 05/07/2013 06:52 PM Jing Tao

Add a test for testing access control for the solr query.

7622 04/24/2013 07:34 PM ben leinfelder

use maven to manage most jar dependencies in Metacat.
Exceptions include: LSID, Datamamager (EML),

7516 03/13/2013 05:11 PM ben leinfelder

lookup the title for EML files when registering DOIs.
lookup the creator from DataONE CN (if available).
add EML-based test. http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5513

7513 03/12/2013 04:45 PM ben leinfelder

include the create test in the suite

7510 03/12/2013 03:20 PM ben leinfelder

Correctly mint and register DOIs in teh MN API implementation. Add tests to exercise minting and creating. http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5513

7492 02/21/2013 05:13 PM ben leinfelder

remove older lucene library and include ORE test to make sure that change does not prevent us from generating OREs. http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5874

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

7466 12/07/2012 10:35 AM ben leinfelder

return from test when we encounter the NotImplemented exception for CN.search()

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

include identifier.guid in the test SQL clause.

7464 12/07/2012 10:25 AM ben leinfelder

CN.search() id not implemented by metacat -- making that explicit and also testing for it.

7422 11/10/2012 03:35 PM Chris Jones

In migrating to Hazelcast 2.4.x, replace deprecated methods.

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

7402 10/15/2012 04:41 PM ben leinfelder

remove use of HttpMessage (in morpho.jar) in favor of standard httpclient methods for calling the servlet in tests

7379 09/12/2012 02:22 PM ben leinfelder

use CDATA for docname field in docInfo so that XML parser ignores the content that can contain characters like "&

7352 08/07/2012 12:10 PM ben leinfelder

sleep before updating and deleting test documents - otherwise their index entries may not be fully written and this causes errors (update and delete first attempt to remove index references, but if they are not in the DB yet then they are not removed but then they do get added and the FK constraints make the delete fail). Since we know indexing occurs in a separate thread with a configured delay, we just use this same delay in our testing.

7264 06/07/2012 10:45 AM Jing Tao

Use a final static string to replace the hard code.
Search document title rather than id in testReplicateEML_AtoB method.

7261 06/07/2012 08:23 AM ben leinfelder

use CN session when testing getLogRecords() and getOperationStatistics() becuase they are now protecting "sensitive" information

7225 06/01/2012 10:39 AM ben leinfelder

use current default tomcat6 deploy directory

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

7164 05/02/2012 09:11 AM ben leinfelder

include testSynchronizationFailed() and call as the CN subject so that it is authorized.

7163 05/02/2012 09:06 AM ben leinfelder

use MN (self) as the Session.subject so that the MN.delete() call is successful.

7161 05/01/2012 02:55 PM ben leinfelder

comment out testDelete because it requires acting as the MN
comment out testSynchronizationFailed because it requires acting as the CN

7160 05/01/2012 02:49 PM ben leinfelder

uncomment the MN tests (I bet this was an oversight during local testing)

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

7101 03/28/2012 11:08 AM ben leinfelder

change ordering of getLogRecords() parameter -- pidFilter is in the middle now

7099 03/27/2012 04:35 PM ben leinfelder

upgrade to latest RC in libclient and common jars -- includes updated getLogRecords and new mn.generateIdentifier method

7040 03/05/2012 06:36 PM Chris Jones

Add testIsEquivIdentityAuthorized() to ensure that [MN|CN].isAuthorized() is authorizing equivalent identities correctly. Note: Using TypeMarshaller.marshalTypeToOutputStream(type, System.out) to serialize an object seems to jack up output to stdout - not sure why.

6999 02/08/2012 10:58 AM ben leinfelder

refactor D1-specific upgrade utilities into their own package

6959 01/26/2012 09:34 PM ben leinfelder

test harness for running system metadata generation outside of the upgrade process

6958 01/26/2012 02:20 PM ben leinfelder

include comment about KNB estimated time to run during upgrade:
Total time: 20 minutes 58 seconds

6956 01/26/2012 10:49 AM ben leinfelder

use "test" to exercise upgrade code on staging DB.

6942 01/23/2012 03:36 PM Chris Jones

Update the MNodeServiceTest to test the validity of the node document returned by getCapabilities() by parsing it with the TypeMarshaller.

6934 01/23/2012 11:08 AM ben leinfelder

use RC-1 Dataone jars

6882 01/11/2012 11:31 AM ben leinfelder

remove method: assertRelation
https://redmine.dataone.org/issues/2158

6879 01/11/2012 09:39 AM Chris Jones

Use a Date with resolution to milliseconds.

6842 01/04/2012 02:48 PM ben leinfelder

include the EML and data tests in the suite

6841 01/04/2012 02:38 PM ben leinfelder

debugging data locking test

6840 01/04/2012 02:06 PM ben leinfelder

cannot check for deleted data since it is forever available (archived)

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

defer to super class member variables

6811 12/20/2011 05:13 PM ben leinfelder

do not include the "v1" in the base url for the target MN

6804 12/19/2011 12:56 PM ben leinfelder

update tests to comply with these chenages:
new jars with many changes -- including new CN methods: ping, describe, listChecksumAlgorithm. Removed MN.setAccessPolicy. Refactored CN.setOwner() to CN.setRightsHolder().

6797 12/16/2011 09:42 AM ben leinfelder

for test to compile, provide BaseException param for setReplicationStatus. I used a NotAuthorized instance.

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)

6789 12/15/2011 05:11 PM ben leinfelder

add test for data locking

6788 12/15/2011 01:59 PM ben leinfelder

delete data and eml on the home Metacat and check that the change propagates to the target

6785 12/13/2011 05:28 PM ben leinfelder

actually include the test in the suite
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5520

6784 12/13/2011 05:17 PM ben leinfelder

EML replication test with insert, update and set access
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5520

6778 12/13/2011 03:15 PM ben leinfelder

test update and set access during replication from A->B
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5520

6776 12/13/2011 11:51 AM ben leinfelder

a minute for replication?

6772 12/13/2011 09:17 AM ben leinfelder

comment out B->A test
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5520

6771 12/12/2011 04:33 PM ben leinfelder

use correct URLs for replication/Metacat client

6770 12/12/2011 02:57 PM ben leinfelder

simple tests for 2-way data replication
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5520

6755 12/08/2011 02:06 PM ben leinfelder

fix tests:
-insert default objectFormatList from d1_common (includes schemaLocation now)
-calculate checksum for the system metadata using the ChecksumUtil in d1_common

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.

6715 11/29/2011 04:20 PM Jing Tao

Add eml test file which contains access part.

6698 11/28/2011 03:04 PM ben leinfelder

catch all possible exceptions

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

6595 11/02/2011 08:40 PM ben leinfelder

http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5527

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.