Skip to content

Conversation

@saw-jan
Copy link
Contributor

@saw-jan saw-jan commented Jan 14, 2026

Description

Added wopi compose files to run the wopi API tests locally

Run wopi API tests:

ENABLE_WOPI=true \
BEHAT_FEATURE='tests/acceptance/features/apiCollaboration/checkFileInfo.feature' \
make -C tests/acceptance/docker test-opencloud-feature-decomposed-storage

Introduced new target (command) to run the tests only:

BEHAT_FEATURE='tests/acceptance/features/apiCollaboration/checkFileInfo.feature' \
make -C tests/acceptance/docker run-test

Related Issue

Motivation and Context

How Has This Been Tested?

  • test environment:

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation added

@saw-jan saw-jan self-assigned this Jan 14, 2026
@saw-jan saw-jan force-pushed the test/local-wopi-test branch from dfe2dcb to bb19789 Compare January 15, 2026 11:13
@saw-jan saw-jan marked this pull request as ready for review January 15, 2026 11:18
@saw-jan saw-jan requested a review from ScharfViktor January 15, 2026 11:19
Copy link
Contributor

@ScharfViktor ScharfViktor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tied to run it localy with posix and decomposed storage but it doesn't work

ENABLE_WOPI=true \
BEHAT_FEATURE='tests/acceptance/features/apiCollaboration/checkFileInfo.feature' \
make -C tests/acceptance/docker test-opencloud-feature-posix-storage     
docker build -f docker/Dockerfile.multiarch -t opencloudeu/opencloud:dev ../..
[+] Building 479.1s (18/18) FINISHED                                                                                                                                        docker:desktop-linux
 => [internal] load build definition from Dockerfile.multiarch                                                                                                                              0.1s
 => => transferring dockerfile: 2.23kB                                                                                                                                                      0.0s
 => [internal] load metadata for docker.io/library/alpine:3.22                                                                                                                              1.1s
 => [internal] load metadata for docker.io/library/golang:alpine3.22                                                                                                                        1.1s
 => [auth] library/golang:pull token for registry-1.docker.io                                                                                                                               0.0s
 => [auth] library/alpine:pull token for registry-1.docker.io                                                                                                                               0.0s
 => [internal] load .dockerignore                                                                                                                                                           0.2s
 => => transferring context: 2B                                                                                                                                                             0.0s
 => [stage-1 1/6] FROM docker.io/library/alpine:3.22@sha256:4b7ce07002c69e8f3d704a9c5d6fd3053be500b7f1c69fc0d80990c2ad8dd412                                                                0.1s
 => => resolve docker.io/library/alpine:3.22@sha256:4b7ce07002c69e8f3d704a9c5d6fd3053be500b7f1c69fc0d80990c2ad8dd412                                                                        0.1s
 => [internal] load build context                                                                                                                                                         354.1s
 => => transferring context: 7.67GB                                                                                                                                                       347.1s
 => [build 1/4] FROM docker.io/library/golang:alpine3.22@sha256:3587db7cc96576822c606d119729370dbf581931c5f43ac6d3fa03ab4ed85a10                                                            0.1s
 => => resolve docker.io/library/golang:alpine3.22@sha256:3587db7cc96576822c606d119729370dbf581931c5f43ac6d3fa03ab4ed85a10                                                                  0.1s
 => CACHED [build 2/4] RUN apk add bash make git curl gcc musl-dev libc-dev binutils-gold inotify-tools vips-dev                                                                            0.0s
 => CACHED [build 3/4] WORKDIR /build                                                                                                                                                       0.0s
 => [build 4/4] RUN --mount=type=bind,target=/build,rw     --mount=type=cache,target=/go/pkg/mod     --mount=type=cache,target=/root/.cache     GOOS="linux" GOARCH="arm64" ;     make -  114.5s
 => CACHED [stage-1 2/6] RUN apk add --no-cache attr bash ca-certificates curl inotify-tools libc6-compat mailcap tree vips patch &&  echo 'hosts: files dns' >| /etc/nsswitch.conf         0.0s 
 => CACHED [stage-1 3/6] RUN addgroup -g 1000 -S opencloud-group &&   adduser -S --ingroup opencloud-group --uid 1000 opencloud-user --home /var/lib/opencloud                              0.0s 
 => CACHED [stage-1 4/6] RUN mkdir -p /var/lib/opencloud &&  mkdir -p /var/lib/opencloud/web/assets/apps &&  chown -R opencloud-user:opencloud-group /var/lib/opencloud &&  chmod -R 751 /  0.0s 
 => CACHED [stage-1 5/6] WORKDIR /var/lib/opencloud                                                                                                                                         0.0s 
 => [stage-1 6/6] COPY --from=build /dist/binaries/opencloud-linux-arm64 /usr/bin/opencloud                                                                                                 0.6s
 => exporting to image                                                                                                                                                                      4.1s
 => => exporting layers                                                                                                                                                                     3.4s
 => => exporting manifest sha256:0abd11d1bf2767b40084cc7b14c0488b20f470ea8f5534e39b372231b52c8926                                                                                           0.0s
 => => exporting config sha256:3865fac48bb5e14b8a7f855bae65fe3479a71f2464bd9d1ab8d74d02164c44c3                                                                                             0.0s
 => => exporting attestation manifest sha256:a389b3e20b3d459a59a0be960ea8b53367febdf192381db080f03bde095049ce                                                                               0.0s
 => => exporting manifest list sha256:1cecfb8238b83319b313cb6bd377562b65d2192d95f5a2a7b07e35ffe3609ef7                                                                                      0.0s
 => => naming to docker.io/opencloudeu/opencloud:dev                                                                                                                                        0.0s
 => => unpacking to docker.io/opencloudeu/opencloud:dev                                                                                                                                     0.6s

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/s6sicwl6spbapbbjdtp3m6mzl
WARN[0000] The "OC_ASYNC_UPLOADS" variable is not set. Defaulting to a blank string. 
WARN[0000] The "SEARCH_EXTRACTOR_TYPE" variable is not set. Defaulting to a blank string. 
WARN[0000] The "WITH_WRAPPER" variable is not set. Defaulting to a blank string. 
WARN[0000] The "OC_ADD_RUN_SERVICES" variable is not set. Defaulting to a blank string. 
WARN[0000] The "POSTPROCESSING_STEPS" variable is not set. Defaulting to a blank string. 
COMPOSE_FILE=src/redis.yml:src/opencloud-base.yml:src/acceptance.yml:src/posix.yml
if [ "posix" = "decomposeds3" ]; then
bash: -c: line 1: syntax error: unexpected end of file
make[1]: *** [testSuite] Error 2
make: *** [test-opencloud-feature-posix-storage] Error 2
  • ENABLE_WOPI=true but I don't see src/wopi.yml enabled COMPOSE_FILE=src/redis.yml:src/opencloud-base.yml:src/acceptance.yml:src/posix.yml

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
@saw-jan saw-jan force-pushed the test/local-wopi-test branch from 0834201 to 99020a4 Compare January 16, 2026 05:23
@saw-jan saw-jan requested a review from ScharfViktor January 16, 2026 05:23
@saw-jan
Copy link
Contributor Author

saw-jan commented Jan 16, 2026

I tied to run it localy with posix and decomposed storage but it doesn't work

@ScharfViktor, I have made some changes. Could you check? The commands are working on my linux, there might be some differences in macos

Copy link
Contributor

@ScharfViktor ScharfViktor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adated and tested on mac. Works fine 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants