diff --git a/pkg/describe/describe_test.go b/pkg/describe/describe_test.go index 02c17b583..34abc489e 100644 --- a/pkg/describe/describe_test.go +++ b/pkg/describe/describe_test.go @@ -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: \nAnnotations: \n\nType: \n\nData\n====\npassword: 16 bytes\nusername: 8 bytes\n" + expectedOut := `Name: bar +Namespace: foo +Labels: +Annotations: + +Type: + +Data +==== +password: 16 bytes +username: 8 bytes +` + assert.Equal(t, expectedOut, out) }