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:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user