add test for myjdownloader credentials/config

This commit is contained in:
prilka 2019-08-03 14:13:07 +02:00
parent 8a636a7f50
commit 712249d5c6
3 changed files with 16 additions and 0 deletions

View file

@ -21,6 +21,9 @@ for image in "${images[@]}"; do
echo "Testing again with UID and GID" echo "Testing again with UID and GID"
GOSS_FILES_PATH=./tests/uid-test dgoss run -e UID=1001 -e GID=101 $tag GOSS_FILES_PATH=./tests/uid-test dgoss run -e UID=1001 -e GID=101 $tag
echo "Testing again with EMAIL and PASSWORD"
GOSS_FILES_PATH=./tests/credentials-test dgoss run -e EMAIL=mymail@example.com -e PASSWORD=mypassword $tag
done done

View file

@ -0,0 +1,11 @@
file:
/opt/JDownloader/cfg/org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json:
exists: true
mode:
or:
- "0664"
- "0644"
filetype: file
contains:
- mymail@example.com
- mypassword

View file

@ -30,6 +30,8 @@ file:
package: package:
ffmpeg: ffmpeg:
installed: true installed: true
jq:
installed: true
user: user:
jdownloader: jdownloader:
exists: true exists: true