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).
Add a method to test download a schema with included schemas.
Add a test file for XMLSchemaServcieTest.
Add a junit test file for testing the XMLSchemaParser class.
use more unique scope (document id prefix) so that getlastdocid runs successfully. use superclass generateDocumentId() method
adding fields for additional system metadata info
create another test for various i18n features including eml 2.1.1http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2495
uncomment the other test cases and make sure we do the clean up when the tests are complete (delete the uploaded documents)
use detected XML encoding when reading/writing filesuse 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....
fix for paths with semi-colons or other 'reserved' characters in them for D1 rest services
correct the prolog
add XmlStreamReader test for determining encoding
found a failure when using an InputStreamReader without an encoding
a test to explore character encoding with utf8 chars
support EML 2.1.1
include anonymous parameter when getting report
add support for EML 2.1.1
merging changes from branch
merging test changes into the trunk
fixed identifier manager problem with getting guid for systememtadaa doc
fixed bug in access control where the sessionid was not correctly passed along so changes of privileges were not being made
working on a function to create dataone system metadata docs for legacy metacat objects that do not have SM.
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.
added a test for CrudService and added tests for IdentifierManager for each method
Add a debug statement to show existing doc id
Refactored putObject method to separate the create() and update() portions in order to match the method signatures needed for DataONE.
Modified ResourceHandler.deleteObject() to take a globally unique id (guid)as input rather than a metacat-conformant docid. The guid is translatedinto a metacat docid which is then used in the handleDelete() call. So nowMetacat supports use of arbitrary identifiers for delete operations, but...
Added support to ResourceHandler to allow the putObject method to usearbitrary guid strings as input. These strings are examined, and if theymatch the Metacat docid format (scope.id.rev), they are used directly. Ifthe id is a string in another format, a new localId is generated based on...
Updated MetacatRestClientTest so that the tests are actually calling fail() when errors occur, and fixed all sixteen tests so that they run successfullyand can be run from any client (i.e., they don't depend on particulardocuments being present in Metacat). The 'restfiles' directory can probably ...
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).
Merging in REST interface implementation that was created by Serhan Akin. Main change isa refactored MetaCatServlet.java class, in which all of the handle* methods were movedinto a separate MetacatHandler.java class. This allows both the standard MetaCatServlet...
add delay in insertSpatialDocs test to avoid buildIndex conflict
Fix errors in workflow scheduler unit test
Beef up comments
Add access api test and supporting files
handle ben's change to the metacat client read api because it returns inputstream now
Change location of PropertyService to properties directory
Change MetaCatVersion to MetacatVersion
Fix references to db classes that were moved and refactoring missed.
Remove unneeded exception handling
Implement fix for Bug #4245: Harvester command line scripts don't execute.
Handle UtilException
Remove initialization of MetacatUtil.buildIndexPaths in test files. This is taken care of in the background now using SystemUtil.getIndexPaths()
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.
Create a propertyService.getTestInstance method to facilitate unit tests
Renamed MetaCatUtil to MetacatUtil
Added EML 2.1.0 test cases.
Change Inline to be inline in the test eml. Added debug statements.
Insert documents with different permissions and make sure only the publically readable ones get pulled into the sitemap file.
Change getAccessBlock from private to protected so it can override the MCTestCase version
Stripped out common eml document creation elements and put into the MCTestCase base class
Add debug statements at the beginning of every test module.
Add EML 2.1.0 access scenarios
Add test cases for EML 2.1.0 documents. Add some generics typing.
New test case to test xml schema registration.
Delete test document after test is through.
Convert remainder of tests that use PropertyService to extend the MCTestCase class
Add debug statements
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
Move common constants into MCTestCase base class
Add more debug statements
Make sure DatabaseService gets instantiated
Add test cases for eml 2.1.0 documents
Add more PropertyService tests
Convert class to extend MCTestCase. Add debug statements.
Convert properties to camel case
qualify xml and eml properties with an xml. prefix
Continue to qualify property names
Initial addition of PropertyService test.
Qualify harvester properties
Extend TestCase. Fix accountnum property getter.
Extend MCTestCase
Add verbose debug statements. These are toggled by the test.printdebug property in metacat.properties
Extend MCTestCase to handle initialization of PropertyService
Replace Options class with PropertyService and create PropertyService using log directory name instead of servlet context
Use qualified test properties
Merge 1.9 changes into Head
Check into cvs head. Modify some query string.
Check into cvs head. Add initialize option statment at the beginging of the class.
Check into cvs head. Add the statement to initialize option.
Check into cvs head. Move the initialize option statement to the begining of class.
Checkinto cvs head.Move the initialize option statement to the begining of class, since user name is using getting option.
Fixed syntax error: no ; at an end of import statement.
Changes to remove ANT tokens for the turnkey install project
Add code to test upload same identifier twice.
Remove commented test case.
Modified the test for nonlationcharacter.
Add a junit test for test AuthLdap. Currently we have getPrincipals test.
Add method to handle origianl data file error in IPCC eml document
Modify this class in order to correct data file name in some IPCC eml documents
Fixed the implement of java class which will upload ipcc data.
Add a file which will upload ipcc data to metacat.
In reuseSession and reuseInvalidSession method, metacat.logout statement were added to make sure it will use fresh Metacat object.
Add test cases to test combination of allow and deny rules. Modify the generate id method to make sure id is unique.