Project

General

Profile

  • svn:keywords: Author, Date, Revision, RCSfile

# Date Author Comment
10296 05/17/2017 09:58 PM Jing Tao

Reget the object inputstream in order to calculate the correct checksum.

10284 05/17/2017 08:26 PM Jing Tao

Add a method to test the miss-matched checksum for creating a metadata object.

10282 05/17/2017 03:37 PM Jing Tao

Add a new test method to test the miss-matched checksum for the data object.

10268 05/16/2017 09:54 PM Jing Tao

Revised the method for testing replication. It did nothing but does test the replication between the mock mn and the local host.

10108 12/08/2016 02:18 PM Jing Tao

Add junit test methods for testing circular obsoletes/obsoletedBy chain in the mn.updateSystemmetadata method.

10023 10/19/2016 03:35 PM Jing Tao

Add a test method to test different users if they can update system metadata.

9834 07/06/2016 04:54 PM Jing Tao

Replaced the JiBXException by MarshallingException.

9590 03/25/2016 10:44 AM Jing Tao

Add a junit test to test using the noaa format id to validate a xml object.

9495 01/20/2016 11:30 AM Jing Tao

The getPackage method should throw an exception since the id is a data object.

9378 10/22/2015 04:28 PM Jing Tao

Rearrange some test cases.

9377 10/22/2015 04:09 PM Jing Tao

Add a new test to test the checksum matching for mn.update.

9351 10/01/2015 12:30 PM Jing Tao

Add the testArchive method.

9336 09/24/2015 05:21 PM Jing Tao

Change the test method for the updateSystemMetadata method.

9306 08/25/2015 03:26 PM Jing Tao

Use the application/bagit-097 to replace application/bagit.

9289 08/10/2015 04:56 PM Jing Tao

Change the format id to be "application/bagit" in the getPackage method.

9285 08/06/2015 02:34 PM Jing Tao

Fixed a bug to increase the serial version

9282 08/06/2015 12:04 PM Jing Tao

Increased the serial version during the test.

9281 08/06/2015 11:05 AM Jing Tao

Increase serial version during the test of updateSystemMetadata method.

9279 08/05/2015 04:22 PM Jing Tao

Restore the commented out tests.

9278 08/05/2015 04:20 PM Jing Tao

Add more test to test the code to create branch obsolete chain.

9276 08/04/2015 03:54 PM Jing Tao

Add a test method to test the update of the obsoletes and obsoletedBy fields.

9264 07/27/2015 04:21 PM Jing Tao

Add the test to test new rules: cn and other client calling the method on the authoritative node can call the mn.update.

9201 05/07/2015 06:14 PM Jing Tao

Add the code to test scenario that a user tries to update an archived object.

9191 05/01/2015 04:27 PM Jing Tao

Add more scenario for check isAuthorized.

9167 04/13/2015 06:19 PM Jing Tao

Add the junit test for testing the updateSystemMetadata method.

9158 03/31/2015 04:06 PM Jing Tao

Add a code to test the getLogRecord method handling SID.

9147 03/09/2015 05:21 PM Jing Tao

Add the junit test method for listViews.

9052 12/31/2014 03:51 PM Jing Tao

Add the code to test series id in the archive, delete, isAuthorized and systemMetadataChanged method.

9049 12/30/2014 02:10 PM Jing Tao

Add the code to test the create and update methods using invalid sid in the system metadata.

9042 12/29/2014 02:35 PM Jing Tao

Add the code to test getChecksum.

9039 12/24/2014 03:43 PM Jing Tao

Add the test code for getSystemMetadata(sid) and describe(sid).

9035 12/23/2014 12:03 PM Jing Tao

Add two updates on the testGetSID method.

9034 12/23/2014 11:34 AM Jing Tao

Add the code to test getting test series ids.

8952 11/03/2014 04:15 PM Jing Tao

Add junit test method for saving a metadata document with unmatched xml encoding declaration.

8908 10/15/2014 04:56 PM Jing Tao

Remove an import.

8906 10/15/2014 04:49 PM Jing Tao

Added the junit tests to test the NotFoundException having the deleted information.

8833 08/07/2014 02:12 PM ben leinfelder

remove unused tests

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

add support for v2 DataONE API.

8745 04/23/2014 10:19 AM ben leinfelder

correct the ORE lookup query syntax and add junit assertion to check that it continues to function as expected. https://projects.ecoinformatics.org/ecoinfo/issues/6529

8209 09/16/2013 04:19 PM ben leinfelder

test that d1 node admin is allowed all permissions. https://projects.ecoinformatics.org/ecoinfo/issues/6086

7853 07/05/2013 06:33 PM ben leinfelder

MN.getPackage() - test with ORE that includes 2 data files and a "metadata" file (still should be using EML for that test). https://projects.ecoinformatics.org/ecoinfo/issues/6026

7850 07/04/2013 12:33 PM ben leinfelder

First pass at MN.getPackage() implementation using Bagit library from LOC. https://projects.ecoinformatics.org/ecoinfo/issues/6026

7816 06/21/2013 11:11 AM ben leinfelder

correct regex for whitespace in D1 identifier.

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

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

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)

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.

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.

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

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

catch all possible exceptions

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

remove catch blocks for unthrown exceptions

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.

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

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

MN.setAccessPolicy() is deprecated, commenting out the 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

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

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

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

Update tests to use the DataONE 0.6.4 schema and types.

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

refactor Constants

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

use new "v1" types from DataONE

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

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

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