test: run search2 pipeline over k8s

This commit is contained in:
Niraj Acharya
2025-12-04 15:54:57 +05:45
parent 449abfbb18
commit 2248f0865b
2 changed files with 4 additions and 2 deletions

View File

@@ -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"],
],
}]

View File

@@ -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"