mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-18 01:17:03 +00:00
Add tests for successfull space replacement
This commit is contained in:
parent
5bd9a73a81
commit
90c77c80fc
1 changed files with 24 additions and 0 deletions
|
|
@ -95,6 +95,30 @@ func TestFromFlags(t *testing.T) {
|
|||
RejectKinds: map[string]struct{}{},
|
||||
},
|
||||
},
|
||||
{
|
||||
[]string{"-skip", "a, b, c"},
|
||||
Config{
|
||||
Files: []string{},
|
||||
KubernetesVersion: "master",
|
||||
NumberOfWorkers: 4,
|
||||
OutputFormat: "text",
|
||||
SchemaLocations: nil,
|
||||
SkipKinds: map[string]struct{}{"a": {}, "b": {}, "c": {}},
|
||||
RejectKinds: map[string]struct{}{},
|
||||
},
|
||||
},
|
||||
{
|
||||
[]string{"-skip", "a,b, c"},
|
||||
Config{
|
||||
Files: []string{},
|
||||
KubernetesVersion: "master",
|
||||
NumberOfWorkers: 4,
|
||||
OutputFormat: "text",
|
||||
SchemaLocations: nil,
|
||||
SkipKinds: map[string]struct{}{"a": {}, "b": {}, "c": {}},
|
||||
RejectKinds: map[string]struct{}{},
|
||||
},
|
||||
},
|
||||
{
|
||||
[]string{"-summary", "-verbose", "file1", "file2"},
|
||||
Config{
|
||||
|
|
|
|||
Loading…
Reference in a new issue