From 39048684d422f32aa8e839bb542017d4d4dab248 Mon Sep 17 00:00:00 2001 From: dqhl76 Date: Mon, 17 Jul 2023 15:18:00 +0000 Subject: [PATCH 1/6] ci: add owncloud --- .github/workflows/service_test_webdav.yml | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/service_test_webdav.yml b/.github/workflows/service_test_webdav.yml index 9f1be7fa85bd..32f6c068f0b4 100644 --- a/.github/workflows/service_test_webdav.yml +++ b/.github/workflows/service_test_webdav.yml @@ -21,6 +21,7 @@ on: push: branches: - main + - ci-owncloud pull_request: branches: - main @@ -187,3 +188,35 @@ jobs: OPENDAL_WEBDAV_ENDPOINT: http://127.0.0.1:8080/remote.php/webdav/ OPENDAL_WEBDAV_USERNAME: admin OPENDAL_WEBDAV_PASSWORD: admin + + owncloud: + runs-on: ubuntu-latest + + services: + owncloud: + image: owncloud/server + ports: + - 8080:8080 + env: + ADMIN_USERNAME: admin + ADMIN_PASSWORD: admin + OWNCLOUD_DOMAIN: localhost:8080 + HTTP_PORT: 8080 + + steps: + - uses: actions/checkout@v3 + - name: Setup Rust toolchain + uses: ./.github/actions/setup + with: + need-nextest: true + + - name: Test + shell: bash + working-directory: core + run: | + cargo test webdav + env: + OPENDAL_WEBDAV_TEST: on + OPENDAL_WEBDAV_ENDPOINT: http://127.0.0.1:8080/owncloud/remote.php/webdav/ + OPENDAL_WEBDAV_USERNAME: admin + OPENDAL_WEBDAV_PASSWORD: admin From 06e6c1f11fd1d741dbaeb415a05f261e80b5ac05 Mon Sep 17 00:00:00 2001 From: dqhl76 Date: Mon, 17 Jul 2023 15:47:14 +0000 Subject: [PATCH 2/6] fix: endpoint --- .github/workflows/service_test_webdav.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/service_test_webdav.yml b/.github/workflows/service_test_webdav.yml index 32f6c068f0b4..abe08c635656 100644 --- a/.github/workflows/service_test_webdav.yml +++ b/.github/workflows/service_test_webdav.yml @@ -217,6 +217,6 @@ jobs: cargo test webdav env: OPENDAL_WEBDAV_TEST: on - OPENDAL_WEBDAV_ENDPOINT: http://127.0.0.1:8080/owncloud/remote.php/webdav/ + OPENDAL_WEBDAV_ENDPOINT: http://127.0.0.1:8080/remote.php/dav/files/admin/ OPENDAL_WEBDAV_USERNAME: admin OPENDAL_WEBDAV_PASSWORD: admin From c859571ddc145490d5380c7ad01fbba6f527540c Mon Sep 17 00:00:00 2001 From: dqhl76 Date: Mon, 17 Jul 2023 16:05:04 +0000 Subject: [PATCH 3/6] delete test tag --- .github/workflows/service_test_webdav.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/service_test_webdav.yml b/.github/workflows/service_test_webdav.yml index abe08c635656..8a5e588a9a20 100644 --- a/.github/workflows/service_test_webdav.yml +++ b/.github/workflows/service_test_webdav.yml @@ -21,7 +21,6 @@ on: push: branches: - main - - ci-owncloud pull_request: branches: - main From 7c26f537ced0cf30ae7f7f79c71d9dd90d2397c2 Mon Sep 17 00:00:00 2001 From: dqhl76 Date: Mon, 17 Jul 2023 16:16:23 +0000 Subject: [PATCH 4/6] try to fix endpoint --- .github/workflows/service_test_webdav.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/service_test_webdav.yml b/.github/workflows/service_test_webdav.yml index 8a5e588a9a20..acb0682b30c2 100644 --- a/.github/workflows/service_test_webdav.yml +++ b/.github/workflows/service_test_webdav.yml @@ -216,6 +216,6 @@ jobs: cargo test webdav env: OPENDAL_WEBDAV_TEST: on - OPENDAL_WEBDAV_ENDPOINT: http://127.0.0.1:8080/remote.php/dav/files/admin/ + OPENDAL_WEBDAV_ENDPOINT: http://127.0.0.1:8080/remote.php/dav/files/admin OPENDAL_WEBDAV_USERNAME: admin OPENDAL_WEBDAV_PASSWORD: admin From 9785b8ed096a4034ed4158b0a848bf3978a68731 Mon Sep 17 00:00:00 2001 From: dqhl76 Date: Mon, 17 Jul 2023 16:33:17 +0000 Subject: [PATCH 5/6] try to fix webdav problem --- .github/workflows/service_test_webdav.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/service_test_webdav.yml b/.github/workflows/service_test_webdav.yml index acb0682b30c2..5757dacb4a0e 100644 --- a/.github/workflows/service_test_webdav.yml +++ b/.github/workflows/service_test_webdav.yml @@ -213,7 +213,7 @@ jobs: shell: bash working-directory: core run: | - cargo test webdav + cargo test webdav -- --test-threads=1 env: OPENDAL_WEBDAV_TEST: on OPENDAL_WEBDAV_ENDPOINT: http://127.0.0.1:8080/remote.php/dav/files/admin From 0fd6f81c5bbce453ad1f60d7ad3b80c2c879c559 Mon Sep 17 00:00:00 2001 From: dqhl76 Date: Mon, 17 Jul 2023 16:47:54 +0000 Subject: [PATCH 6/6] reset --- .github/workflows/service_test_webdav.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/service_test_webdav.yml b/.github/workflows/service_test_webdav.yml index 5757dacb4a0e..acb0682b30c2 100644 --- a/.github/workflows/service_test_webdav.yml +++ b/.github/workflows/service_test_webdav.yml @@ -213,7 +213,7 @@ jobs: shell: bash working-directory: core run: | - cargo test webdav -- --test-threads=1 + cargo test webdav env: OPENDAL_WEBDAV_TEST: on OPENDAL_WEBDAV_ENDPOINT: http://127.0.0.1:8080/remote.php/dav/files/admin