-
Notifications
You must be signed in to change notification settings - Fork 509
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(services/webdav): migrate to test planner for webdav (#3379)
* 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
Showing
10 changed files
with
310 additions
and
224 deletions.
There are no files selected for viewing
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. | ||
|
||
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 |
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,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
34
.github/services/webdav/nginx_with_empty_password/action.yml
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,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 |
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. | ||
|
||
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 |
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,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 |
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. | ||
|
||
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 |
Oops, something went wrong.