-
Notifications
You must be signed in to change notification settings - Fork 0
Test scripts
ccacciari edited this page Sep 12, 2017
·
2 revisions
In the folder B2SAFE-METADATA-HOME/test/B2Safe_neo4j_client_test there are a couple of bash scripts, which can be used to test the correct deployment and configuration of the metadata component.
- create_graph_test.sh: it uploads a folder with nested collections to a b2safe instance, create a root manifest and a sub-collection one, and then execute the b2safe_neo4j_client to create the metadata graph. The expected result should look like this:

It is necessary to change the parameters at the beginning of the script according to the local environment. Note that if you execute the script as irods admin and you set a different name in the iRODS_USER variable, then you need to export the iRODS variable "clientUserName" equal to the iRODS_USER, before running the script.
- update_graph_test.sh: it replaces one sub-collection and an object in the collection uploaded by the create_graph_test.sh. Therefore it can be executed only after the first one. The expected results is similar to the above one:
