MSP-4622 configuration division

This commit is contained in:
Парусов Павел Андреевич committed 2025-01-16 14:11:58 +03:00
1 parent cf9a24f424
commit 2c0562e98f
9 files changed
+164 -18

No files matched your search

+12 -9
View File
@@ -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)
}