mirror of
https://github.com/owncloud/ocis
synced 2026-04-25 17:25:21 +02:00
test: run search2 pipeline over k8s
This commit is contained in:
@@ -174,7 +174,7 @@ config = {
|
||||
],
|
||||
"tikaNeeded": True,
|
||||
"skip": False,
|
||||
"k8s": False,
|
||||
"k8s": True,
|
||||
},
|
||||
"sharingNg1": {
|
||||
"suites": [
|
||||
@@ -3915,6 +3915,8 @@ def tikaServiceK8s():
|
||||
"type": "docker",
|
||||
"image": OC_CI_ALPINE,
|
||||
"commands": [
|
||||
"until test -f %s/ocis-charts/charts/ocis/templates/search/deployment.yaml; do sleep 1s; done" % dirs["base"],
|
||||
"cp -r %s/tests/config/drone/k8s/tika %s/ocis-charts/charts/ocis/templates/" % (dirs["base"], dirs["base"]),
|
||||
"sed -i '/^[[:space:]]*storagesystem:/i\\\\ search:\\\n extractor:\\\n type: \"tika\"\\\n tika:\\\n url: \"http://tika:9998\"\\\n persistence:\\\n enabled: true\\\n accessModes:\\\n - ReadWriteOnce' %s/tests/config/drone/k8s/values.yaml" % dirs["base"],
|
||||
],
|
||||
}]
|
||||
|
||||
@@ -67,7 +67,7 @@ Feature: content search
|
||||
@env-config
|
||||
Scenario Outline: search files by stop words when clean_stop_words is disabled
|
||||
Given using <dav-path-version> DAV path
|
||||
And the config "SEARCH_EXTRACTOR_TIKA_CLEAN_STOP_WORDS" has been set to "false"
|
||||
And the config "SEARCH_EXTRACTOR_TIKA_CLEAN_STOP_WORDS" has been set to "false" for "search" service
|
||||
And user "Alice" has uploaded file with content "He has expirience, we must to have, I have to find ...." to "fileWithStopWords.txt"
|
||||
When user "Alice" searches for 'Content:"he has"' using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
|
||||
Reference in New Issue
Block a user