Skip to content

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.

  1. 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:

create graph

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.

  1. 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:

update graph

Clone this wiki locally