Skip to content

Commit

Permalink
Run tike on ocis-1 pipeline only (#9524)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrita-shrestha authored Aug 3, 2023
1 parent f61cbba commit d7a7089
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ config = {
"oCIS-1": {
"earlyFail": True,
"skip": False,
"tikaNeeded": True,
"featurePaths": [
"tests/e2e/cucumber/features/{smoke,journeys}/*[!.oc10].feature",
],
Expand Down Expand Up @@ -1099,6 +1100,7 @@ def e2eTests(ctx):
"reportTracing": "false",
"db": "mysql:5.5",
"featurePaths": "",
"tikaNeeded": False,
}

e2e_trigger = {
Expand Down Expand Up @@ -1166,8 +1168,8 @@ def e2eTests(ctx):
# oCIS specific steps
steps += setupServerConfigureWeb(params["logLevel"]) + \
restoreOcisCache() + \
tikaService() + \
ocisService("e2e-tests") + \
(tikaService() if params["tikaNeeded"] else []) + \
ocisService("e2e-tests", tika_enabled = params["tikaNeeded"]) + \
getSkeletonFiles()

steps += [{
Expand Down Expand Up @@ -2090,7 +2092,7 @@ def idpService():
}],
}]

def ocisService(type):
def ocisService(type, tika_enabled = False):
environment = {
"IDM_ADMIN_PASSWORD": "admin", # override the random admin password from `ocis init`
"IDP_IDENTIFIER_REGISTRATION_CONF": "%s" % dir["ocisIdentifierRegistrationConfig"],
Expand All @@ -2113,7 +2115,7 @@ def ocisService(type):
"FRONTEND_OCS_ENABLE_DENIALS": True,
}

if type == "e2e-tests":
if tika_enabled:
environment["FRONTEND_FULL_TEXT_SEARCH_ENABLED"] = True
environment["SEARCH_EXTRACTOR_TYPE"] = "tika"
environment["SEARCH_EXTRACTOR_TIKA_TIKA_URL"] = "http://tika:9998"
Expand Down

0 comments on commit d7a7089

Please sign in to comment.