1
0
mirror of https://github.com/coturn/coturn.git synced 2026-10-24 00:08:57 +03:00

Restore version test

This commit is contained in:
tyranron
2021-04-01 17:54:24 +03:00
parent 5d196ff1d0
commit 50c2f949ae

View File

@@ -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 \