diff --git a/.version b/.version index 56fea8a..13d683c 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -3.0.0 \ No newline at end of file +3.0.1 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e0d4317..a39aff3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +### v3.0.1 +* Название ручек сервиса изменены для обеспечения обратной совместимости ### v3.0.0 * миграция сервиса на isp-kit * миграция на версию GO 1.19.1 diff --git a/routes/routes.go b/routes/routes.go index c2cd8e7..33260fb 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -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, diff --git a/tests/api_script_test.go b/tests/api_script_test.go index bc4a693..b9a9e3d 100644 --- a/tests/api_script_test.go +++ b/tests/api_script_test.go @@ -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())