-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add README in acceptance level
- Loading branch information
Showing
14 changed files
with
173 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
## Acceptance Tests (ownCloud Legacy) | ||
|
||
This will require some PHP-related tools to run, for instance on Ubuntu you will need `apt install -y php-xml php-curl composer`. | ||
|
||
1. Start the reva server (with ocis storage driver) | ||
|
||
``` | ||
make reva-ocis | ||
``` | ||
|
||
> [!Note] | ||
> | ||
> You can run the reva with other storage drivers. | ||
> | ||
> To run reva with `posix` storage driver: | ||
> | ||
> ``` | ||
> make reva-posix | ||
> ``` | ||
> | ||
> To run reva with `s3ng` storage driver: | ||
> | ||
> ``` | ||
> make reva-s3ng | ||
> ``` | ||
2. Get ownCloud Infinite Scale `OCIS` | ||
``` | ||
git clone https://github.com/owncloud/ocis.git ./testrunner | ||
``` | ||
3. To run the correct version of the testsuite check out the commit id from the `.drone.env` file | ||
``` | ||
cd testrunner | ||
git checkout <commit-id> | ||
``` | ||
4. run the tests | ||
``` | ||
TEST_SERVER_URL='http://localhost:20080' \ | ||
TEST_REVA='true' \ | ||
TEST_WITH_LDAP='true' \ | ||
OCIS_REVA_DATA_ROOT='/tmp/reva/' \ | ||
DELETE_USER_DATA_CMD="rm -rf /tmp/reva/data/nodes/root/* /tmp/reva/data/nodes/*-*-*-* /tmp/reva/data/blobs/*" \ | ||
SKELETON_DIR='./apps/testing/data/apiSkeleton' \ | ||
REVA_LDAP_HOSTNAME='localhost' \ | ||
BEHAT_FILTER_TAGS='~@skip&&~@skipOnReva' \ | ||
EXPECTED_FAILURES_FILE=<path-to-reva>/tests/acceptance/expected-failures-on-OCIS-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 sure to double check the paths if you are changing the `OCIS_REVA_DATA_ROOT`. The `DELETE_USER_DATA_CMD` needs to clean up the correct folders. | ||
5. Clean the setup | ||
``` | ||
make clean | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.