Disable IPv6 tests of Docker image by default

This commit is contained in:
tyranron 2021-05-17 21:09:00 +03:00
parent 7ed7c438a7
commit 484c88ea2a
No known key found for this signature in database
GPG Key ID: 762E144FB230A4F0
2 changed files with 4 additions and 0 deletions

View File

@ -176,6 +176,7 @@ docker.push:
# [( [build=no]
# | build=yes [DOCKERFILE=(debian|alpine)]
# [ref=<git-ref>] )]
# [with=ipv6]
test-docker-platforms = $(strip $(if $(call eq,$(platforms),),$(MAIN_PLATFORM),\
$(if $(call eq,$(platforms),@all),$(PLATFORMS),\
@ -195,6 +196,7 @@ define test.docker.do
@make docker.image DOCKERFILE=$(DOCKERFILE) \
no-cache=no tag=$(tag) platform=$(platform) ref=$(ref) ,)
IMAGE=coturn/$(NAME):$(tag) PLATFORM=$(platform) \
$(if $(call eq,$(with),ipv6),TEST_IPV6=1,) \
node_modules/.bin/bats \
--timing $(if $(call eq,$(CI),),--pretty,--formatter tap) \
tests/main.bats

View File

@ -149,6 +149,8 @@
}
@test "detect-external-ip returns valid IPv6" {
[ -z "$TEST_IPV6" ] && skip
run docker run --rm --platform $PLATFORM --entrypoint sh $IMAGE -c \
'detect-external-ip --ipv6'
[ "$status" -eq 0 ]