mirror of
https://github.com/rancher/os.git
synced 2025-09-07 01:31:06 +00:00
Fix go test for ssh port and listen_address config
This commit is contained in:
@@ -148,7 +148,9 @@ var schema = `{
|
|||||||
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"keys": {"type": "object"},
|
"keys": {"type": "object"},
|
||||||
"daemon": {"type": "boolean"}
|
"daemon": {"type": "boolean"},
|
||||||
|
"port": {"type": "integer"},
|
||||||
|
"listen_address": {"type": "string"}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@@ -16,6 +16,7 @@ func testValidate(t *testing.T, cfg []byte, contains string) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if contains == "" && len(validationErrors.Errors()) != 0 {
|
if contains == "" && len(validationErrors.Errors()) != 0 {
|
||||||
|
fmt.Printf("validationErrors: %v", validationErrors.Errors())
|
||||||
t.Fail()
|
t.Fail()
|
||||||
}
|
}
|
||||||
if !strings.Contains(fmt.Sprint(validationErrors.Errors()), contains) {
|
if !strings.Contains(fmt.Sprint(validationErrors.Errors()), contains) {
|
||||||
|
Reference in New Issue
Block a user