Skip to content

Commit

Permalink
(#111) Added test to ensure that a provided license won't cause any e…
Browse files Browse the repository at this point in the history
…rror
  • Loading branch information
svettwer committed Dec 13, 2021
1 parent 7624d59 commit 3c7d9bc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,14 @@ docker run \
[[ "$?" == "0" ]] && echo "Expected error code != 0" && exit 1
set -e

# should fail if no license is provided
set +e
# should not fail if license is provided
docker run \
--rm \
-e SAKULI_TEST_SUITE=/sakuli-project/e2e-broken \
-e SAKULI_LICENSE_KEY="asdf42#0815"
-v $(pwd)/e2e:/sakuli-project \
--shm-size=2G \
taconsol/sakuli:${1:-latest}
[[ "$?" == "0" ]] && echo "Expected to fail because of missing license key" && exit 1
set -e

# start another command than sakuli
docker run \
Expand Down

0 comments on commit 3c7d9bc

Please sign in to comment.