This commit is contained in:
Shreyas Goenka 2023-05-22 12:31:18 +02:00
parent 601e16e9e8
commit 74627160cb
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 4 additions and 1 deletions

View File

@ -216,6 +216,8 @@ func TestTemplateSchemaValidateConfig(t *testing.T) {
func TestTemplateSchemaValidateConfigFailsForUnknownField(t *testing.T) { func TestTemplateSchemaValidateConfigFailsForUnknownField(t *testing.T) {
// define schema for config // define schema for config
schemaJson := `{ schemaJson := `{
"version": 0,
"properties": {
"int_val": { "int_val": {
"type": "integer" "type": "integer"
}, },
@ -228,6 +230,7 @@ func TestTemplateSchemaValidateConfigFailsForUnknownField(t *testing.T) {
"string_val": { "string_val": {
"type": "string" "type": "string"
} }
}
}` }`
var schema Schema var schema Schema
err := json.Unmarshal([]byte(schemaJson), &schema) err := json.Unmarshal([]byte(schemaJson), &schema)