Kubernetes-commit: 4e3026fdb81667fd5a9fe928736b6e4d67b225e5
This commit is contained in:
Harald Nordgren 2025-04-14 15:59:45 +02:00 committed by Kubernetes Publisher
parent 3a69c59961
commit 6c0aa1995f
1 changed files with 13 additions and 1 deletions

View File

@ -373,7 +373,19 @@ func TestDescribeSecret(t *testing.T) {
t.Errorf("sensitive data should not be shown, unexpected out: %s", out)
}
expectedOut := "Name: bar\nNamespace: foo\nLabels: <none>\nAnnotations: <none>\n\nType: \n\nData\n====\npassword: 16 bytes\nusername: 8 bytes\n"
expectedOut := `Name: bar
Namespace: foo
Labels: <none>
Annotations: <none>
Type:
Data
====
password: 16 bytes
username: 8 bytes
`
assert.Equal(t, expectedOut, out)
}