From 712249d5c68c8bb0eb36f753f21d20a76c9e7578 Mon Sep 17 00:00:00 2001 From: prilka Date: Sat, 3 Aug 2019 14:13:07 +0200 Subject: [PATCH] add test for myjdownloader credentials/config --- build-n-test.sh | 3 +++ tests/credentials-test/goss.yaml | 11 +++++++++++ tests/default/goss.yaml | 2 ++ 3 files changed, 16 insertions(+) create mode 100644 tests/credentials-test/goss.yaml 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