Reget the object inputstream in order to calculate the correct checksum.
Add a method to test the miss-matched checksum for creating a metadata object.
Add a new test method to test the miss-matched checksum for the data object.
Revised the method for testing replication. It did nothing but does test the replication between the mock mn and the local host.
Add junit test methods for testing circular obsoletes/obsoletedBy chain in the mn.updateSystemmetadata method.
Add a test method to test different users if they can update system metadata.
Replaced the JiBXException by MarshallingException.
Add a junit test to test using the noaa format id to validate a xml object.
The getPackage method should throw an exception since the id is a data object.
Rearrange some test cases.
Add a new test to test the checksum matching for mn.update.
Add the testArchive method.
Change the test method for the updateSystemMetadata method.
Use the application/bagit-097 to replace application/bagit.
Change the format id to be "application/bagit" in the getPackage method.
Fixed a bug to increase the serial version
Increased the serial version during the test.
Increase serial version during the test of updateSystemMetadata method.
Restore the commented out tests.
Add more test to test the code to create branch obsolete chain.
Add a test method to test the update of the obsoletes and obsoletedBy fields.
Add the test to test new rules: cn and other client calling the method on the authoritative node can call the mn.update.
Add the code to test scenario that a user tries to update an archived object.
Add more scenario for check isAuthorized.
Add the junit test for testing the updateSystemMetadata method.
Add a code to test the getLogRecord method handling SID.
Add the junit test method for listViews.
Add the code to test series id in the archive, delete, isAuthorized and systemMetadataChanged method.
Add the code to test the create and update methods using invalid sid in the system metadata.
Add the code to test getChecksum.
Add the test code for getSystemMetadata(sid) and describe(sid).
Add two updates on the testGetSID method.
Add the code to test getting test series ids.
Add junit test method for saving a metadata document with unmatched xml encoding declaration.
Remove an import.
Added the junit tests to test the NotFoundException having the deleted information.
remove unused tests
add support for v2 DataONE API.
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
test that d1 node admin is allowed all permissions. https://projects.ecoinformatics.org/ecoinfo/issues/6086
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
First pass at MN.getPackage() implementation using Bagit library from LOC. https://projects.ecoinformatics.org/ecoinfo/issues/6026
correct regex for whitespace in D1 identifier.
use CN session when testing getLogRecords() and getOperationStatistics() becuase they are now protecting "sensitive" information
include testSynchronizationFailed() and call as the CN subject so that it is authorized.
use MN (self) as the Session.subject so that the MN.delete() call is successful.
comment out testDelete because it requires acting as the MN comment out testSynchronizationFailed because it requires acting as the CN
uncomment the MN tests (I bet this was an oversight during local testing)
change ordering of getLogRecords() parameter -- pidFilter is in the middle now
upgrade to latest RC in libclient and common jars -- includes updated getLogRecords and new mn.generateIdentifier method
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.
Update the MNodeServiceTest to test the validity of the node document returned by getCapabilities() by parsing it with the TypeMarshaller.
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().
catch all possible exceptions
remove catch blocks for unthrown exceptions
Add a test for systemMetadataChanged. This should be fleshed out more so that the test uses a CN certificate.
check object format id values since they are not Comparable objects
make MNodeServiceTest pass JUnit testing
MN.setAccessPolicy() is deprecated, commenting out the test.
move the DataONE 1.0.0-SNAPSHOT
add User-Agent logging to support D1 requirements
update D1 jars to include recent SubjectList -> SubjectInfo refactoring and the SUBJECT_PUBLIC constant
Update tests to use the DataONE 0.6.4 schema and types.
refactor Constants
use new "v1" types from DataONE
Return the new pid (not the obsoleted pid) on update(), and set the correct system metadata.
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.
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.
Test that the obsoletes and derivedFrom system metadata fields were set correctly.
use objectFormatIdentifier for listObjects()remove provisional system metadata indicator - Metacat will not implement reserveIdentifier()
add test for synchronization failed -- TODO: verify that the log record made it in the logs
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
provisional version of getOperationStatistics() -- not clear if we are meant to aggregate by hour or by day
include test for replicate() method -- still fails as not implemented
wire-up the getCapabilities() and getOperationStatistics() methods for when they are actually implemented (tests fail now)
test listObjects()
include MNAuthorization tests
refactor to use common superclass D1NodeServiceTest for shared methods
Uncommented MNStorage tests.
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.
Add MNodeServiceTest tests for MNCore, MNRead, MNStorage, MNAuthorization implementations. MNReplication remains to be tested, as does MNCore.getCapabilities() and getOperationStatistics().