Skip to content

Commit

Permalink
refactor(services/webdav): migrate to test planner for webdav (#3379)
Browse files Browse the repository at this point in the history
* refactor(services/webdav): migrate to test planner for webdav

* fix(services/webdav): user

* fix(services/webdav): nginx_with_redirect ENDPOINT

* feat(services/nexcloud): migrate test planner for nextcloud, owncloud

* fix(services): action for nextcloud, owncloud

* fix(services/webdav): nextcloud, owncloud move into webdav

* fix(fixtures): docker-compose for nextcloud, owncloud

* fix(fixtures): docker-compose for nextcloud, owncloud

* fix(services): webdav tcp > http

* fix(fixtures): docker-compose for nextcloud, owncloud

* fix(fixtures): docker-compose for nextcloud, owncloud

* fix(services/webdav): docker compose file move into webdav folder

* ci(test): Add health check for WebDAV docker compose config for nextcloud and owncloud

* ci(test): Add health check for WebDAV docker compose config for nextcloud and owncloud

* Update health check for nextcloud

Signed-off-by: Manjusaka <[email protected]>

* Update service file

Signed-off-by: Manjusaka <[email protected]>

---------

Signed-off-by: Manjusaka <[email protected]>
Co-authored-by: Manjusaka <[email protected]>
  • Loading branch information
shauvet and Zheaoli authored Nov 2, 2023
1 parent 6261b0f commit 9bcb834
Show file tree
Hide file tree
Showing 10 changed files with 310 additions and 224 deletions.
35 changes: 35 additions & 0 deletions .github/services/webdav/nextcloud/action.yml
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.

name: nextcloud
description: "Behavior test for nextcloud"

runs:
using: "composite"
steps:
- name: Setup nextcloud
shell: bash
working-directory: fixtures/webdav
run: docker compose -f docker-compose-webdav-nextcloud.yml up -d --wait
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_WEBDAV_ENDPOINT=http://127.0.0.1:8080/remote.php/webdav/
OPENDAL_WEBDAV_USERNAME=admin
OPENDAL_WEBDAV_PASSWORD=admin
EOF
33 changes: 33 additions & 0 deletions .github/services/webdav/nginx/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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: nginx
description: "Behavior test for webdav in nginx"

runs:
using: "composite"
steps:
- name: Setup webdav in nginx
shell: bash
working-directory: fixtures/webdav
run: docker compose -f docker-compose-webdav.yml up -d --wait
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_WEBDAV_ENDPOINT=http://127.0.0.1:8080
EOF
34 changes: 34 additions & 0 deletions .github/services/webdav/nginx_with_empty_password/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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: nginx_with_empty_password
description: "Behavior test for nginx_with_empty_password in nginx"

runs:
using: "composite"
steps:
- name: Setup webdav in nginx_with_empty_password
shell: bash
working-directory: fixtures/webdav
run: docker compose -f docker-compose-webdav-with-empty-passwd.yml up -d --wait
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_WEBDAV_ENDPOINT=http://127.0.0.1:8080
OPENDAL_WEBDAV_USERNAME=foo
EOF
35 changes: 35 additions & 0 deletions .github/services/webdav/nginx_with_password/action.yml
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.

name: nginx_with_password
description: "Behavior test for nginx_with_password in nginx"

runs:
using: "composite"
steps:
- name: Setup webdav in nginx_with_password
shell: bash
working-directory: fixtures/webdav
run: docker compose -f docker-compose-webdav-with-auth.yml up -d --wait
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_WEBDAV_ENDPOINT=http://127.0.0.1:8080
OPENDAL_WEBDAV_USERNAME=bar
OPENDAL_WEBDAV_PASSWORD=bar
EOF
33 changes: 33 additions & 0 deletions .github/services/webdav/nginx_with_redirect/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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: nginx_with_redirect
description: "Behavior test for nginx_with_redirect in nginx"

runs:
using: "composite"
steps:
- name: Setup webdav in nginx_with_redirect
shell: bash
working-directory: fixtures/webdav
run: docker compose -f docker-compose-webdav.yml up -d --wait
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_WEBDAV_ENDPOINT=http://127.0.0.1:8081
EOF
35 changes: 35 additions & 0 deletions .github/services/webdav/owncloud/action.yml
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.

name: owncloud
description: "Behavior test for owncloud"

runs:
using: "composite"
steps:
- name: Setup owncloud
shell: bash
working-directory: fixtures/webdav
run: docker compose -f docker-compose-webdav-owncloud.yml up -d --wait
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_WEBDAV_ENDPOINT=http://127.0.0.1:8080/remote.php/webdav/
OPENDAL_WEBDAV_USERNAME=admin
OPENDAL_WEBDAV_PASSWORD=admin
EOF
Loading

0 comments on commit 9bcb834

Please sign in to comment.