Merge branch 'MSP-1045' into 'master'
Resolve MSP-1045 Closes MSP-1045 See merge request integration-system/isp-script-service!14
This commit is contained in:
commit
410c38cbe1
4 files changed
+14
-12
No files matched your search
@@ -1,3 +1,5 @@
|
||||
### v3.0.1
|
||||
* Название ручек сервиса изменены для обеспечения обратной совместимости
|
||||
### v3.0.0
|
||||
* миграция сервиса на isp-kit
|
||||
* миграция на версию GO 1.19.1
|
||||
|
||||
+4
-4
@@ -27,25 +27,25 @@ func Handler(wrapper endpoint.Wrapper, c Controllers) isp.BackendServiceServer {
|
||||
func endpointDescriptors(c Controllers) []cluster.EndpointDescriptor {
|
||||
return []cluster.EndpointDescriptor{
|
||||
{
|
||||
Path: "script/execute",
|
||||
Path: "script/script/execute",
|
||||
Inner: true,
|
||||
UserAuthRequired: false,
|
||||
Handler: c.Script.Execute,
|
||||
},
|
||||
{
|
||||
Path: "script/batch_execute",
|
||||
Path: "script/script/batch_execute",
|
||||
Inner: true,
|
||||
UserAuthRequired: false,
|
||||
Handler: c.Script.BatchExecute,
|
||||
},
|
||||
{
|
||||
Path: "script/execute_by_id",
|
||||
Path: "script/script/execute_by_id",
|
||||
Inner: true,
|
||||
UserAuthRequired: false,
|
||||
Handler: c.Script.ExecuteById,
|
||||
},
|
||||
{
|
||||
Path: "script/batch_execute_by_ids",
|
||||
Path: "script/script/batch_execute_by_ids",
|
||||
Inner: true,
|
||||
UserAuthRequired: false,
|
||||
Handler: c.Script.BatchExecuteById,
|
||||
|
||||
@@ -58,7 +58,7 @@ func (s *ApiScript) TestExternalInvoke() {
|
||||
Arg: struct{}{},
|
||||
}
|
||||
res := domain.ScriptResp{}
|
||||
err := s.apiCli.Invoke("script/execute").
|
||||
err := s.apiCli.Invoke("script/script/execute").
|
||||
JsonRequestBody(req).
|
||||
ReadJsonResponse(&res).
|
||||
Do(context.Background())
|
||||
@@ -74,7 +74,7 @@ func (s *ApiScript) TestExecuteHappyPath() {
|
||||
},
|
||||
}
|
||||
res := domain.ScriptResp{}
|
||||
err := s.apiCli.Invoke("script/execute").
|
||||
err := s.apiCli.Invoke("script/script/execute").
|
||||
JsonRequestBody(req).
|
||||
ReadJsonResponse(&res).
|
||||
Do(context.Background())
|
||||
@@ -88,7 +88,7 @@ func (s *ApiScript) TestExecuteByIdHappyPath() {
|
||||
Arg: struct{}{},
|
||||
}
|
||||
res := domain.ScriptResp{}
|
||||
err := s.apiCli.Invoke("script/execute_by_id").
|
||||
err := s.apiCli.Invoke("script/script/execute_by_id").
|
||||
JsonRequestBody(req).
|
||||
ReadJsonResponse(&res).
|
||||
Do(context.Background())
|
||||
@@ -102,7 +102,7 @@ func (s *ApiScript) TestExecuteByIdNotFound() {
|
||||
Arg: struct{}{},
|
||||
}
|
||||
res := domain.ScriptResp{}
|
||||
err := s.apiCli.Invoke("script/execute_by_id").
|
||||
err := s.apiCli.Invoke("script/script/execute_by_id").
|
||||
JsonRequestBody(req).
|
||||
ReadJsonResponse(&res).
|
||||
Do(context.Background())
|
||||
@@ -124,7 +124,7 @@ func (s *ApiScript) TestBatchExecuteHappyPath() {
|
||||
},
|
||||
}
|
||||
res := make([]domain.ScriptResp, 0)
|
||||
err := s.apiCli.Invoke("script/batch_execute").
|
||||
err := s.apiCli.Invoke("script/script/batch_execute").
|
||||
JsonRequestBody(req).
|
||||
ReadJsonResponse(&res).
|
||||
Do(context.Background())
|
||||
@@ -148,7 +148,7 @@ func (s *ApiScript) TestBatchExecuteMixedNotFound() {
|
||||
},
|
||||
}
|
||||
res := make([]domain.ScriptResp, 0)
|
||||
err := s.apiCli.Invoke("script/batch_execute").
|
||||
err := s.apiCli.Invoke("script/script/batch_execute").
|
||||
JsonRequestBody(req).
|
||||
ReadJsonResponse(&res).
|
||||
Do(context.Background())
|
||||
@@ -169,7 +169,7 @@ func (s *ApiScript) TestBatchExecuteByIdHappyPath() {
|
||||
Arg: struct{}{},
|
||||
}
|
||||
res := make([]domain.ScriptResp, 0)
|
||||
err := s.apiCli.Invoke("script/batch_execute_by_ids").
|
||||
err := s.apiCli.Invoke("script/script/batch_execute_by_ids").
|
||||
JsonRequestBody(req).
|
||||
ReadJsonResponse(&res).
|
||||
Do(context.Background())
|
||||
|
||||
Reference in new issue
Block a user