diff --git a/build-n-test.sh b/build-n-test.sh index 667499d..5372d76 100755 --- a/build-n-test.sh +++ b/build-n-test.sh @@ -21,6 +21,9 @@ for image in "${images[@]}"; do echo "Testing again with UID and GID" 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 diff --git a/tests/credentials-test/goss.yaml b/tests/credentials-test/goss.yaml new file mode 100644 index 0000000..b36ed8d --- /dev/null +++ b/tests/credentials-test/goss.yaml @@ -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 diff --git a/tests/default/goss.yaml b/tests/default/goss.yaml index 27e53cf..412b931 100644 --- a/tests/default/goss.yaml +++ b/tests/default/goss.yaml @@ -30,6 +30,8 @@ file: package: ffmpeg: installed: true + jq: + installed: true user: jdownloader: exists: true