Skip to content

Commit 4e3026f

Browse files
pr fix
1 parent 7d6f865 commit 4e3026f

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

staging/src/k8s.io/kubectl/pkg/describe/describe_test.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,19 @@ func TestDescribeSecret(t *testing.T) {
373373
t.Errorf("sensitive data should not be shown, unexpected out: %s", out)
374374
}
375375

376-
expectedOut := "Name: bar\nNamespace: foo\nLabels: <none>\nAnnotations: <none>\n\nType: \n\nData\n====\npassword: 16 bytes\nusername: 8 bytes\n"
376+
expectedOut := `Name: bar
377+
Namespace: foo
378+
Labels: <none>
379+
Annotations: <none>
380+
381+
Type:
382+
383+
Data
384+
====
385+
password: 16 bytes
386+
username: 8 bytes
387+
`
388+
377389
assert.Equal(t, expectedOut, out)
378390
}
379391

0 commit comments

Comments
 (0)