Make schema formatting consistent.

This commit is contained in:
Kermit Alexander 2022-06-09 23:15:30 +00:00
parent ff3d04d5df
commit 9fb55af69b

View File

@ -192,21 +192,21 @@ var _ = SIGDescribe("CustomResourceValidationRules [Privileged:ClusterAdmin][Alp
ginkgo.It("MUST fail create of a custom resource definition that contains an x-kubernetes-validations rule that exceeds the estimated cost limit", func() { ginkgo.It("MUST fail create of a custom resource definition that contains an x-kubernetes-validations rule that exceeds the estimated cost limit", func() {
ginkgo.By("Defining a custom resource definition that contains a validation rule that exceeds the cost limit") ginkgo.By("Defining a custom resource definition that contains a validation rule that exceeds the cost limit")
var schemaWithExpensiveRule = unmarshallSchema([]byte(`{ var schemaWithExpensiveRule = unmarshallSchema([]byte(`{
"type": "object", "type":"object",
"properties": { "properties":{
"spec": { "spec":{
"type": "object", "type":"object",
"properties": { "properties":{
"x": { "x":{
"type": "array", "type":"array",
"items": { "items":{
"type": "array", "type":"array",
"items": { "items":{
"type": "string" "type":"string"
}, },
"x-kubernetes-validations": [{ "x-kubernetes-validations":[
"rule": "self.all(s, s == \"string constant\")" { "rule":"self.all(s, s == \"string constant\")" }
}] ]
} }
} }
} }