mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-22 05:29:01 -06:00
[tests-only][full-ci]Added documentation to run tika service related tests (#7295)
* Added documentation to run tika service related tests * Added documentation for docker compose as well * Make tika service run only for tika
This commit is contained in:
@@ -80,6 +80,17 @@ make -C tests/acceptance/docker test-ocis-feature-ocis-storage
|
||||
|
||||
{{< /hint >}}
|
||||
|
||||
{{< hint info >}}
|
||||
To run the tests that require tika service (tests tagged with `@tikaServiceNeeded`), you need to provide `START_TIKA=true` while running the tests.
|
||||
|
||||
```bash
|
||||
START_TIKA=true \
|
||||
BEHAT_FEATURE='tests/acceptance/features/apiSearch/contentSearch.feature' \
|
||||
make -C tests/acceptance/docker test-ocis-feature-ocis-storage
|
||||
```
|
||||
|
||||
{{< /hint >}}
|
||||
|
||||
{{< hint info >}}
|
||||
To run the tests that require an antivirus service (tests tagged with `@antivirus`), you need to provide the following environment variables while running the tests.
|
||||
|
||||
@@ -376,6 +387,48 @@ BEHAT_FEATURE="tests/acceptance/features/apiNotification/emailNotification.featu
|
||||
make test-acceptance-api
|
||||
```
|
||||
|
||||
## Running Test Suite With Tika Service (@tikaServiceNeeded)
|
||||
|
||||
Test suites that are tagged with `@tikaServiceNeeded` require tika service.
|
||||
|
||||
### Setup Tika Service
|
||||
|
||||
Run the following docker command to setup tika service
|
||||
|
||||
```bash
|
||||
docker run -d -p 127.0.0.1:9998:9998 apache/tika
|
||||
```
|
||||
|
||||
### Run oCIS
|
||||
|
||||
Documentation related to the content based search and tika extractor can be found [here](https://doc.owncloud.com/ocis/next/deployment/services/s-list/search.html#content-extraction)
|
||||
|
||||
```bash
|
||||
# init oCIS
|
||||
IDM_ADMIN_PASSWORD=admin \
|
||||
ocis/bin/ocis init --insecure true
|
||||
|
||||
# run oCIS
|
||||
PROXY_ENABLE_BASIC_AUTH=true \
|
||||
OCIS_INSECURE=true \
|
||||
SEARCH_EXTRACTOR_TYPE=tika \
|
||||
SEARCH_EXTRACTOR_TIKA_TIKA_URL=http://localhost:9998 \
|
||||
SEARCH_EXTRACTOR_CS3SOURCE_INSECURE=true \
|
||||
ocis/bin/ocis server
|
||||
```
|
||||
|
||||
### Run the Acceptance Test
|
||||
|
||||
Run the acceptance test with the following command:
|
||||
|
||||
```bash
|
||||
TEST_WITH_GRAPH_API=true \
|
||||
TEST_OCIS=true \
|
||||
TEST_SERVER_URL="https://localhost:9200" \
|
||||
BEHAT_FEATURE="tests/acceptance/features/apiSearch/contentSearch.feature" \
|
||||
make test-acceptance-api
|
||||
```
|
||||
|
||||
## Running Tests for Parallel Deployment
|
||||
|
||||
### Setup the Parallel Deployment Environment
|
||||
@@ -450,7 +503,7 @@ The commands are ubuntu specific and may differ according to your system. You ca
|
||||
|
||||
##### Mac OS user
|
||||
Install ClamAV using [here](https://gist.github.com/mendozao/3ea393b91f23a813650baab9964425b9)
|
||||
Start ClamAV daemon
|
||||
Start ClamAV daemon
|
||||
```bash
|
||||
/your/location/to/brew/Cellar/clamav/1.1.0/sbin/clamd
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user