Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests-only][full-ci] wait for ocis service to be ready for admin user #11791

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,20 @@ def ocisService(extra_env_config = {}, enforce_password_public_link = False):
environment["FRONTEND_PASSWORD_POLICY_MIN_DIGITS"] = 0
environment["FRONTEND_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS"] = 0

wait_for_service = waitForServices("ocis", ["ocis:9200"])
if "OCIS_EXCLUDE_RUN_SERVICES" not in environment or "idp" not in environment["OCIS_EXCLUDE_RUN_SERVICES"]:
wait_for_service = [
{
"name": "wait-for-ocis",
"image": OC_CI_ALPINE,
"commands": [
"timeout 300 bash -c 'while [ $(curl -sk -uadmin:admin " +
"%s/graph/v1.0/users/admin " % environment["OCIS_URL"] +
"-w %{http_code} -o /dev/null) != 200 ]; do sleep 1; done'",
],
},
]

return [
{
"name": "ocis",
Expand All @@ -962,7 +976,7 @@ def ocisService(extra_env_config = {}, enforce_password_public_link = False):
"path": "/root/.ocis/config",
}],
},
] + waitForServices("ocis", ["ocis:9200"])
] + wait_for_service

def checkForExistingOcisCache(ctx):
web_repo_path = "https://raw.githubusercontent.com/owncloud/web/%s" % ctx.build.commit
Expand Down