Skip to content

Commit

Permalink
Merge pull request #276 from pohly/kobjs-format-test
Browse files Browse the repository at this point in the history
add format test for KObjs
  • Loading branch information
k8s-ci-robot committed Dec 17, 2021
2 parents 55872ed + 39919d8 commit 6963321
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions klog_test.go
Expand Up @@ -1147,6 +1147,18 @@ No whitespace.`,
keysValues: []interface{}{"pod", KObj((*kMetadataMock)(nil)), "status", "ready"},
want: " pod=\"\" status=\"ready\"",
},
{
keysValues: []interface{}{"pods", KObjs([]kMetadataMock{
{
name: "kube-dns",
ns: "kube-system",
},
{
name: "mi-conf",
},
})},
want: " pods=[kube-system/kube-dns mi-conf]",
},
}

for _, d := range testKVList {
Expand Down

0 comments on commit 6963321

Please sign in to comment.