MSP-4622 configuration division
This commit is contained in:
1 parent
cf9a24f424
commit
2c0562e98f
9 files changed
+164
-18
No files matched your search
@@ -35,20 +35,23 @@ func (s *ApiScript) SetupSuite() {
|
||||
|
||||
cfg := conf.Remote{
|
||||
ScriptExecutionTimeoutMs: 10000,
|
||||
Scripts: []conf.ScriptDefinition{
|
||||
{
|
||||
Id: "1",
|
||||
Script: "return true",
|
||||
},
|
||||
{
|
||||
Id: "2",
|
||||
Script: "return false",
|
||||
Scripts: conf.AllScripts{
|
||||
CommonScripts: []conf.ScriptDefinition{
|
||||
{
|
||||
Id: "1",
|
||||
Script: "return true",
|
||||
},
|
||||
{
|
||||
Id: "2",
|
||||
Script: "return false",
|
||||
},
|
||||
},
|
||||
CustomScripts: []conf.ScriptDefinition{},
|
||||
},
|
||||
}
|
||||
|
||||
locator := assembly.NewLocator(s.test.Logger(), cli)
|
||||
handler := locator.Handler(cfg)
|
||||
handler, _ := locator.Handler(cfg)
|
||||
|
||||
_, s.apiCli = grpct.TestServer(s.test, handler)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user