mirror of
https://github.com/tailscale/tailscale.git
synced 2026-05-05 04:06:35 +02:00
cmd/k8s-operator: remove empty metrics_resources_test.go, use hyphens in test names to satisfy go vet
Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
This commit is contained in:
parent
78590cfcdb
commit
0f361b6d73
@ -1,6 +0,0 @@
|
||||
// Copyright (c) Tailscale Inc & contributors
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
//go:build !plan9
|
||||
|
||||
package main
|
||||
@ -17,27 +17,27 @@ func TestTruncateLabelValue(t *testing.T) {
|
||||
want string // empty means expect input unchanged
|
||||
}{
|
||||
{
|
||||
name: "short value unchanged",
|
||||
name: "short-value-unchanged",
|
||||
input: "my-service",
|
||||
},
|
||||
{
|
||||
name: "exactly 63 chars unchanged",
|
||||
name: "exactly-63-chars-unchanged",
|
||||
input: strings.Repeat("a", 63),
|
||||
},
|
||||
{
|
||||
name: "64 chars gets truncated",
|
||||
name: "64-chars-gets-truncated",
|
||||
input: strings.Repeat("a", 64),
|
||||
},
|
||||
{
|
||||
name: "very long value gets truncated",
|
||||
name: "very-long-value-gets-truncated",
|
||||
input: "tailscale-nginx-clickhouse-o11y-server-https-with-extra-long-suffix-that-exceeds-limit",
|
||||
},
|
||||
{
|
||||
name: "253 chars (max k8s resource name)",
|
||||
name: "253-chars-max-k8s-resource-name",
|
||||
input: strings.Repeat("x", 253),
|
||||
},
|
||||
{
|
||||
name: "empty string unchanged",
|
||||
name: "empty-string-unchanged",
|
||||
input: "",
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user