This is an automated email from the ASF dual-hosted git repository.

psiace pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new e144caf2a ci(oay): add CI for oay-webdav (#2957)
e144caf2a is described below

commit e144caf2a6dbd30993d69acfc77695564d3c1931
Author: Flash <[email protected]>
AuthorDate: Mon Aug 28 23:03:21 2023 +0800

    ci(oay): add CI for oay-webdav (#2957)
    
    * add CI for oay-webdav
    
    * Update .github/workflows/oay_test_webdav.yml
    
    Co-authored-by: Suyan <[email protected]>
    
    * cat litmus.log
    
    ---------
    
    Co-authored-by: Suyan <[email protected]>
---
 .github/workflows/oay_test_webdav.yml | 70 +++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)

diff --git a/.github/workflows/oay_test_webdav.yml 
b/.github/workflows/oay_test_webdav.yml
new file mode 100644
index 000000000..8c15449a6
--- /dev/null
+++ b/.github/workflows/oay_test_webdav.yml
@@ -0,0 +1,70 @@
+# 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: Oay Test WebDAV
+
+on:
+  push:
+    branches:
+      - main
+  pull_request:
+    branches:
+      - main
+    paths:
+      - "bin/oay/**"
+      - ".github/workflows/oay_test_webdav.yml"
+  workflow_dispatch:
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
+  cancel-in-progress: true
+
+jobs:
+  oay-webdav-test:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v3
+      - name: Setup Rust toolchain
+        uses: ./.github/actions/setup
+
+      - name: Install litmus
+        run: |
+          curl -O http://www.webdav.org/neon/litmus/litmus-0.13.tar.gz
+          tar xf litmus-0.13.tar.gz
+          cd litmus-0.13
+          ./configure
+          make
+
+      - name: Build and Start WebDAV service
+        run: |
+          cargo build --package oay --bin webdav --release
+          nohup cargo run --package oay --bin webdav --release &
+
+      - name: Run litmus tests
+        run: |
+          cd litmus-0.13
+          TESTS="http basic copymove" HTDOCS=htdocs TESTROOT=. ./litmus 
http://localhost:3000 >> litmus.log
+
+      - name: Check litmus test results
+        run: |
+          cat litmus-0.13/litmus.log
+          if grep -q "FATAL" litmus-0.13/litmus.log; then
+            echo "Tests failed"
+            exit 1
+          else
+            echo "All tests passed"
+          fi

Reply via email to