-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add jfrog test setup for webdav (#4265)
* feat: add jfrog test for webdav * feat: add jfrog test for webdav * feat: add jfrog test for webdav * add webdav copy success statuscode * add webdav copy success statuscode * Take nginx as default test to run Signed-off-by: Xuanwo <[email protected]> * Use volumn instead Signed-off-by: Xuanwo <[email protected]> * fix webdav lister path panic * fix webdav lister entrymode panic * Try fix XML de Signed-off-by: Xuanwo <[email protected]> * jfrog doesn't support copy Signed-off-by: Xuanwo <[email protected]> * Fix list Signed-off-by: Xuanwo <[email protected]> * Fix other tests Signed-off-by: Xuanwo <[email protected]> * check metakey first Signed-off-by: Xuanwo <[email protected]> --------- Signed-off-by: Xuanwo <[email protected]> Co-authored-by: Xuanwo <[email protected]>
- Loading branch information
Showing
5 changed files
with
171 additions
and
40 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
name: jfrog | ||
description: "Behavior test for webdav in jfrog" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup webdav in jfrog | ||
shell: bash | ||
working-directory: fixtures/webdav | ||
run: | | ||
# Can we remove this? | ||
# touch artifactory/etc/system.yaml | ||
docker compose -f docker-compose-webdav-jfrog.yml up -d --wait | ||
- name: Setup | ||
shell: bash | ||
run: | | ||
cat << EOF >> $GITHUB_ENV | ||
OPENDAL_WEBDAV_ENDPOINT=http://127.0.0.1:8081/artifactory/example-repo-local | ||
OPENDAL_WEBDAV_USERNAME=admin | ||
OPENDAL_WEBDAV_PASSWORD=password | ||
OPENDAL_WEBDAV_DISABLE_COPY=true | ||
RUST_TEST_THREADS=1 | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
version: '3.8' | ||
|
||
services: | ||
jfrog: | ||
image: releases-docker.jfrog.io/jfrog/artifactory-oss:latest | ||
ports: | ||
- "8081:8081" | ||
- "8082:8082" | ||
volumes: | ||
- jfrog-data:/var/opt/jfrog/artifactory | ||
healthcheck: | ||
test: [ "CMD", "curl", "-f", "-X", "PROPFIND", "-H", "Depth: 1", "-u", "admin:password", "http://localhost:8081/artifactory/example-repo-local" ] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 5 | ||
|
||
volumes: | ||
jfrog-data: |