From 50c2f949aea89ec00a7c455d76518fd4c8e1dbbd Mon Sep 17 00:00:00 2001 From: tyranron Date: Thu, 1 Apr 2021 17:54:24 +0300 Subject: [PATCH] Restore version test --- docker/coturn/tests/main.bats | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docker/coturn/tests/main.bats b/docker/coturn/tests/main.bats index 682c6a6f..5c96d487 100644 --- a/docker/coturn/tests/main.bats +++ b/docker/coturn/tests/main.bats @@ -11,6 +11,20 @@ [ "$status" -eq 0 ] } +@test "Coturn has correct version" { + [ -z "$VERSION" ] && skip + + run docker run --rm --entrypoint sh $IMAGE -c \ + "turnserver -o --log-file=stdout | grep 'Version Coturn' \ + | cut -d ' ' -f2 \ + | cut -d '-' -f2" + [ "$status" -eq 0 ] + [ ! "$output" = '' ] + actual="$output" + + [ "$actual" = "$VERSION" ] +} + @test "TLS supported" { run docker run --rm --entrypoint sh $IMAGE -c \