Merge commit 'ed2894533d20ceaff1a3d03c676c30bc7e60d50c' into integrat-login-clean-test

This commit is contained in:
Elio Bischof
2025-06-26 13:19:48 +02:00
9 changed files with 18 additions and 21 deletions

View File

@@ -184,6 +184,8 @@ pnpm test:integration help
To run the tests in docker against the latest release of Zitadel, use the following command: To run the tests in docker against the latest release of Zitadel, use the following command:
:warning: The acceptance tests are not reliable at the moment :construction:
```sh ```sh
make login_test_acceptance make login_test_acceptance
``` ```

View File

@@ -71,7 +71,7 @@ login_test_integration_cleanup:
login_test_integration: login_test_integration_build login_test_integration: login_test_integration_build
$(LOGIN_DIR)scripts/run_or_skip.sh login_test_integration_run \ $(LOGIN_DIR)scripts/run_or_skip.sh login_test_integration_run \
"$(LOGIN_TAG) \ "$(LOGIN_TAG) \
$(CORE_MOCK_TAG) \ $(LOGIN_CORE_MOCK_TAG) \
$(LOGIN_TEST_INTEGRATION_TAG)" $(LOGIN_TEST_INTEGRATION_TAG)"
login_test_acceptance_build_bake: login_test_acceptance_build_bake:

View File

@@ -1,6 +1,6 @@
services: services:
core-mock: core-mock:
image: "${CORE_MOCK_TAG:-core-mock:local}" image: "${LOGIN_CORE_MOCK_TAG:-login-core-mock:local}"
container_name: integration-core-mock container_name: integration-core-mock
ports: ports:
- 22220:22220 - 22220:22220

View File

@@ -6,14 +6,6 @@ variable "DOCKERFILES_DIR" {
default = "dockerfiles/" default = "dockerfiles/"
} }
variable "UID" {
default = "1000"
}
variable "GID" {
default = "1000"
}
# typescript-proto-client is used to generate the client code for the login service. # typescript-proto-client is used to generate the client code for the login service.
# It is not login-prefixed, so it is easily extendable. # It is not login-prefixed, so it is easily extendable.
# To extend this bake-file.hcl, set the context of all login-prefixed targets to a different directory. # To extend this bake-file.hcl, set the context of all login-prefixed targets to a different directory.
@@ -28,8 +20,10 @@ target "typescript-proto-client" {
} }
target "typescript-proto-client-out" { target "typescript-proto-client-out" {
inherits = ["typescript-proto-client"] dockerfile = "${DOCKERFILES_DIR}typescript-proto-client-out.Dockerfile"
target = "typescript-proto-client-out" contexts = {
typescript-proto-client = "target:typescript-proto-client"
}
output = [ output = [
"type=local,dest=packages/zitadel-proto" "type=local,dest=packages/zitadel-proto"
] ]

View File

@@ -1,7 +1,6 @@
FROM typescript-proto-client AS login-client FROM typescript-proto-client AS login-client
COPY packages/zitadel-tsconfig packages/zitadel-tsconfig COPY packages/zitadel-tsconfig packages/zitadel-tsconfig
COPY packages/zitadel-client/package.json ./packages/zitadel-client/ COPY packages/zitadel-client/package.json ./packages/zitadel-client/
RUN ls -la
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
pnpm install --frozen-lockfile --workspace-root --filter ./packages/zitadel-client pnpm install --frozen-lockfile --workspace-root --filter ./packages/zitadel-client
COPY packages/zitadel-client ./packages/zitadel-client COPY packages/zitadel-client ./packages/zitadel-client

View File

@@ -0,0 +1,5 @@
FROM scratch AS typescript-proto-client-out
COPY --from=typescript-proto-client /build/packages/zitadel-proto/zitadel /zitadel
COPY --from=typescript-proto-client /build/packages/zitadel-proto/google /google
COPY --from=typescript-proto-client /build/packages/zitadel-proto/protoc-gen-openapiv2 /protoc-gen-openapiv2
COPY --from=typescript-proto-client /build/packages/zitadel-proto/validate /validate

View File

@@ -4,11 +4,3 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
pnpm install --frozen-lockfile --workspace-root --filter zitadel-proto pnpm install --frozen-lockfile --workspace-root --filter zitadel-proto
COPY packages/zitadel-proto ./packages/zitadel-proto COPY packages/zitadel-proto ./packages/zitadel-proto
RUN pnpm generate RUN pnpm generate
FROM scratch AS typescript-proto-client-out
COPY --from=typescript-proto-client /build/packages/zitadel-proto/zitadel /zitadel
COPY --from=typescript-proto-client /build/packages/zitadel-proto/google /google
COPY --from=typescript-proto-client /build/packages/zitadel-proto/protoc-gen-openapiv2 /protoc-gen-openapiv2
COPY --from=typescript-proto-client /build/packages/zitadel-proto/validate /validate
FROM typescript-proto-client

View File

@@ -1,2 +1,6 @@
* *
!/packages/zitadel-proto/ !/packages/zitadel-proto/
packages/zitadel-proto/google
packages/zitadel-proto/zitadel
packages/zitadel-proto/protoc-gen-openapiv2
packages/zitadel-proto/validate