Skip to content
Rudolf Kvašňovský edited this page Oct 19, 2018 · 1 revision

Tests

  • run: mvn test
  • At this moment, ZFS and FS implementations do not differ and tests are the same, therefore installation of ZFS is optional.
  • Test reports are located at the .target/surefire-reports folder.
  • Tests are configurable by changing the property file at: /src/test/resources/application.properties.
  • Storage Service Tests run on a private infrastructure. To run them, you need to create your own infrastructure (e.g. Ceph cluster) and change the configuration file entries.
  • LocalStorageProcessor tests (test for local FS/ZFS or FS/ZFS over NFS) do not need additional configuration
    • you can optionally change the test folder location in the property file
  • RemoteStorageProcessor tests (tests for remote FS/ZFS over SFTP) require additional configuration
    • on the remote machine create the arcstorage user and add its public key located at /src/main/resources/arcstorage.pub
    • create test folder on the remote machine and make the user owner of the test folder
    • alter the test.sftp section of the property file
  • CephS3 tests (tests for Ceph over S3 API) require additional configuration
    • install Ceph and RGW http://docs.ceph.com/docs/master/start/
      • installation is not trivial, and may take a few hours
      • installation requires infrastructure of nodes and administrator account to manage them
    • create a bucket and a user with R/W permissions for that bucket (see Ceph RGW manual)
    • alter the test.ceph section of the property file

Property file configuration

arcstorage.tmp-folder=arcstorage-tests-folder (folder path to test workspace)

test.local.folderpath=local-fs-tests-folder (folder path for test packages of local FS/ZFS storage)
test.local.dataspace=arclib (path relative to the folder above)

test.sftp.host=192.168.10.60 (IP of server used for testing of remote FS/ZFS)
test.sftp.port=22
test.sftp.folderpath=/arcpool/test (folder path for test packages of remote FS/ZFS storage)
test.sftp.dataspace=arclib (path relative to the folder above)
test.sftp.separator=/ (/ for linux, \ for windows)

test.ceph.host=192.168.10.61 (IP of the Ceph RADOS gateway server)
test.ceph.port=7480
test.ceph.bucketname=arclib.bucket1 (bucket for test objects)
test.ceph.s3.user.key=SKGKKYQ50UU04XS4TA4O (credentials of ceph user with r/w rights to the bucket)
test.ceph.s3.user.secret=TrLjA3jdlzKcvyN1vWnGqiLGDwCB90bNF71rwA5D

Clone this wiki locally