Cleanup Cfg/Grep Command Output

This commit is contained in:
Phani Teja Marupaka
2020-10-01 10:07:05 -07:00
parent d62d8dcade
commit ffed4c95b3
8 changed files with 89 additions and 25 deletions

View File

@@ -283,7 +283,8 @@ func TestGrepSubPackages(t *testing.T) {
name: "grep-recurse-subpackages",
dataset: "dataset-without-setters",
args: []string{"kind=Deployment"},
expected: `# Copyright 2019 The Kubernetes Authors.
expected: `
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
apiVersion: apps/v1
@@ -320,7 +321,7 @@ spec:
containers:
- name: storage
image: storage:1.7.7
---`,
`,
},
{
name: "grep-top-level-pkg-no-recurse-subpackages",
@@ -345,7 +346,7 @@ spec:
containers:
- name: mysql
image: mysql:1.7.9
---`,
`,
},
{
name: "grep-nested-pkg-no-recurse-subpackages",
@@ -370,7 +371,15 @@ spec:
containers:
- name: storage
image: storage:1.7.7
---`,
`,
},
{
name: "grep-recurse-subpackages-no-result",
dataset: "dataset-without-setters",
args: []string{"kind=ConfigMap"},
expected: `
`,
},
}
for i := range tests {