mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
601e16e9e8
commit
74627160cb
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue