Skip to content

Commit

Permalink
fix testuser path
Browse files Browse the repository at this point in the history
  • Loading branch information
unglaublicherdude committed Jun 6, 2024
1 parent 5eb47f2 commit 12a3663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ jobs:
- name: test admin Upload
run: |
echo 'X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*' > /tmp/eicar.com.txt
curl -q -u admin:admin -T /tmp/eicar.com.txt http://127.0.0.1/remote.php/dav/files/admin/eicar.com.txt \
curl --silent -u admin:admin -T /tmp/eicar.com.txt http://127.0.0.1/remote.php/dav/files/admin/eicar.com.txt \
| grep -o "Virus EICAR-Test-File is detected in the file. Upload cannot be completed." \
|| exit 1
- name: test new user Upload
run: |
docker exec --env OC_PASS=myfancysecurepassword234 --user www-data -it nextcloud-container php occ user:add testuser --password-from-env
echo 'X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*' > /tmp/eicar.com.txt
curl -q -u testuser:myfancysecurepassword234 -T /tmp/eicar.com.txt http://127.0.0.1/remote.php/dav/files/admin/eicar.com.txt \
curl --silent -u testuser:myfancysecurepassword234 -T /tmp/eicar.com.txt http://127.0.0.1/remote.php/dav/files/testuser/eicar.com.txt \
| grep -o "Virus EICAR-Test-File is detected in the file. Upload cannot be completed." \
|| exit 1
Expand Down

0 comments on commit 12a3663

Please sign in to comment.