From df439d0272a61eea949d13ecc7d94726324439a6 Mon Sep 17 00:00:00 2001 From: amrita Date: Tue, 12 Nov 2024 12:40:03 +0545 Subject: [PATCH] run keycloak and needed pipeline only --- .drone.star | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.drone.star b/.drone.star index 58cb2a63766..c48457bd585 100644 --- a/.drone.star +++ b/.drone.star @@ -191,7 +191,7 @@ def main(ctx): after = pipelinesDependsOn(afterPipelines(ctx), stages) - pipelines = before + stages + after + pipelines = before + stages deploys = example_deploys(ctx) if ctx.build.event != "cron": @@ -210,8 +210,6 @@ def main(ctx): def beforePipelines(ctx): return checkStarlark() + \ - licenseCheck(ctx) + \ - documentation(ctx) + \ changelog(ctx) + \ pnpmCache(ctx) + \ cacheOcisPipeline(ctx) + \ @@ -227,7 +225,7 @@ def stagePipelines(ctx): e2e_pipelines = e2eTests(ctx) keycloak_pipelines = e2eTestsOnKeycloak(ctx) - return unit_test_pipelines + buildAndTestDesignSystem(ctx) + pipelinesDependsOn(e2e_pipelines + keycloak_pipelines, unit_test_pipelines) + return keycloak_pipelines def afterPipelines(ctx): return build(ctx) + pipelinesDependsOn(notify(), build(ctx)) @@ -1772,7 +1770,8 @@ def keycloakService(): "detach": True, "environment": { "OCIS_DOMAIN": "ocis:9200", - "KC_HOSTNAME": "keycloak:8443", + "KC_HOSTNAME": "keycloak", + "KC_HOSTNAME_PORT": 8443, "KC_DB": "postgres", "KC_DB_URL": "jdbc:postgresql://postgres:5432/keycloak", "KC_DB_USERNAME": "keycloak", @@ -1786,7 +1785,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": [ { @@ -1799,15 +1798,6 @@ def keycloakService(): def e2eTestsOnKeycloak(ctx): e2e_Keycloak_tests = [ "keycloak", - "journeys", - "admin-settings/users.feature:20", - "admin-settings/users.feature:43", - "admin-settings/users.feature:106", - "admin-settings/users.feature:131", - "admin-settings/users.feature:185", - "admin-settings/spaces.feature", - "admin-settings/groups.feature", - "admin-settings/general.feature", ] e2e_volumes = [