This will require some PHP-related tools to run, for instance on Ubuntu you will need apt install -y php-xml php-curl composer.
-
Start the reva server (with decomposed storage driver)
make reva
INFO:
You can run reva with other storage drivers.
To run reva with
posixstorage driver:make reva-posix
To run reva with
decomposeds3storage driver:make reva-decomposeds3
-
Get OpenCloud
git clone https://github.com/opencloud-eu/opencloud.git ./testrunner
-
To run the correct version of the testsuite check out the commit id from the
.drone.envfilecd testrunner git checkout <commit-id>
-
Run the tests
TEST_SERVER_URL='http://localhost:20080' \ TEST_REVA='true' \ TEST_WITH_LDAP='true' \ OC_REVA_DATA_ROOT='/tmp/reva/' \ DELETE_USER_DATA_CMD="rm -rf /tmp/reva/data/nodes/root/* /tmp/reva/data/nodes/*-*-*-* /tmp/reva/data/blobs/*" \ REVA_LDAP_HOSTNAME='localhost' \ BEHAT_FILTER_TAGS='~@skip&&~@skipOnReva&&~@env-config' \ EXPECTED_FAILURES_FILE=<path-to-reva>/tests/acceptance/expected-failures-on-decomposed-storage.md \ DIVIDE_INTO_NUM_PARTS=1 \ RUN_PART=1 \ ACCEPTANCE_TEST_TYPE=core-api \ make test-acceptance-api
This will run all tests that are relevant to reva.
To run a single test add
BEHAT_FEATURE=<feature file>and specify the path to the feature file and an optional line number. For example:... BEHAT_FEATURE='tests/acceptance/features/coreApiWebdavUpload/uploadFile.feature:20' \ make test-acceptance-apiNOTE: Make sure to double check the paths if you are changing the
OC_REVA_DATA_ROOT. TheDELETE_USER_DATA_CMDneeds to clean up the correct folders.INFO:
Use these proper environment variables to run tests with different storage drivers:
-
Run tests with
decomposeds3storage driver:... DELETE_USER_DATA_CMD="rm -rf /tmp/reva/data/spaces/* /tmp/reva/data/blobs/* /tmp/reva/data/indexes/by-type/*" \ EXPECTED_FAILURES_FILE=<path-to-reva>/tests/acceptance/expected-failures-on-DECOMPOSEDS3-storage.md \ make test-acceptance-api
-
Run tests with
posixstorage driver:... DELETE_USER_DATA_CMD="bash -cx 'rm -rf /tmp/reva/data/users/* /tmp/reva/data/indexes/by-type/*'" \ EXPECTED_FAILURES_FILE=<path-to-reva>/tests/acceptance/expected-failures-on-POSIX-storage.md \ make test-acceptance-api
-
-
Cleanup the setup
make clean