From 35c704ace3d6f6537f7609a43d9f4a169412c877 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 22 Nov 2023 19:18:05 +0100 Subject: [PATCH] fix: unit tests were never run on cmd package --- cmd/traefik/traefik_test.go | 6 ------ docs/content/routing/entrypoints.md | 2 +- script/test-unit | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/cmd/traefik/traefik_test.go b/cmd/traefik/traefik_test.go index 6dacb7507..079b3e3a5 100644 --- a/cmd/traefik/traefik_test.go +++ b/cmd/traefik/traefik_test.go @@ -131,12 +131,6 @@ func TestGetDefaultsEntrypoints(t *testing.T) { "traefik": { Address: ":8080", }, - "traefikhub-api": { - Address: ":9900", - }, - "traefikhub-tunl": { - Address: ":9901", - }, }, expected: []string{"web"}, }, diff --git a/docs/content/routing/entrypoints.md b/docs/content/routing/entrypoints.md index c544440c9..ae3d9412c 100644 --- a/docs/content/routing/entrypoints.md +++ b/docs/content/routing/entrypoints.md @@ -248,7 +248,7 @@ EntryPoints in this list are used (by default) on HTTP and TCP routers that do n If at least one EntryPoint has the `AsDefault` option set to `true`, then the list of default EntryPoints includes only EntryPoints that have the `AsDefault` option set to `true`. - Some built-in EntryPoints are always excluded from the list, namely: `traefik`, `traefikhub-api`, and `traefikhub-tunl`. + Some built-in EntryPoints are always excluded from the list, namely: `traefik`. !!! warning "Only TCP and HTTP" diff --git a/script/test-unit b/script/test-unit index 8f5ef0189..7591307f4 100755 --- a/script/test-unit +++ b/script/test-unit @@ -18,7 +18,7 @@ set +e # shellcheck disable=SC2086 # shellcheck disable=SC2048 -go test ${TESTFLAGS[*]} ./pkg/... +go test ${TESTFLAGS[*]} ./pkg/... ./cmd/... CODE=$? if [ ${CODE} != 0 ]; then