-
Notifications
You must be signed in to change notification settings - Fork 158
[tests-only] test: setup for running wopi API tests locally #2139
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
base: main
Are you sure you want to change the base?
Conversation
dfe2dcb to
bb19789
Compare
There was a problem hiding this 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=truebut I don't seesrc/wopi.ymlenabledCOMPOSE_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>
0834201 to
99020a4
Compare
@ScharfViktor, I have made some changes. Could you check? The commands are working on my linux, there might be some differences in macos |
ScharfViktor
left a comment
There was a problem hiding this 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 👍
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-storageIntroduced new target (command) to run the tests only:
BEHAT_FEATURE='tests/acceptance/features/apiCollaboration/checkFileInfo.feature' \ make -C tests/acceptance/docker run-testRelated Issue
Motivation and Context
How Has This Been Tested?
Types of changes
Checklist: