mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-21 10:57:01 +00:00
Reformat strings
This commit is contained in:
parent
a053bbabe1
commit
df386fc1fd
1 changed files with 37 additions and 4 deletions
|
|
@ -93,19 +93,52 @@ func TestResources(t *testing.T) {
|
||||||
expected int
|
expected int
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
"apiVersion: v1\nkind: List\n",
|
`
|
||||||
|
apiVersion: v1
|
||||||
|
kind: List
|
||||||
|
`,
|
||||||
0,
|
0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"apiVersion: v1\nkind: List\nItems: []\n",
|
`
|
||||||
|
apiVersion: v1
|
||||||
|
kind: List
|
||||||
|
Items: []
|
||||||
|
`,
|
||||||
0,
|
0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"apiVersion: v1\nkind: List\nItems:\n - apiVersion: v1\n kind: ReplicationController\n metadata:\n name: \"bob\"\n spec:\n replicas: 2\n",
|
`
|
||||||
|
apiVersion: v1
|
||||||
|
kind: List
|
||||||
|
Items:
|
||||||
|
- apiVersion: v1
|
||||||
|
kind: ReplicationController
|
||||||
|
metadata:
|
||||||
|
name: "bob"
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
`,
|
||||||
1,
|
1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"apiVersion: v1\nkind: List\nItems:\n - apiVersion: v1\n kind: ReplicationController\n metadata:\n name: \"bob\"\n spec:\n replicas: 2\n - apiVersion: v1\n kind: ReplicationController\n metadata:\n name: \"Jim\"\n spec:\n replicas: 2\n",
|
`
|
||||||
|
apiVersion: v1
|
||||||
|
kind: List
|
||||||
|
Items:
|
||||||
|
- apiVersion: v1
|
||||||
|
kind: ReplicationController
|
||||||
|
metadata:
|
||||||
|
name: "bob"
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
- apiVersion: v1
|
||||||
|
kind: ReplicationController
|
||||||
|
metadata:
|
||||||
|
name: "Jim"
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
`,
|
||||||
2,
|
2,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue