From f855996d531c7455dceeefa8c6783fca83028cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Thu, 14 Apr 2022 15:21:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E5=8D=95=E5=85=83=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/serverconfigs/server_name_config_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkg/serverconfigs/server_name_config_test.go b/pkg/serverconfigs/server_name_config_test.go index f80cb61..e3e862f 100644 --- a/pkg/serverconfigs/server_name_config_test.go +++ b/pkg/serverconfigs/server_name_config_test.go @@ -26,10 +26,19 @@ func TestPlainServerNames(t *testing.T) { Name: "world.com", SubNames: nil, }, + // duplicate + { + Name: "world.com", + SubNames: nil, + }, { Name: "", SubNames: []string{"WoRld.com", "XYZ.com"}, }, + { + Name: "*.world.com", + SubNames: nil, + }, } logs.PrintAsJSON(PlainServerNames(serverNames), t) }