2016-09-26 87 views
1

試圖安裝時,我的數據庫使用DS https://github.com/viant/dsunit 我使用以下配置golang viant dsunit測試配置錯誤

{ 
    "DatastoreConfigs": [ 
    { 
     "Datastore": "db_test", 
     "AdminDbName": "mysql", 
     "ClearDatastore": true, 
     "ConfigUrl": "test://config/dbconfig.json", 
     "Descriptors": null 
    }, 
    { 
     "Datastore": "mysql", 
     "ConfigUrl": "test://test/admin.json" 
    } 
    ] 
} 

而且我得到這個錯誤。任何想法我失蹤?

~/Developer/go/gopath/src $ go test github.vianttech.com/core-adservers/rest-changetracking 
# github.com/viant/dsunit 
github.com/viant/dsunit/service.go:42: dataStoreConfig.Descriptors[i].SchemaURL undefined (type dsc.TableDescriptor has no field or method SchemaURL, but does have SchemaUrl) 
github.com/viant/dsunit/service.go:42: tableDescriptor.SchemaURL undefined (type dsc.TableDescriptor has no field or method SchemaURL, but does have SchemaUrl) 
FAIL github.vianttech.com/core-adservers/rest-changetracking [build failed] 

回答

0

我看起來就像你在你的JSON配置有不匹配的情況下,

架構URL VS模式地址

見TableDescriptor Api爲預期的情況下的格式。