Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(oay): Polish oay webdav test #2971

Merged
merged 6 commits into from
Aug 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions .github/workflows/oay_test_webdav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.

name: Oay Test WebDAV
name: Oay WebDAV Test

on:
push:
Expand All @@ -34,7 +34,7 @@ concurrency:
cancel-in-progress: true

jobs:
oay-webdav-test:
backend-fs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -52,19 +52,13 @@ jobs:
- name: Build and Start WebDAV service
run: |
cargo build --package oay --bin webdav --release
nohup cargo run --package oay --bin webdav --release &
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
TESTS="http basic copymove" HTDOCS=htdocs TESTROOT=. ./litmus http://localhost:3000 | tee litmus.log
if grep -E "FATAL|FAIL" litmus.log; then
echo "Tests failed"
exit 1
else
echo "All tests passed"
fi