Skip to content

Commit

Permalink
[tests-only][full-ci]Setup keycloak group e2e tests (#11887)
Browse files Browse the repository at this point in the history
* setup group condig in keycloak

* run keycloak and needed pipeline only

* setup tests for keycloak group

* run all pipeline

* fix index uses and some logic
  • Loading branch information
amrita-shrestha authored Nov 19, 2024
1 parent e53745a commit a1959fa
Show file tree
Hide file tree
Showing 12 changed files with 395 additions and 67 deletions.
8 changes: 5 additions & 3 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ALPINE_GIT = "alpine/git:latest"
APACHE_TIKA = "apache/tika:2.8.0.0"
COLLABORA_CODE = "collabora/code:24.04.5.1.1"
CS3ORG_WOPI_SERVER = "cs3org/wopiserver:v10.3.0"
KEYCLOAK = "quay.io/keycloak/keycloak:24.0.1"
KEYCLOAK = "quay.io/keycloak/keycloak:25.0.0"
MINIO_MC = "minio/mc:RELEASE.2021-10-07T04-19-58Z"
OC_CI_ALPINE = "owncloudci/alpine:latest"
OC_CI_BAZEL_BUILDIFIER = "owncloudci/bazel-buildifier"
Expand Down Expand Up @@ -1772,7 +1772,8 @@ def keycloakService():
"detach": True,
"environment": {
"OCIS_DOMAIN": "ocis:9200",
"KC_HOSTNAME": "keycloak:8443",
"KC_HOSTNAME": "keycloak",
"KC_PORT": 8443,
"KC_DB": "postgres",
"KC_DB_URL": "jdbc:postgresql://postgres:5432/keycloak",
"KC_DB_USERNAME": "keycloak",
Expand All @@ -1786,7 +1787,7 @@ def keycloakService():
"commands": [
"mkdir -p /opt/keycloak/data/import",
"cp tests/drone/ocis_keycloak/ocis-ci-realm.dist.json /opt/keycloak/data/import/ocis-realm.json",
"/opt/keycloak/bin/kc.sh start-dev --proxy=edge --spi-connections-http-client-default-disable-trust-manager=true --import-realm --health-enabled=true",
"/opt/keycloak/bin/kc.sh start-dev --proxy-headers xforwarded --spi-connections-http-client-default-disable-trust-manager=true --import-realm --health-enabled=true",
],
"volumes": [
{
Expand All @@ -1807,6 +1808,7 @@ def e2eTestsOnKeycloak(ctx):
"admin-settings/spaces.feature",
"admin-settings/groups.feature",
"admin-settings/general.feature",
"keycloak",
]

e2e_volumes = [
Expand Down
Loading

0 comments on commit a1959fa

Please sign in to comment.