feat: add proxy labels and default profiles
This commit is contained in:
@@ -80,3 +80,13 @@ func TestNormalizeProxyServerCanonicalizesAndRejectsCredentials(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestNormalizeProxyNameRequiresNonEmptyDisplayText(t *testing.T) {
|
||||
got, err := NormalizeProxyName(" 新加坡出口 ")
|
||||
if err != nil || got != "新加坡出口" {
|
||||
t.Fatalf("NormalizeProxyName() = %q, %v", got, err)
|
||||
}
|
||||
if _, err := NormalizeProxyName(" \t "); !errors.Is(err, ErrInvalidLaunchSpec) {
|
||||
t.Fatalf("empty proxy name error = %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user